-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
MkDocs upgrade breaks existing valid projects #4314
Comments
Read the Docs modifies As a better fix I suppose we will have to detect the version of mkdocs and do the right thing based on the version. The other opetion is to change how we inject that version data.
We don't have an announcements mailing list but I do think that's a good idea. Currently the deployed version number is shown in the footer and links to the changelog. |
I get the thing about the version menu. However, the warning appears to be about the deprecated
How about a new @readthedocs-release on Twitter to which your release script posts a link to the changelog? |
We override the default readthedocs theme with a few extra templates. https://github.com/rtfd/readthedocs.org/tree/master/readthedocs/templates/mkdocs/readthedocs |
Yes, I know. If you install it in the Python environment prior to running If installing isn't possible then with v0.17.0 and up
should be replaced with
-> https://www.mkdocs.org/about/release-notes/#theme-customization-1164 |
The problem is that the above breaks with anybody who has pinned mkdocs to a version before 0.17.0. I don't see a way around version detection. Do you? |
Oh, it finally sunk in! You cannot install your theme because it's just a theme customization rather than a full theme.
Nope, sorry. I don't know how MkDocs is gonna behave once If it were just about theme options there may be a way around it but my idea is so half-baked that I don't dare to mention it. |
Agreed. We will need a solution by then. I think RTD needs to get a bit smarter in how or even whether versions of sphinx/mkdocs are able to be overridden. This has been the source of a number of problems. Maybe the version used is specified in |
Hi. I work with Marcel, so have been tracking this. The On a separate note, Readthedocs is a great service. Thanks 😄 |
As I mentioned, I view turning off |
Yes. No. 👍 |
Relates to shaarli#1179 See: - https://www.mkdocs.org/user-guide/configuration/#build-directories - readthedocs/readthedocs.org#4314 Signed-off-by: VirtualTam <[email protected]>
Because I landed here after having my RTD build break w/ theme: "readthedocs" to theme:
name: "readthedocs" fixes the issue (and lets you keep |
@JohnStrunk not sure if this is a catch-all solution. I noticed that on https://nodemcu.readthedocs.io/en/latest/ the fly-out menu bottom left is gone/broken (used the above snippet). |
Nevermind, it's actually the same issue I noticed already back in January: https://groups.google.com/d/topic/mkdocs/v7AVbeB105w/discussion. It broke when RTD moved the default MkDocs version to >= 0.16 (currently 0.17.3).
|
@marcelstoer I'll definitely check your project going forward. |
Details
Expected Result
As the project builds locally just fine with MkDocs 0.17.3 it should build fine on RTD as well.
Actual Result
The build fails with
I double checked my
mkdocs.yml
but there's notheme_dir
anywhere in sight: https://github.com/nodemcu/nodemcu-firmware/blob/dev/mkdocs.yml. However, thanks to thecat mkdocs.yml
output you provide for every build (great idea!) I see that the RTD build adds it!So, if you manipulate our build config on-the-fly then please do it in a way that doesn't break builds.
I'm happy about the MkDocs upgrade, that I found out about by coincidence, thank you 👏. But couldn't you inform affected users/projects by email when you do major upgrades? Any "release" or upgrade channel we can subscribe to?
The text was updated successfully, but these errors were encountered: