bug: forge doc
should only generate relative links
#8576
Labels
Cmd-forge-doc
Command: forge doc
good first issue
Good for newcomers
P-low
Priority: low
T-bug
Type: bug
Milestone
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (26a7559 2024-07-31T00:18:10.296782444Z)
What command(s) is the bug in?
forge doc
Operating System
Linux
Describe the bug
Some links generated by
forge doc
are relative (like../../../foo
), and some are absolute (like/contracts/foo
). When hosting documentation generated byforge doc
on GitHub pages, the root is something like<user>.github.io/<repo>
, and absolute links don't work because they don't have the<repo>
part. Relative links works normally.Steps to reproduce:
cartesi/rollups-contracts
pnpm i
to install all Node.js packagesforge doc -b
to build documentation pagesgrep -l '<a href="/' -r docs
and you'll see there will be several pages with absolute links:The text was updated successfully, but these errors were encountered: