-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
feat(core): siteConfig.headTags API to render extra tags in document head #8151
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Pretty sure build performance test will pass if you rerun it - not sure what happened there. Nothing significant should have changed with this PR - no segfaults received when building on my old local machine 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks like the API I want 👍
config.headTags
or config.head
, not sure what is best. Not a big deal, we can change later if we want.
I'd rather remove any ref to the WIP monetization API for now and use a simpler example
Also good to have more validation tests
I think that's the feedback addressed! |
Does this look okay @slorber ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Will do the cleanup and merge 👍
Awesome! |
…head (#8151) Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Pre-flight checklist
stylesheets
API more generalized #8049) and the maintainers have approved on my working plan.Motivation
This is a follow on of #8077 - motivation copied from there:
I'm trying to add a custom link tag to the header of all the pages on my Docusaurus site. In my case I'm looking to render a web monetization link which looks like this:
It looks like there isn't a way to generically supply global link tags with Docusaurus. At least... until now!
Test Plan
Herewith a screenshot of the new documentation and the rendered link tag:
There's a failing "Build Performance" test - it doesn't seem to be related to the changes in this PR; I'm guessing this is a flaky test. No issues building locally.
Test links
Deploy preview: https://deploy-preview-8151--docusaurus-2.netlify.app/docs/api/docusaurus-config#headTags
Crack open the devtools and you can see the
link
tag present and correct. You may well want to replace this link tag with your own!Related issues/PRs
#8077
#8049