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

Adjust heading levels on amazon-ecr page #770

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

bgonp
Copy link
Contributor

@bgonp bgonp commented Jun 24, 2024

It looks like using h1 tags in the content of a page is discouraged, here is a conversation in the Docusaurus repository about it. Docusaurus doesn't inject an ID for first-level headings so we cannot have links directly to these sections. In the official docs they only talk about 2, 3 and 4 levels, not mention about 1 AFAIK, but it looks like it generates some issues, e.g. the main title of the page just disappears if there are other h1:

Before After
image image

I don't know if we have a policy about how to use headings but it would be great to agree on that and to fix other possible issues like this one that could exist in the project.

(The preview won't work until #769 is merged)

Copy link

netlify bot commented Jun 24, 2024

Deploy Preview for okteto-docs ready!

Name Link
🔨 Latest commit a269ded
🔍 Latest deploy log https://app.netlify.com/sites/okteto-docs/deploys/6679780dbafeaf0008687845
😎 Deploy Preview https://deploy-preview-770--okteto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bgonp bgonp force-pushed the bgonp/amazon-ecr-headings branch 2 times, most recently from cec3746 to 385a1e6 Compare June 24, 2024 13:38
@bgonp bgonp force-pushed the bgonp/amazon-ecr-headings branch from 405bae1 to a269ded Compare June 24, 2024 13:43
@codyjlandstrom
Copy link
Contributor

Yeah it can be confusing, but we should stick to only using H2, H3, etc. in our docs and only H1 for the Docusaurus generated header for SEO purposes. I believe the latest google search algos penalizes you if more than one H1 appears

@codyjlandstrom codyjlandstrom merged commit cd53d63 into main Jun 24, 2024
4 checks passed
@codyjlandstrom codyjlandstrom deleted the bgonp/amazon-ecr-headings branch June 24, 2024 17: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.

2 participants