Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate proper documentation #214

Open
jakkdl opened this issue Mar 5, 2024 · 3 comments
Open

Generate proper documentation #214

jakkdl opened this issue Mar 5, 2024 · 3 comments

Comments

@jakkdl
Copy link
Member

jakkdl commented Mar 5, 2024

README.md has grown to 200 lines, and spans error codes, installation & run instructions, configuration and command-line flags. We also have CHANGELOG.md with 150 lines.
There are a few links in the readme, but it would probably be quite useful to have anything referring to [objects within] urllib3, httpx, anyio, asyncio, trio, etc be hyperlinks w/o having to manually update.
Pulling out the error messages for the documentation automatically would be nice, but somewhat complicated given the current setup for messages differing for different (combinations of) libraries. Should be quite doable though.

#211 (comment)

I'm planning to write up some more detail about each of our error codes in a long doc, hopefully this weekend, which will include much more about why you'd want to enable each of the optional rules in addition to the existing material.

This also sounds like great doc material.

The one workflow I'm decently accustomed to is ReadTheDocs+Sphinx as used in python-trio/trio, and probably nice to be consistent with it since it's in the same organization. But it's also been a huge pain to work with at times.

@Zac-HD
Copy link
Member

Zac-HD commented Mar 6, 2024

I think an RTD/Sphinx setup with default config could be good. One intro page with usage instructions (inc CLI); one page per error code explanatory notes (copy ruff's style) plus an index-of-errors page; one page for contributor docs etc.

(still hoping for some free time on a weekend... we'll see)

@jakkdl
Copy link
Member Author

jakkdl commented May 14, 2024

After #245 the only thing remaining is expanding the rules to subpages with examples/explanatory notes/etc.

@jakkdl
Copy link
Member Author

jakkdl commented May 17, 2024

Remaining tasks after #248 (as it currently is):

  • Write separate subpages for rules
  • adjust page width for rules.rst
  • extensions:
    • hoverxref
    • codeautolink
    • intersphinx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants