Skip to content

doc: Generate config value reference #1052

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

LecrisUT
Copy link
Collaborator

@LecrisUT LecrisUT commented Apr 23, 2025

This would make it easier to cross-reference. I was debating going for an auto-generated one and integrating with sphinx directly or going with the nox -t gen files, and I think I prefer the latter because it makes it more obvious to review the generated text in all the places, wdyt?

I also want to unlock usage of sphinx roles in it, but the readme generation gets in the way. My opinion is that if we have this, we could either move the readme part to the generated page, or truncate it to only display the first summary sentence similar to how click does it.

Depends-on: #1051
Closes #999

@LecrisUT LecrisUT requested a review from henryiii April 23, 2025 15:48
- Moved default text handling to a separate function
- Prepare to read metadata fields from dataclasses.Field.metadata
- Added a dataclass holder for the dataclass field metadata for documentation

Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
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.

Autogenerate configuration reference
1 participant