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

Problems setting the root dir / searchpath #52

Open
tecosaur opened this issue Apr 5, 2023 · 1 comment
Open

Problems setting the root dir / searchpath #52

tecosaur opened this issue Apr 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@tecosaur
Copy link

tecosaur commented Apr 5, 2023

Hi, I've just tried setting up MultiDocumenter with https://github.com/tecosaur/DataToolkitDocs, however I'm having issues with the search and root path. It's deployed to https://tecosaur.github.io/DataToolkitDocs/, and with the default rootpath value of / I get 404 errors with the searching, from the following path being requested: https://tecosaur.github.io/search-data/store.json et. al, if I change the rootpath to DataToolkitDocs/ though, I now get 404s from https://tecosaur.github.io/DataToolkitDocs/ref/stable/DataToolkitDocs/search-data/store.json et. al.

I can't see how to get it to look in the right place (https://tecosaur.github.io/DataToolkitDocs/search-data/store.json etc.)

@pfitzseb
Copy link
Member

pfitzseb commented Apr 5, 2023

It needs to be rootpath = "/DataToolkitDocs/".

I tried to communicate that in the docs ("rootpath is the path your site ends up being deployed at, e.g. /foo/ if it's hosted at https://bar.com/foo"), but it is admittedly pretty subtle and could just be handled by the code (either by throwing an error or prepending the slash).

@pfitzseb pfitzseb added the enhancement New feature or request label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants