-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Docusaurus for docs-only sites #459
Comments
This seems like a similar request to: #416 |
@ericnakagawa - you did this with your personal blog, didn't you? |
Take this gist as index.js: https://gist.github.com/richardzcode/d0fcb3a98e60528340175aa5168835bb It assumes you have a |
How would you render a markdown file + the docs sidebar, I can see |
Just a heads-up, but BlueWhale seems to do what the OP asked for. Although how, I have yet to investigate. Probably during the build step? |
@Happy-Ferret So the way we solved it for BlueWhale, which I don't think is a horrible solution, is to do a redirect from index.html to the first docs page. https://github.com/facebookresearch/BlueWhale/blob/docs/website/static/index.html |
I support BlueWhale's solution. |
I ended up doing this: No changes on the docusaurus project at all. But after |
Bluewhale solution doesn't work with Netlify. EDIT: Nevermind, it does. You need to remove |
Everyone still having this issue, its already documented here |
The redirect solution still leaves you with a |
In v2 of this project it would be great to have suppport for docs-only or blog-only versions of the classic init config |
Check Out Docs-only mode in the official Documentation of Docusaurus. |
I've been looking for a system to publish our Markdown documents and Docusaurus looks really nice. However, it currently seems to be targeted on "project websites" where the base URL (
docs.example.com
) hosts a front page and the docs live in the/docs
subfolder. There might be workaround like using only the/build/docs
folder after build-time but it would be really great to see first-class support for docs-only sites as well.Some things that I'd like to see in Docusaurus if it supported this use case:
docusaurus-init
mode that generates docs-only site./docs
folder is the root of the site and when I visitdocs.example.com
, I directly see the rendered/docs/index.md
document.docs.example.com/docs
.)The text was updated successfully, but these errors were encountered: