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

An option to simplify the templates for community #31

Closed
msuchane opened this issue Jan 19, 2022 · 6 comments
Closed

An option to simplify the templates for community #31

msuchane opened this issue Jan 19, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@msuchane
Copy link
Collaborator

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.

@msuchane msuchane added the enhancement New feature or request label Jan 19, 2022
@msuchane msuchane self-assigned this Jan 19, 2022
@msuchane
Copy link
Collaborator Author

msuchane commented Feb 5, 2024

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.

@msuchane
Copy link
Collaborator Author

msuchane commented Feb 5, 2024

This template simplification also provides one solution to the problem in redhat-documentation/modular-docs#220

@msuchane
Copy link
Collaborator Author

msuchane commented Feb 5, 2024

The option is now available in newdoc version 2.16.0. You can generate files with with the --simplified, -S option to remove the context attribute.

@msuchane msuchane closed this as completed Feb 5, 2024
@msuchane
Copy link
Collaborator Author

msuchane commented Feb 5, 2024

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 --simplified, -S option with newdoc.

@Lennonka
Copy link

Lennonka commented Feb 8, 2024

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"]
 ...

@Lennonka
Copy link

Lennonka commented Feb 8, 2024

We do use the other roles, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants