Skip to content

docs: link repo files with absolute URLs instead of page-relative paths - #721

Open
SoulmatelynchVFX wants to merge 1 commit into
pmndrs:mainfrom
SoulmatelynchVFX:fix/repo-relative-links
Open

SoulmatelynchVFX wants to merge 1 commit into
pmndrs:mainfrom
SoulmatelynchVFX:fix/repo-relative-links

Conversation

@SoulmatelynchVFX

Copy link
Copy Markdown

Two links in the introduction pages point at repo files with page-relative paths, so they resolve against the docs route instead of the repository root and end up 404 on the built site:

  • docs/getting-started/introduction.mdx → components/mdx/index.tsx
  • docs/authoring/introduction.mdx → .github/workflows/build.yml

Change

Point both at the file on GitHub with absolute URLs:

  • https://github.com/pmndrs/docs/blob/main/src/components/mdx/index.tsx
  • https://github.com/pmndrs/docs/blob/main/.github/workflows/build.yml

Only the link targets change, no wording edits.

Verification

Both targets return 200:

200  https://github.com/pmndrs/docs/blob/main/src/components/mdx/index.tsx
200  https://github.com/pmndrs/docs/blob/main/.github/workflows/build.yml

git diff --stat: 2 files changed, 2 insertions(+), 2 deletions(-).

This branch has not been deployed

No deployments
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.

1 participant