-
Notifications
You must be signed in to change notification settings - Fork 9
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
An option to simplify the templates for community #31
Comments
To preserve at least the idea of context so that you can optionally use it when needed, we can save some instructions in a comment next to the ID. |
This template simplification also provides one solution to the problem in redhat-documentation/modular-docs#220 |
The option is now available in newdoc version 2.16.0. You can generate files with with the |
Hi @Lennonka, If I remember this right, you were interested in simplified modular templates for Foreman/Satellite community docs using newdoc, right? That was back in December 2021 and this idea fell through the cracks, sorry. I've revived it now because it also seems increasingly useful for RHEL and other projects. If it's still of use to you, feel free to test the |
Actually, we could use more force on the simplification. For example, in our upstream, we want our modules to start with the ID and avoid module metadata: - :_newdoc-version: 2.16.0
- :_template-generated: 2024-02-08
-
- :_mod-docs-content-type: CONCEPT
-
[id="test"]
= Test
- [role="_abstract"]
... |
We do use the other roles, though. |
Many elements in the current templates are workarounds for various issues in the Red Hat publishing workflow. These elements are primarily the ifdefs and the different forms of the context attribute.
For community projects that deploy their documentation in a much simpler configuration, such as without any nesting of assemblies, newdoc should provide an option that strips the templates of these unnecessary elements.
The text was updated successfully, but these errors were encountered: