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

Navigation Bar Not Loading in Subfolder #2512

Closed
MJ-Zeng opened this issue Nov 14, 2024 · 1 comment
Closed

Navigation Bar Not Loading in Subfolder #2512

MJ-Zeng opened this issue Nov 14, 2024 · 1 comment
Labels

Comments

@MJ-Zeng
Copy link

MJ-Zeng commented Nov 14, 2024

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]

@sy-records
Copy link
Member

There is no content in your file, add it and you can access it normally. https://github.com/MJ-Zeng/Code-Wiki/blob/main/docs/ai/machine-learning/README.md

image

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

No branches or pull requests

2 participants