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
Problem with MkDocs and Read The Docs #2145
Comments
So, do you see how your site_dir is a subdirectory of your docs_dir? you need to change your site_dir to someplace else. That's all this error is complaining about. |
This error is related to your project directory structure. See https://www.mkdocs.org/#getting-started for the correct structure. It seems you've also configured the |
i didnt do anthing . it was all automic . its done from the 'Read the Docs.org' . |
if it was my configuration i would do sth . but not . i cant do anything . |
MkDocs doesn't directly provide anything to 'Read the Docs.org'. If you have an issue with what they are doing, you'll have to take it up with them. The people who are trying to help are giving valid relevant information. Those are the relevant settings that MkDocs provides. Any other service that prevents you from setting those, or augments them those, will need to have this issue taken up with them. |
@000Zer000 Would you like to post your configuration? |
What should i post ?? . a picture from 'None' . i didnt do any configuration. |
So if you've followed the instructions on https://docs.readthedocs.io/en/stable/intro/getting-started-with-mkdocs.html on how to get started using ReadTheDocs with MkDocs and there are issues with the basic configuration, that seems like it's an issue that should be adressed with ReadTheDocs and not MkDocs. |
So Im closing it |
I'm having the same problem, and here are the details. (Scroll down for workaround) My repo has the following structure:
As far as MkDocs is concerned, for everything under Now RTD is running the following command:
Which causes the error
As you can see, for
But for Build: https://readthedocs.org/projects/hterrain-plugin/builds/12444374/ Update: the build succeeds if I add this to docs_dir: docs Which is again what |
If this is a bug, then it is a bug with ReadTheDocs, not MkDocs. ReadTheDocs' source code can be found at readthedocs/readthedocs.org. They don't let MkDocs load its own config. Instead they load it themselves, update various config items with their own defaults, and then pass it to MkDocs. The issue you are having is with the second step. Because you have not defined a value, they assign their default (not our default). And because you are not using ReadTheDocs default file structure, their default is failing. But when you define your own value, they don't force their default and it works fine. @Zylann, If you want to address this issue, you need to take this to ReadTheDocs. It is out of our hands. |
i cant use mkdocs .
Error :
`ERROR - Config value: 'site_dir'. Error: The 'site_dir' should not be within the 'docs_dir' as this leads to the build directory being copied into itself and duplicate nested files in the 'site_dir'.(site_dir: '/home/docs/checkouts/readthedocs.org/user_builds/zkit-framework/checkouts/latest/_build/html', docs_dir: '/home/docs/checkouts/readthedocs.org/user_builds/zkit-framework/checkouts/latest')
Aborted with 1 Configuration Errors!
`
What should i do ? i do best with markdown . but need MkDocs on readthedocs . all others projects have this problem too . (it works using sphinx) . is this probelm from Mkdocs or ReadtheDocs ???
The text was updated successfully, but these errors were encountered: