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

docs: add HeroDevs support banners to specific pages. Add new menu item. #252

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AndreAngelantoni
Copy link

Description

This PR does the following:

  • adds a new Support menu on the far right of the main navigation that points to the LTS page:

screenshot_3501

  • adds a new banner on the migration guides:

screenshot_3502

  • adds a new banner on versions of the documentation pages version 3 and lower:

screenshot_3503

The banners seemed to require swizzling the existing pages. If that wasn't correct, please advise.

Related Issues

Addresses fastify/fastify#5623.

Check List

Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you run the linter to get a green run&deploy?

/home/runner/work/website/website/src/theme/DocPage/index.js
Error:   79:10  error  'LatestVersionSuggestionLabel' is defined but never used  no-unused-vars

@AndreAngelantoni
Copy link
Author

AndreAngelantoni commented Oct 7, 2024 via email

@AndreAngelantoni AndreAngelantoni changed the title 5623: Add HeroDevs support banners to specific pages. Add new menu item. docs: add HeroDevs support banners to specific pages. Add new menu item. Oct 9, 2024
@Uzlopak
Copy link
Contributor

Uzlopak commented Oct 9, 2024

image
image

@@ -0,0 +1,126 @@
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that facebook copyright?

@AndreAngelantoni
Copy link
Author

AndreAngelantoni commented Oct 10, 2024 via email

@mcollina
Copy link
Member

@AndreAngelantoni it's 100% part of your PR.

@AndreAngelantoni
Copy link
Author

AndreAngelantoni commented Oct 10, 2024 via email

@AndreAngelantoni
Copy link
Author

My apologies, I thought that was for something else.

That was added by the Swizzler tool and has now been removed. Looking into the HTML detritus next.

@AndreAngelantoni
Copy link
Author

image image

I'm seeing this extra HTML in the current production docs:
https://fastify.dev/docs/latest/Reference/LTS/

I can certainly remove it as part of this PR but perhaps someone had intentions for it? (This is what I thought the other comment was referring to. Again, my apologies.)

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.

4 participants