fix: Improve Docusaurus link generation logic #181

Merged
Mahmoud-Emad merged 1 commits from development_herodocs_links into development 2025-10-15 14:38:36 +00:00
Mahmoud-Emad commented 2025-10-15 13:47:19 +00:00 (Migrated from github.com)

Changes:

  • Add function to strip numeric prefixes from filenames
  • Strip numeric prefixes from links for Docusaurus compatibility
  • Fix same-collection relative links
  • Convert collection:page links to relative paths
  • Remove .md extensions from generated links

How it works

Use this format for all links in markdown files:

[Link Text](collection:filename.md)

Example:

[Linux Installation](mycelium_network:03_linux_installation.md)
### Changes: - Add function to strip numeric prefixes from filenames - Strip numeric prefixes from links for Docusaurus compatibility - Fix same-collection relative links - Convert collection:page links to relative paths - Remove .md extensions from generated links ### How it works Use this format for all links in markdown files: ```markdown [Link Text](collection:filename.md) ``` **Example:** ```markdown [Linux Installation](mycelium_network:03_linux_installation.md) ```
Sign in to join this conversation.
No description provided.