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:
26 files changed
+328
-135
No files matched your search
@@ -26,12 +26,16 @@ The `[dev]` extra installs pytest for testing — omit it if you only want to ru
|
||||
|
||||
## 2. Configure
|
||||
|
||||
librofm-downloader uses two YAML files:
|
||||
librofm-downloader uses two YAML files, searched in `~/.config/librofm-downloader/` first, then the current working directory:
|
||||
|
||||
| File | Purpose | Committed to git? |
|
||||
|------|---------|:-----------------:|
|
||||
| `config.yaml` | Preferences (format, output dir, toggles) | ✅ Yes |
|
||||
| `secrets.yaml` | Credentials only | ❌ No (gitignored) |
|
||||
| File | Purpose | Required? | Committed to git? |
|
||||
|------|---------|:---------:|:-----------------:|
|
||||
| `config.yaml` | Preferences (format, output dir, toggles) | No (defaults used) | ✅ Yes |
|
||||
| `secrets.yaml` | Credentials only | **Yes** | ❌ No (gitignored) |
|
||||
|
||||
> [!TIP]
|
||||
> The XDG directory (`~/.config/librofm-downloader/`) is created automatically on first run.
|
||||
> Place both files there to run `librofm-downloader` from any directory.
|
||||
|
||||
### config.yaml
|
||||
|
||||
@@ -79,10 +83,10 @@ librofm-downloader
|
||||
|
||||
This:
|
||||
|
||||
1. Loads `config.yaml` + `secrets.yaml`
|
||||
1. Searches for `config.yaml` + `secrets.yaml` (XDG directory first, then CWD)
|
||||
2. Authenticates with Libro.fm via OAuth2 password grant
|
||||
3. Fetches your full library (all pages)
|
||||
4. Skips books already in `download_history.json`
|
||||
4. Skips books already in `download_history.json` (XDG → CWD search)
|
||||
5. Downloads each new book with a progress bar
|
||||
6. Records successful downloads to history
|
||||
|
||||
|
||||
Reference in new issue
Block a user