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

[Bug report] The sidebar does not display the H3 title #1407

Closed
wu-clan opened this issue Sep 7, 2023 · 3 comments
Closed

[Bug report] The sidebar does not display the H3 title #1407

wu-clan opened this issue Sep 7, 2023 · 3 comments

Comments

@wu-clan
Copy link

wu-clan commented Sep 7, 2023

Description

Sidebar does not display H3 headings and automatically expands secondary headings with sub-level directories

Website: https://wu-clan.github.io/httpfpt_docs/note/

Reproduction

https://github.com/wu-clan/httpfpt_docs/blob/master/docs/.vuepress/sidebar.js

Used Package Manager

pnpm

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor             
    Memory: 6.10 GB / 15.91 GB
  Binaries:
    Node: 18.17.0 - D:\Nodejs\node.EXE
    Yarn: 1.22.19 - D:\Nodejs\node_global\yarn.CMD
    npm: 9.8.1 - D:\Nodejs\npm.CMD
  Utilities:
    Git: 2.41.0.
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.22621.2134.0), Chromium (116.0.1938.69)
  npmPackages:
    @vuepress/bundler-vite: Not Found
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: Not Found
    @vuepress/client: 2.0.0-beta.67 => 2.0.0-beta.67 
    @vuepress/core: Not Found
    @vuepress/markdown: Not Found
    @vuepress/plugin-active-header-links: Not Found
    @vuepress/plugin-back-to-top: Not Found
    @vuepress/plugin-container: Not Found
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-external-link-icon: Not Found
    @vuepress/plugin-git: Not Found
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom: 2.0.0-beta.67 => 2.0.0-beta.67 
    @vuepress/plugin-nprogress: Not Found
    @vuepress/plugin-palette: Not Found
    @vuepress/plugin-prismjs: Not Found
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: Not Found
    @vuepress/plugin-search: 2.0.0-beta.67 => 2.0.0-beta.67 
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data: Not Found
    @vuepress/plugin-toc: Not Found
    @vuepress/shared: Not Found
    @vuepress/theme-default: Not Found
    @vuepress/utils: Not Found
    vue: ^3.3.4 => 3.3.4
    vue-loader: Not Found
    vue-router: Not Found
    vuepress: 2.0.0-beta.67 => 2.0.0-beta.67
    vuepress-vite: Not Found
    vuepress-webpack: Not Found
@wu-clan
Copy link
Author

wu-clan commented Sep 7, 2023

@meteorlxy
Copy link
Member

Try adding .html suffix to your config.

For now only if you set the link to equal the route path, then the default theme will automatically add sub headers for you:
https://github.com/vuepress/vuepress-next/blob/eefcd862c82818d834a057ab0696eeb4090ac61b/ecosystem/theme-default/src/client/composables/useSidebarItems.ts#L147-L159

@wu-clan
Copy link
Author

wu-clan commented Sep 8, 2023

Thanks, it's very useful!

@wu-clan wu-clan closed this as completed Sep 8, 2023
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