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

Fix Header base path #460

Closed
giansalex opened this issue Feb 17, 2018 · 9 comments
Closed

Fix Header base path #460

giansalex opened this issue Feb 17, 2018 · 9 comments
Labels
status: needs more information There is not enough information to take action on the issue.

Comments

@giansalex
Copy link

I have a project /project-name/en but when i click on 'project header name' result in 404 Not found, because the link is /project-name/.
Can i change this path or remove en prefix.

@giansalex giansalex changed the title Fix base path Fix Header base path Feb 17, 2018
@JoelMarcey JoelMarcey added the status: needs more information There is not enough information to take action on the issue. label Feb 26, 2018
@JoelMarcey
Copy link
Contributor

Hi @giansalex Can you point me to your site or the code for your site? Are you using translations?
Generally the front page of your site, with the default language, should not have the language associated with it.

@giansalex
Copy link
Author

giansalex commented Feb 27, 2018

I built Docusaurus docs:
docusaurus
but my project result don't have the pages in root directory, I used publish-gh-pages
https://github.com/giansalex/sunat-docs/tree/gh-pages
do i need to make it manually?

@JoelMarcey
Copy link
Contributor

@giansalex Oh - I think I see what might be going on. In your siteConfig.js you have as the url as

url: 'https://giansalex.github.io/sunat-docs' /* your website url */,

The url in this case should just be https://gainsalex.github.io - the top level.

I can see how that may be a confusing name for non-custom GitHub pages domains.

Let me know if that fixes the problem. If so, we will need to think about documenting that option better or providing a synonym option that might be better named.

@giansalex
Copy link
Author

giansalex commented Feb 28, 2018

@JoelMarcey i made that change, but i can't see the page

expected https://giansalex.github.io/sunat-docs/
current https://giansalex.github.io/sunat-docs/en/

I'll need to copy the pages from en directory to root directory (gh-pages branch).

@giansalex
Copy link
Author

I had to copy the files from /en/ to root site.

@JoelMarcey
Copy link
Contributor

@giansalex You had to do that manually? You shouldn't have to do anything like that manually to get a site running by default. I suppose if you did some custom work outside the scope of what Docusaurus offers by default, maybe. But it you just ran docusaurus-init and tried to run the site out of the box, y you shouldn't have to move anything.

@giansalex
Copy link
Author

Docusaurus build don't copy files in root site,

image

@JoelMarcey
Copy link
Contributor

Oh - you are on Windows! We had a problem with this very issue on Windows that we fixed in a later version of Docusaurus. What version are you using now?

Sent with GitHawk

@giansalex
Copy link
Author

yes, i had in package.json v1.0.6, i update to 1.0.9 and it works
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs more information There is not enough information to take action on the issue.
Projects
None yet
Development

No branches or pull requests

2 participants