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

Improve the plugin docs generation #3300

Open
psss opened this issue Oct 17, 2024 · 3 comments
Open

Improve the plugin docs generation #3300

psss opened this issue Oct 17, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@psss
Copy link
Collaborator

psss commented Oct 17, 2024

I just tried to add a subsection in the discover.fmf plugin but the generate-plugins.py script fails with:

Failed to import the 'tmt.steps.discover.fmf' module from '/home/psss/git/tmt/docs'.

The same happend when I tried to reference a specification using:

:ref:`/spec/core/adjust`

It would be also nice to keep the paragraph separation in the --help generated messages. Currently the two adjacent paragraphs (with no example or items between them) are joined together.

@happz
Copy link
Collaborator

happz commented Oct 17, 2024

Can you share the change that led to failed import? A change in a docstring shouldn’t have such an effect :/

@happz
Copy link
Collaborator

happz commented Oct 17, 2024

^^ this is for paragraphs glued together.

@psss
Copy link
Collaborator Author

psss commented Oct 18, 2024

^^ this is for paragraphs glued together.

Excellent! Merged.

Can you share the change that led to failed import? A change in a docstring shouldn’t have such an effect :/

Yes, it's just adding :ref: to the docstring. The error looks like this:

scripts/generate-plugins.py discover templates/plugins.rst.j2 plugins/discover.rst
<rst-doc>:82: (ERROR/3) Unknown interpreted text role "ref".
Failed to import the 'tmt.steps.discover.fmf' module from '/home/psss/git/tmt/docs'.

@psss psss added the documentation Improvements or additions to documentation label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants