Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moqmar
Copy link
Contributor

@moqmar moqmar commented Mar 9, 2018

No description provided.

@mnapoli
Copy link
Member

mnapoli commented Mar 9, 2018

Could you explain please?

@moqmar
Copy link
Contributor Author

moqmar commented Mar 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants