brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
957 stars 101 forks source link

Would like the ability to add static assets at a deeper directory level than the main html file #2356

Open mnazzaro opened 7 months ago

mnazzaro commented 7 months ago

For instance, I would like to be able to have a main html file at the top level, then storing the static assets two levels deeper than that. In general just the ability to customize the destination directory of the static assets relative to the html file.

dginev commented 7 months ago

Thanks for the request!

We currently have a single --sitedirectory option in latexmlpost that determines the base directory of the site, which I believe is the default location for all static assets (notably images such as x1.png).

We probably want to have a --site-assets-directory option that specifies a sub-level where static assets are to be written (and have a defensive check that it is contained within --sitedirectory).

chrisjcameron commented 6 months ago

This feature may help support offline viewers: https://github.com/arXiv/html_feedback/issues/554#issuecomment-2093079348