mkdocs-rtd-dropdown icon indicating copy to clipboard operation
mkdocs-rtd-dropdown copied to clipboard

codeblock highlight error

Open lenghonglin opened this issue 6 years ago • 7 comments

i am very like rtd-dropdown this theme,but there is a error 。

this is rtd-dropdown

image

this is readthedocs image

hopeful you can fix 。 thanks

lenghonglin avatar May 17 '18 12:05 lenghonglin

+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.

LyleLee avatar Feb 15 '19 08:02 LyleLee

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

x-ji avatar May 03 '19 18:05 x-ji

+1 I met the same problems. The multi-row code will be shown in an extra long single line.

ZDHJ9EZW avatar Jul 09 '19 13:07 ZDHJ9EZW

Is there good solution?

marksugar avatar Aug 10 '19 10:08 marksugar

@marksugar See my comment above. There's a PR that fixes it. You can use that version.

x-ji avatar Aug 10 '19 10:08 x-ji

@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 avatar Aug 10 '19 11:08 marksugar

@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.

x-ji avatar Aug 10 '19 13:08 x-ji