docs: update docs for XDG path resolution, bump v1.1.0

Update all documentation to reflect XDG-first config search
introduced in #22/#23. configuration.md gains a new Default File
Locations section with search order, auto-creation, missing-config
vs missing-secrets behavior, CLI flag overrides, and new error
messages. quickstart.md, cli-usage.md, troubleshooting.md, and
README.md updated accordingly. Bump version 0.1.0 → 0.2.0.

Closes #24
This commit is contained in:
AlexKucera committed 2026-06-04 10:54:43 +02:00
1 parent 01b14f1926
commit a9a169d4c2
26 files changed
+328 -135

No files matched your search

+15 -7
View File
@@ -23,7 +23,7 @@
<link rel="icon" href="assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.7.6">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.7.0">
@@ -31,7 +31,7 @@
<link rel="stylesheet" href="assets/stylesheets/main.484c7ddc.min.css">
<link rel="stylesheet" href="assets/stylesheets/main.618322db.min.css">
<link rel="stylesheet" href="assets/stylesheets/palette.ab4e12ef.min.css">
@@ -1120,12 +1120,13 @@
</span></code></pre></div>
<p>The <code>[dev]</code> extra installs pytest for testing — omit it if you only want to run the tool.</p>
<h2 id="2-configure">2. Configure</h2>
<p>librofm-downloader uses two YAML files:</p>
<p>librofm-downloader uses two YAML files, searched in <code>~/.config/librofm-downloader/</code> first, then the current working directory:</p>
<table>
<thead>
<tr>
<th>File</th>
<th>Purpose</th>
<th style="text-align: center;">Required?</th>
<th style="text-align: center;">Committed to git?</th>
</tr>
</thead>
@@ -1133,15 +1134,22 @@
<tr>
<td><code>config.yaml</code></td>
<td>Preferences (format, output dir, toggles)</td>
<td style="text-align: center;">No (defaults used)</td>
<td style="text-align: center;">✅ Yes</td>
</tr>
<tr>
<td><code>secrets.yaml</code></td>
<td>Credentials only</td>
<td style="text-align: center;"><strong>Yes</strong></td>
<td style="text-align: center;">❌ No (gitignored)</td>
</tr>
</tbody>
</table>
<blockquote>
<p>[!TIP]
The XDG directory (<code>~/.config/librofm-downloader/</code>) is created automatically on first run.
Place both files there to run <code>librofm-downloader</code> from any directory.</p>
</blockquote>
<h3 id="configyaml">config.yaml</h3>
<div class="language-yaml highlight"><pre><span></span><code><span id="__span_0__-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="c1"># libro.fm downloader configuration</span>
</span><span id="__span_0__-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="c1"># This file is safe to commit — no credentials here.</span>
@@ -1179,10 +1187,10 @@ If you accidentally put credentials in <code>config.yaml</code>, the tool will r
</span></code></pre></div>
<p>This:</p>
<ol>
<li>Loads <code>config.yaml</code> + <code>secrets.yaml</code></li>
<li>Searches for <code>config.yaml</code> + <code>secrets.yaml</code> (XDG directory first, then CWD)</li>
<li>Authenticates with Libro.fm via OAuth2 password grant</li>
<li>Fetches your full library (all pages)</li>
<li>Skips books already in <code>download_history.json</code></li>
<li>Skips books already in <code>download_history.json</code> (XDG → CWD search)</li>
<li>Downloads each new book with a progress bar</li>
<li>Records successful downloads to history</li>
</ol>
@@ -1283,10 +1291,10 @@ If you accidentally put credentials in <code>config.yaml</code>, the tool will r
<script id="__config" type="application/json">{"annotate": null, "base": ".", "features": ["navigation.tabs", "navigation.sections", "content.code.copy", "toc.follow"], "search": "assets/javascripts/workers/search.2c215733.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
<script id="__config" type="application/json">{"annotate": null, "base": ".", "features": ["navigation.tabs", "navigation.sections", "content.code.copy", "toc.follow"], "search": "assets/javascripts/workers/search.7a47a382.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
<script src="assets/javascripts/bundle.79ae519e.min.js"></script>
<script src="assets/javascripts/bundle.e71a0d61.min.js"></script>
</body>