-
-
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
Support sub-directories in docs/ #323
Comments
Right now Docusaurus expects all files to be on a flat We can leave this open as a feature request in case someone wants to take a stab at implementing this. |
@steveklabnik Hi! What @hramos says is basically correct. But, I wanted to correct one thing in your initial issue comment and his response:
We implemented that you can put the docs in any directory you want. But the files have to be flat still. See |
Gotcha! Thanks for the quick response :) To be honest, I'm more concerned about the urls than I am about the directory structure. I'm experimenting with some API docs, and |
@steveklabnik We have a feature request (probably should be one of our top ones) to support custom permalinks. #101 That would help you sorta solve that problem too, right, assuming we don't get to non-flat doc structures first? |
I think so! Will comment over there too 👍 |
I would also very much like to see the non-flat folder structure, allowing subfolders for better organization. |
I think when markdown base increases, It would be hard to maintain it in a flat file structure. Just allowing sub-directories would be a very nice feature really. I am migrating to Docusaurus from gitbook and I think it will make it easy to maintain.. |
I would also like to see subfolder support! |
Hello everyone who wanted sub-directories support in Docusaurus. I have submitted PR #705 for it, please help me to test it if you want to see it shipped faster😂. I've personally tested this subdirectories in docs/ directly on my test site. Example:
|
Hi @endiliey - You may have answered part of this in #709 (comment), but our concern re: this change was always around how it would affect translations and versioning. You think translations still work well - that's great! Have you test with versioning too? |
Yes i have tested site with
Edit: even Windows compatibility 😁 |
Hi @endiliey I think versioning is broken on v1.3.2 when I run
|
@zack9433 mind giving a reproducible repo? File a new bug issue if possible with repo 😊 |
@endiliey seems like it's my settings problem and versioning is good right now. thx |
@zack9433 Can you point which settings you changed to fix this issue. I seem to have run into the same issue.
|
If I have a directory structure like this
Then in my {
"docs": {
"Application": [
"application/about",
"application/introduction"
], which is fine for me. My question is, what should |
@danon yup. Because internally at Docusaurus their id will be Feel free to ping us on discord instead since GH issue reply might not be as fast |
What's your discord? |
Does this only support one level of sub-directory under |
@zack9433 So I and other users are having this issue but you didn't provide a fix. Can you tell us what you had to change to get this working again so everyone benefits? Thanks! |
Fix can be found at #1395 for those experiencing this in the future. |
I believe this is a feature request. If not, it's a request for docs 😄
I believe that currently, all docs files must live in the root of
docs
. I'd like to be able to group them together with subfolders.Currently, it seems that directories inside of docs are simply ignored.
The text was updated successfully, but these errors were encountered: