racket / scribble

Other
194 stars 89 forks source link

Resource files for `figure` are placed under the wrong directory when generated using `--html-tree` #424

Open 9ao9ai9ar opened 1 month ago

9ao9ai9ar commented 1 month ago
;;; home.scrbl
#lang scribble/manual
@title{House}
@include-section["house.scrbl"]
@include-section["hut.scrbl"]
;;; house.scrbl
#lang scribble/manual
@(require scriblib/figure)
@title{Home}
@figure["hw" @elem{HW}]{
  Hello World!
}
;;; hut.scrbl
#lang scribble/manual
@(require scriblib/figure)
@title{Hut}
@figure["ht" @elem{HT}]{
  Hello Team!
}
scribble --dest ./ --html-tree 2 ./home.scrbl

The files figure.js and figure.css (and racket.css in my real project) are placed inside ./Home/House/, but the HTML output files assume they're under the web root (./Home/).