-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
mkdocs.yml not read when in docs dir #3249
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
Comments
@blairconrad are you still having this issue? |
@stsewd, I am. I just pushed updates to, and triggered a build of, https://bfakeiteasy.readthedocs.io/en/fix-docs/. Compare mkdocs.yml in the docs directory on the left, and mkdocs.yml at the project root on the right: |
Thanks for the screenshot, looks like rtd isn't searching for the mkdocs.yml file in other directories, just in the root Just a question, there is any difference putting it in another directory? Or it is just for keeping the root clean? This will be allowed with the new configuration file https://github.com/rtfd/readthedocs.org/pull/4084/files#diff-bd10ec86a98c7d6bdf7ea8455b8fdfd4R78 |
Oh, it was for keeping the root clean and because the docs actually said that Thanks, I'll keep an eye on #4084. |
I had tested the new changes with your project, you may want to see this https://www.mkdocs.org/about/release-notes/#stricter-directory-validation |
So, with the information above, we don't want to support that behavior (is deprecated and marked as an error in recent versions). What we will support (yaml file only) is having a mkdocs project inside another directory:
|
Yup, very clear, @stsewd. At least we know what not to do now. Although I'm confused by
I'd've expected
What do I miss? |
Ups, my mistake. It is as you mention (editing my comment) |
Details
Expected Result
The table of contents in the
mkdocs.yml
file is not respected, and our code formatting lost its "GitHub" styling. It's as if themkdocs.yml
file is not read at all.A description of what actually happened
The Build Process documentation says:
As part of FakeItEasy/FakeItEasy#1250, we moved our
mkdocs.yml
file from the root of the repo to thedocs
directory. We expected no changes to the generated docs.Actual Result
Thereafter, the docs for the 4.2.0 release
mkdocs.yml
.It's as if the
mkdocs.yml
file was not read at all.I thought the problem might've been a bad
docs_dir
, so I added these lines to the YML:But it made no difference.
For now, I'm working around the problem by moving the
mkdocs.yml
file back to the root, as seen in FakeItEasy/FakeItEasy#1267.The text was updated successfully, but these errors were encountered: