Skip to content

📝 docs: restructure and fix cross-references#419

Merged
gaborbernat merged 2 commits intotox-dev:mainfrom
gaborbernat:docs
Feb 12, 2026
Merged

📝 docs: restructure and fix cross-references#419
gaborbernat merged 2 commits intotox-dev:mainfrom
gaborbernat:docs

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

@gaborbernat gaborbernat commented Feb 12, 2026

The README was a monolithic RST file containing full output examples for every platform, making it unwieldy for newcomers trying to understand what the library does. The Sphinx docs had a single api.rst page with a sparse index, and several public API entries (user_desktop_dir/user_desktop_path, site_runtime_dir/site_runtime_path) were missing. Docstrings had broken cross-references -- :param multipath: and :param opinion: both pointed to roaming instead of their own attributes, and class references used the wrong module path for XDGMixin.

📝 The README is now a lean README.md with a quick-start example and links to readthedocs. The Sphinx docs are split into a usage guide (all parameters with examples), a complete API reference, and a platform details page with a cross-platform comparison table. Docstrings across the codebase are corrected so Sphinx renders proper hyperlinks.

CONTRIBUTING.md now references tox instead of the already-removed hatch, and the proselint invocation in tox.toml is updated for its new subcommand CLI.

Several convenience functions in __init__.py had wrong Sphinx
cross-references pointing to `roaming` instead of `multipath` or
`opinion`. The _MacOSDefaults and _UnixDefaults classes referenced
a non-existent `platformdirs.xdg` module instead of `platformdirs._xdg`.

Also fixes grammar issues (appname, opinion, user_documents_path),
clarifies multipath scope, and adds missing docstrings for
_pick_get_win_folder and the Android class.
@gaborbernat gaborbernat requested a review from ofek as a code owner February 12, 2026 15:47
@gaborbernat gaborbernat changed the title docs 📝 docs: restructure and fix cross-references Feb 12, 2026
@gaborbernat gaborbernat force-pushed the docs branch 2 times, most recently from 9b7570e to 6f2c308 Compare February 12, 2026 15:52
The README was a monolithic RST file containing the full API showcase
for every platform, making it hard to navigate. The Sphinx docs had a
single api.rst page and a sparse index.

Replaced README.rst with a lean README.md focused on quick start and
links to readthedocs. Split Sphinx docs into usage guide (parameters,
examples), complete API reference (added missing user_desktop and
site_runtime entries), and a platform details page with comparison
table. Fixed CONTRIBUTING.md to reference tox instead of hatch, and
fixed proselint invocation for its new CLI.
@gaborbernat gaborbernat force-pushed the docs branch 3 times, most recently from 27e35b3 to 61e2366 Compare February 12, 2026 16:38
@gaborbernat gaborbernat merged commit 473a0fe into tox-dev:main Feb 12, 2026
52 checks passed
@gaborbernat gaborbernat deleted the docs branch February 12, 2026 19:49
@gaborbernat gaborbernat restored the docs branch February 14, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant