mkdocs-rtd-dropdown
mkdocs-rtd-dropdown copied to clipboard
codeblock highlight error
i am very like rtd-dropdown this theme,but there is a error 。
this is rtd-dropdown
this is readthedocs
hopeful you can fix 。 thanks
+1 mkdocs-rtd-dropdown is remarkable has folded navigation feature, this is exactly what i want. I just have the same problem as @lenghonglin and want to fix it.
This is discussed in this issue: https://github.com/cjsheets/mkdocs-rtd-dropdown/issues/12 and fixed in this PR: https://github.com/cjsheets/mkdocs-rtd-dropdown/pull/27/commits/59b4cecd8404f80468afdadd0cdf821ec358ea01
+1 I met the same problems. The multi-row code will be shown in an extra long single line.
Is there good solution?
@marksugar See my comment above. There's a PR that fixes it. You can use that version.
@x-ji
Like this, it won't work
Site_name: My wiki
Nav:
- Home: index.md
Pages:
- MkDocs: index.md
- Hello-World:
- 1: Hello-World/1.md
Theme:
Name: 'rtd-dropdown'
I am not very clear about what is wrong, I am a newbie.
@marksugar Look at the issue: https://github.com/cjsheets/mkdocs-rtd-dropdown/issues/12 and the PR: https://github.com/cjsheets/mkdocs-rtd-dropdown/commit/59b4cecd8404f80468afdadd0cdf821ec358ea01
Here is what to do:
- Download a local copy of
rtd_dropdown
and put it in your project. - Apply the changes from that PR
- In your
mkdocs.yml
:
theme:
collapse_by_default: false
highlightjs: true
# ... Other settings
custom_dir: 'rtd_dropdown/' # The directory where you put your local copy of rtd_dropdown
Of course your code doesn't work because you're referring to the current version of rtd-dropdown
, not a modified version where the bug is fixed.