Skip to content

fix: use pathname:// for install_picoclaw.py links to prevent webpack hash - #52

Merged
916BGAI merged 1 commit into
sipeed:mainfrom
916BGAI:main
May 9, 2026
Merged

fix: use pathname:// for install_picoclaw.py links to prevent webpack hash#52
916BGAI merged 1 commit into
sipeed:mainfrom
916BGAI:main

Conversation

@916BGAI

@916BGAI 916BGAI commented May 9, 2026

Copy link
Copy Markdown
Collaborator

Problem

Clicking the install_picoclaw.py link redirects to /assets/files/install_picoclaw-<hash>.py/ (404) because Docusaurus processes static file links via webpack, appending a content hash and a trailing slash (due to trailingSlash: true).

Fix

Replace /scripts/maixcam/install_picoclaw.py with pathname:///scripts/maixcam/install_picoclaw.py in all affected files. The pathname:// protocol tells Docusaurus to skip asset processing and link directly to the file in the static/ directory.

Files changed

  • docs/installation/maixcam.md
  • docs/installation/licheervnano.md
  • i18n/zh-Hans/.../maixcam.md
  • i18n/zh-Hans/.../licheervnano.md
  • i18n/pt-BR/.../maixcam.md
  • i18n/pt-BR/.../licheervnano.md

Copilot AI review requested due to automatic review settings May 9, 2026 01:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes broken documentation links to static/scripts/maixcam/install_picoclaw.py caused by Docusaurus asset/link processing (hashing + trailingSlash: true), by switching the affected Markdown links to use the pathname:/// URL scheme so they point directly at the file under static/.

Changes:

  • Updated install_picoclaw.py links from /scripts/maixcam/install_picoclaw.py to pathname:///scripts/maixcam/install_picoclaw.py in the English docs.
  • Applied the same link change across Chinese (zh-Hans) and Portuguese (pt-BR) localized docs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/installation/maixcam.md Switches the MaixCam install script link to pathname:/// to avoid hashed/trailed URLs.
docs/installation/licheervnano.md Switches the LicheeRV Nano install script link to pathname:/// to avoid hashed/trailed URLs.
i18n/zh-Hans/docusaurus-plugin-content-docs/current/installation/maixcam.md Applies the same pathname:/// link fix in the zh-Hans MaixCam doc.
i18n/zh-Hans/docusaurus-plugin-content-docs/current/installation/licheervnano.md Applies the same pathname:/// link fix in the zh-Hans LicheeRV Nano doc.
i18n/pt-BR/docusaurus-plugin-content-docs/current/installation/maixcam.md Applies the same pathname:/// link fix in the pt-BR MaixCam doc.
i18n/pt-BR/docusaurus-plugin-content-docs/current/installation/licheervnano.md Applies the same pathname:/// link fix in the pt-BR LicheeRV Nano doc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@916BGAI
916BGAI merged commit f1b16da into sipeed:main May 9, 2026
5 checks passed
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.

2 participants