-
Notifications
You must be signed in to change notification settings - Fork 62
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
base: main
Are you sure you want to change the base?
docs: add HeroDevs support banners to specific pages. Add new menu item. #252
Conversation
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.
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
Yes, will do.
…On Sun, Oct 6, 2024 at 9:38 AM Manuel Spigolon ***@***.***> wrote:
***@***.**** commented on this pull request.
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
—
Reply to this email directly, view it on GitHub
<#252 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3WQBIPSKUN2RRWDSPNNIDZ2FKPFAVCNFSM6AAAAABPMRL5QSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJQGU2TMMRYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
src/theme/DocVersionBanner/index.js
Outdated
@@ -0,0 +1,126 @@ | |||
/** |
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.
Why is that facebook copyright?
Not part of our PR...sorry, couldn't tell you.
…On Wed, Oct 9, 2024 at 1:45 PM Aras Abbasi ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/theme/DocVersionBanner/index.js
<#252 (comment)>:
> @@ -0,0 +1,126 @@
+/**
Why is that facebook copyright?
—
Reply to this email directly, view it on GitHub
<#252 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3WQBJWSB5D5NIRDGTCUVLZ2WBWHAVCNFSM6AAAAABPMRL5QSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJYGE3DSOJUGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@AndreAngelantoni it's 100% part of your PR. |
Ok, I'll look into it.
…On Thu, Oct 10, 2024 at 1:40 AM Matteo Collina ***@***.***> wrote:
@AndreAngelantoni <https://github.com/AndreAngelantoni> it's 100% part of
your PR.
—
Reply to this email directly, view it on GitHub
<#252 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3WQBMXEN63I3EHOIOGCYDZ2YVODAVCNFSM6AAAAABPMRL5QSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBUGMYTKMRXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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. |
I'm seeing this extra HTML in the current production docs: 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.) |
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.
My apologies...I thought the comment was referring to something else.
That was added by the Swizzler tool and it's now gone.
On Thu, Oct 10, 2024 at 7:02 AM André Angelantoni ***@***.***>
wrote:
… Ok, I'll look into it.
On Thu, Oct 10, 2024 at 1:40 AM Matteo Collina ***@***.***>
wrote:
> @AndreAngelantoni <https://github.com/AndreAngelantoni> it's 100% part
> of your PR.
>
> —
> Reply to this email directly, view it on GitHub
> <#252 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BE3WQBMXEN63I3EHOIOGCYDZ2YVODAVCNFSM6AAAAABPMRL5QSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBUGMYTKMRXGY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Modification made. Please confirm. |
Could you update the branch so we can deploy to staging? Feel free to ping me to speed up the merge! |
/recheck |
@Eomm happy to work with you :-) I rebased and am getting errors both locally and with the PR check:
And several more. Perhaps an issue with the Docusaurus update? |
I think there are few merge conflicts TBH will check it in a week or so |
67d919c
to
3e00152
Compare
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' | ||
import Link from '@docusaurus/Link' | ||
import Translate from '@docusaurus/Translate' | ||
import { useActivePlugin, useDocVersionSuggestions } from '@docusaurus/plugin-content-docs/client' |
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.
I think this code should be upgraded to docusaurus v3:
Locally I get:
Note that I rebased this PR to main
and other PR are working; #264
Description
This PR does the following:
The banners seemed to require swizzling the existing pages. If that wasn't correct, please advise.
Related Issues
Addresses fastify/fastify#5623.
Check List