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

✨[#64] add setup configuration documentation generation #97

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Coperh
Copy link
Contributor

@Coperh Coperh commented Jan 27, 2025

Fixes #64

@Coperh
Copy link
Contributor Author

Coperh commented Jan 27, 2025

Currently creates something like this for Open Klant

TokenAuthConfigurationStep
--------------------------

Configuration to set up authentication tokens for Open Klant

.. setup-config-example:: openklant.setup_configuration.steps.TokenAuthConfigurationStep

Renders to this:
Screenshot from 2025-01-27 13-56-49

Comment on lines +16 to +18
"step_title": step_path.split(".")[-1],
"step_description": step.verbose_name,
"step_path": step_path,
Copy link
Contributor Author

@Coperh Coperh Jan 27, 2025

Choose a reason for hiding this comment

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

I think config steps should have a description/summary variable and verbose_name should be a name that is verbose rather than a summary as it currently seems to be used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As in use the current verbose name value as a description and change the verbose_name to a more readable format of the step name: TokenAuthConfigurationStep ==> "Token Authentication Configuration"

@stevenbal
Copy link
Collaborator

I think this will be implemented in django-setup-configuration instead right? maykinmedia/django-setup-configuration#57

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.

Investigate what needs to be done to have documentation generation for setup-configuration
2 participants