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

Updates regarding ID's for headings #219

Open
ncbaratta opened this issue Jan 10, 2024 · 4 comments
Open

Updates regarding ID's for headings #219

ncbaratta opened this issue Jan 10, 2024 · 4 comments

Comments

@ncbaratta
Copy link
Member

ncbaratta commented Jan 10, 2024

I'd like to propose the following additions to the guidelines to accommodate accurate and consistent URLs on the new docs site:

  • every heading should have an ID
  • no ID should have the con_, ref_, assembly_, or proc_ prefix
  • IDs should never be changed (once published), even if the heading changes or the ID has a typo
  • IDs should not include extraneous words because they will appear in the URL. ex. upgrading_red_hat_enterprise_linux_to_version_10 could be upgrade_rhel_to_v10
    • product names in IDs can be shorted to remove "red hat" because that is in the URL already, and can use approved short forms because this is a space-confined location
@mjahoda
Copy link
Contributor

mjahoda commented Jan 10, 2024

Hi Nicole,

I will share my opinion:

* every heading should have an ID

You probably meant every non-discrete heading. However, I can imagine that even this might be unnecessary in many cases and considered as a rule without any practical benefit. I may be missing some good reason though.

* no ID should have the con_, ref_, assembly_, or proc_ prefix

100% agree.

* IDs should never be changed (once published), even if the heading changes or the ID has a typo

This is IMHO a convention that should be project-specific and more fine-grained. In the case of modules, you can preserve the existing links by using the multiple IDs feature:
https://gitlab.cee.redhat.com/red-hat-enterprise-linux-documentation/rhel-8-docs/-/wikis/Preserving-module-IDs-and-link-anchors-when-renaming-a-module
In some other cases, you can realize that it might be still better to fix some horrible typo in a URL, because there'are probably not many existing backlinks (you cannot influence).

* IDs should not include extraneous words because they will appear in the URL.  ex. upgrading_red_hat_enterprise_linux_to_version_10 could be upgrade_rhel_to_v10

Mostly agree, but this does not seem to be a mod-docs-specific convention (RH SSG?).

  * product names in IDs can be shorted to remove "red hat" because that is in the URL already, and can use approved short forms because this is a space-confined location

As in the previous point.

Thank you for bringing this up. In general, I think we should add at least some guidance you're proposing.

@ncbaratta
Copy link
Member Author

You probably meant every non-discrete heading. However, I can imagine that event this might be unnecessary in many cases and considered as a rule without any practical benefit. I may be missing some good reason though.

Yes I did!

@emmurphy1
Copy link
Collaborator

emmurphy1 commented Mar 13, 2024

@ncbaratta we discussed this at the Modular Documentation Steering Committee and in general are in agreement to add these guidelines to the reference guide. However, can you explain more about adding IDs to each heading? Do you mean each major (==, ===. etc) non-discrete heading? And what is the reason for this? Thanks.

@ncbaratta
Copy link
Member Author

I'll leave this to the current metadata committee to answer. Email them at CCS Metadata Governance Council [email protected]

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

No branches or pull requests

3 participants