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(v2): fix incorrect anchor links in website #5021

Merged
merged 2 commits into from
Jun 20, 2021

Conversation

teikjun
Copy link
Contributor

@teikjun teikjun commented Jun 20, 2021

Motivation

This PR fixes one of the root causes of #5020 (See Demo 2)

Some anchor links are specified with the incorrect target, so this PR fixes these incorrect links

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Manual testing using local dev server. We won't be able to use the netlify preview to test this because all cross-page anchor links are failing due to another root cause (see #5020).

  1. Temporarily change useChangeRoute.ts hook in packages/docusaurus-theme-common/src/utils/useChangeRoute.ts as follows:

image

  1. Start the development server and go to localhost:3000/docs/deployment#self-hosting

  2. Click on the docusaurus serve link

  3. Should be redirected to the correct target header

image

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 20, 2021
@netlify
Copy link

netlify bot commented Jun 20, 2021

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 3dba0e5

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60cf78e3756e4d0008dbf858

😎 Browse the preview: https://deploy-preview-5021--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 61
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5021--docusaurus-2.netlify.app/

@teikjun teikjun changed the title docs(v2): Fix incorrect anchor link fix(v2): fix incorrect anchor links in website Jun 20, 2021
@lex111 lex111 changed the title fix(v2): fix incorrect anchor links in website docs(v2): fix incorrect anchor links in website Jun 20, 2021
@lex111 lex111 added the pr: documentation This PR works on the website or other text documents in the repo. label Jun 20, 2021
@lex111 lex111 merged commit c96c3b5 into facebook:master Jun 20, 2021
@lex111
Copy link
Contributor

lex111 commented Jun 20, 2021

@teikjun good catch, many thanks! 👍

@teikjun teikjun deleted the tj/fix-incorrect-anchor-link-targets branch June 21, 2021 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: documentation This PR works on the website or other text documents in the repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants