Couscous icon indicating copy to clipboard operation
Couscous copied to clipboard

Use relative URLs if baseUrl is not set or is "." (#117)

Open moqmar opened this issue 7 years ago • 2 comments

moqmar avatar Mar 09 '18 11:03 moqmar

Could you explain please?

mnapoli avatar Mar 09 '18 20:03 mnapoli

This solves issue #117 - if the baseUrl is ~~empty~~ unset (an empty string still means "the root of the current domain") or ".", it is dynamically set for every page - pages in the main directory get a baseUrl of ., in a first-level subdirectory .., second-level gets ../.., and so on. That way, the generated HTML files can be hosted everywhere and even work when opened from the local file system.

moqmar avatar Mar 10 '18 21:03 moqmar