Skip to content

📝 docs: restructure docs and fix cross-references#417

Closed
gaborbernat wants to merge 1 commit intotox-dev:mainfrom
gaborbernat:tox
Closed

📝 docs: restructure docs and fix cross-references#417
gaborbernat wants to merge 1 commit intotox-dev:mainfrom
gaborbernat:tox

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 hard to scan. The Sphinx docs consisted of a single api.rst page with a sparse index, and several API entries (user_desktop_dir/user_desktop_path, site_runtime_dir/site_runtime_path) were missing entirely. The docstrings also had broken cross-references (e.g. :param multipath: See roaming) and stale wording.

This replaces README.rst with a lean README.md focused on a quick-start example and links to readthedocs. The Sphinx docs are split into three pages: a usage guide covering all parameters with examples, a complete API reference, and a platform details page with a comparison table of default paths across macOS/Windows/Linux/Android. Each platform section includes the autoclass directive so the class docs render inline with the platform context.

CONTRIBUTING.md now references tox instead of hatch (which was already migrated in #415), the proselint invocation in tox.toml is updated for its new check subcommand CLI, and pyproject.toml points to the new README.md.

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:06
@gaborbernat gaborbernat changed the title 📝 docs: fix cross-references and improve docstrings 📝 docs: restructure docs and fix cross-references Feb 12, 2026
@gaborbernat gaborbernat deleted the tox branch February 12, 2026 19:50
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