hylo-lang / hylodoc

Code documentation generator for Hylo
https://hylodoc.web.app
Apache License 2.0
1 stars 0 forks source link

Add option to deploy to subfolders #5

Open tothambrus11 opened 4 months ago

tothambrus11 commented 4 months ago

Currently, the website generation assumes the project will be deployed to a domain's root. However, many people want to host their documentation in a subfolder, like https://example.com/docs, in which case all our absolute references would break, e.g. src="/assets/style.css".

There are multiple solutions:

ParadoxPixel commented 4 months ago

I think some other solutions would be:

The second option might make it more difficult to keep a proper separation of concerns and not to bloat the ResolvedTarget / resolution step.