Skip to content

Navigation Bar Not Loading in Subfolder #2512

@MJ-Zeng

Description

@MJ-Zeng

Issue Description:

When accessing the ai/machine-learning subfolder, the sidebar file is not being loaded correctly. The console logs an error: GET http://localhost:3000/ai/machine-learning/_sidebar.md 404 (Not Found).

Steps to Reproduce:
Navigate to http://localhost:3000/ai/machine-learning/.
Observe that the sidebar is not displayed.
Check the browser console for the 404 error.

File Structure:

深色版本
.
├── _sidebar.md
├── _navbar.md
├── index.html
├── ai
│ └── machine-learning
│ ├── _sidebar.md
│ ├── 1-Model-Assessment.md
│ ├── 2-Matrix-Differentiation.md
│ ├── 3-Linear-Regression.md
│ └── 4-KNN.md
└── ...

index.html File Content:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Code Wiki</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="description" content="Description"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"> </head> <body> <div id="app"></div> <script> window.$docsify = { name: 'Code Wiki', repo: '', loadSidebar: true, subMaxLevel: 3, loadNavbar: true, navbar: '_navbar.md', }; </script> <!-- Docsify v4 --> <script src="//cdn.jsdelivr.net/npm/docsify@4"></script> </body> </html> 

_navbar.md File Content:

ai/machine-learning/_sidebar.md File Content:

Markdown

Additional Information:

Docsify Version: 4
Browser: [Specify your browser and version]
Operating System: [Specify your operating system]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions