Skip to content

docs: explicitly enumerate configurable params in docs#1683

Merged
leondz merged 3 commits into
NVIDIA:mainfrom
leondz:docs/expand_default_params
Apr 20, 2026
Merged

docs: explicitly enumerate configurable params in docs#1683
leondz merged 3 commits into
NVIDIA:mainfrom
leondz:docs/expand_default_params

Conversation

@leondz
Copy link
Copy Markdown
Collaborator

@leondz leondz commented Apr 15, 2026

This PR adds to the garak sphinx extension to pick up DEFAULT_PARAMS and enumerate items & values in a separate section in the class documentation, including a link to how to do config.

image

Verification

List the steps needed to make sure this thing works

  • from garak repo base dir:
    • install documentation deps, pip install -r docs/requirements-docs.txt
    • build docs, make -C docs/source doc
    • browse the docs, xdg-open docs/source/index.html (osx open docs/source/index.html), and make sure you can see what you expect

leondz added 2 commits April 14, 2026 15:31
Signed-off-by: Leon Derczynski <lderczynski@nvidia.com>
Signed-off-by: Leon Derczynski <lderczynski@nvidia.com>
@leondz leondz added the documentation Improvements or additions to documentation label Apr 15, 2026
Copy link
Copy Markdown
Member

@mikemckiernan mikemckiernan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crafty. Definitely a better human reading experience! Thank you!

Copy link
Copy Markdown
Collaborator

@jmartin-tech jmartin-tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the add, is there an option we could add to suppress the entry for the attribute that ends up duplicating?

Image

Signed-off-by: Leon Derczynski <lderczynski@nvidia.com>
@leondz leondz merged commit b24d640 into NVIDIA:main Apr 20, 2026
16 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants