Skip to content
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

Question: how to configure cascading menu in nav? #45

Open
ichangyun opened this issue May 18, 2021 · 1 comment
Open

Question: how to configure cascading menu in nav? #45

ichangyun opened this issue May 18, 2021 · 1 comment

Comments

@ichangyun
Copy link

ichangyun commented May 18, 2021

I'd like to configure nav contains pop up menu, like this:

图片

What I got now doesn't contains a menu in nav.

the mkdocs.yml:
`
site_name: 畅云时讯
site_url: http://www.ichangyun.cn

#strict: true

theme:
name: material
language: zh
logo: image/icon.ico
palette:
primary: light blue
features:
- navigation.indexes
- navigation.tabs
- navigation.instant
- navigation.tabs.sticky
markdown_extensions:

  • pymdownx.emoji:
    emoji_index: !!python/name:materialx.emoji.twemoji
    emoji_generator: !!python/name:materialx.emoji.to_svg
  • pymdownx.critic
  • pymdownx.caret
  • pymdownx.mark
  • pymdownx.tilde
  • pymdownx.tabbed
  • attr_list
  • pymdownx.arithmatex:
    generic: true
  • pymdownx.highlight:
    linenums: true
  • pymdownx.superfences
  • pymdownx.details
  • admonition
  • toc:
    baselevel: 2
    permalink: true
    slugify: !!python/name:pymdownx.slugs.uslugify
  • meta
    plugins:
  • include-markdown
  • search:
    lang: ja
  • awesome-pages
    `

the top level .pages:

`
nav:

  • 首页: index.md
  • 产品中心: products
  • 解决方案: solutions
  • 联合实验室: lab
  • 新闻动态: news
  • 关于我们: about
    `
@lukasgeiter
Copy link
Owner

I'm not sure I understand your question. If you are asking about how you can get your navigation to look like the screenshot you're at the wrong address here. This plugin revolves purely around the structure of your navigation. How it is then rendered is a matter of the theme, in your case mkdocs-material.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants