To see this,
- Copy info.rkt and test.scrbl to a folder
- Run
raco planet link yourname foldername.plt 1 0 /path/to/here - Run
raco planet create . - Open up planet-docs/index.html
- Click on the helpfully provided link.
- The link's href is
/#(part._testing-section-tag)
This is because in scribble/html-render.rkt in the render-content method near line 1084:
(define/override (render-content e part ri)
... many lines ...
[(and (link-element? e) (not (current-no-links)))
(parameterize ([current-no-links #t])
(let-values ([(dest ext?)
(resolve-get/ext? part ri (link-element-tag e))])
...It turns out (dest-path dest) is a #<mobile-root> containing the output folder of the planet package (in my case, #<path:planet-docs/test>). Then, (dest->url dest) returns the incorrect href, "/#(part._testing-section-tag)" because it expects a file instead of a directory (see line 383 of html-render.rkt).