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

Support sites in subdirectories: add conig for BaseURL/SiteRoot... #45

Open
wjdp opened this issue Jul 18, 2017 · 2 comments · May be fixed by #215
Open

Support sites in subdirectories: add conig for BaseURL/SiteRoot... #45

wjdp opened this issue Jul 18, 2017 · 2 comments · May be fixed by #215

Comments

@wjdp
Copy link
Owner

wjdp commented Jul 18, 2017

If you generate a site that will be served at https://example.com/foo/bar/ in directory output all your links will point to /foo/bar/… and htmltest will try to look in output/foo/bar/…. Add a conf option to move the site root.

As a workaround you could put your site in output/foo/bar/ and the run htmltest as before with DirectoryPath set to output.

@wjdp wjdp added the feature label Jul 18, 2017
@wjdp wjdp added this to Next Minor (0 series) in htmltest Development Jul 20, 2017
@earthboundkid
Copy link
Contributor

A related issue is if you have absolute URLs like https://example.com/page.html and page.html exists in your project folder, but not yet on the site (because it hasn't been uploaded yet, since you're running the pre-upload test now). You should be able to specify the base URL so this is properly interpreted.

@rogeruiz
Copy link

rogeruiz commented Nov 5, 2021

This this issue currently being worked on? I'd like to contribute to the project but It seems like this is an old issue. My interest in taking this on is because I would like to be able to test Docusaurus built static sites. I'm currently encountering the need to set a basepath.

As a workaround you could put your site in output/foo/bar/ and the run htmltest as before with DirectoryPath set to output.

Also this workaround did not work for me. I get errors because the absolute path starts with the name of the DirectoryPath so the files can't be found in /output/output/foo/bar/.

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

Successfully merging a pull request may close this issue.

3 participants