-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
bug (v2) html files with underscore prefix returning 404 #2332
Comments
This is not a Docusaurus bug, if you add the See: |
@lex111 thanks! Also do you think docusarus should add the |
@amilajack no, I don’t think so, because this is an issue that applies only to GitHub Pages (in this case), and we should not care about this, since our task as a static site generator is to generate the proper build of website. |
This is interesting! While it's not a Docusaurus bug, I recommend we document these weird behaviors down in a new FAQ page or something - maybe https://v2.docusaurus.io/docs/faq? I can think of more stuff to add into it (e.g. some prerendering-related issues). @amilajack would you be interested in creating one? Even if we don't add it as an FAQ page on our site, we can create a Stack Overflow question so that the knowledge is shared and people can discover it easily. |
I’d love to document this. I was wondering what the correct place to document this was. I was thinking of adding it to the “publishing with GitHub pages” section. What are your recommendations? |
I like this idea, it will be more convenient and predictable for users than creating a separate section (FAQs) for this. Although maybe in the future it might be worth writing something like that. |
Adding it to the "Publishing with GitHub pages" section sounds good! |
🐛 Bug Report
HTML files in
static
dir with underscore prefix are not resolved. Page showsPage Not Found
. Only resolves underscores when runningdocusaurus start
.Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
_foo.html
tostatic
dirExpected behavior
_foo.html
page should be resolved. Behavior should be consistent between dev and prod builds.Actual Behavior
_foo.html
page showsPage Not Found
Your Environment
Reproducible Demo
https://github.com/amilajack/my-website
this works
https://github.com/amilajack/my-website/foo.html
this does not work
https://github.com/amilajack/my-website/_foo.html
The text was updated successfully, but these errors were encountered: