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

Sidebar not working #43

Closed
jackmerrill opened this issue Oct 28, 2020 · 1 comment
Closed

Sidebar not working #43

jackmerrill opened this issue Oct 28, 2020 · 1 comment

Comments

@jackmerrill
Copy link

Hi there, I'm trying to create some documentation for a repository of mine. I currently have this in docs.yml:

- title: Cybersecurity
  docs:
    - title: Browsing The Internet Safely
      path: browsing
    - title: How To Keep Your Information Safe
      path: security

It doesn't show up in the sidebar when I test it. just an empty collapse menu.

Inside those two Markdown files is this:

browsing.md

---
title: Browsing The Internet Safely
permalink: /docs/cybersecurity/internet
---

security.md

---
title: How To Keep Your Information Safe
permalink: /docs/cybersecurity/privacy
---

If I go to those links in the browser, it shows up and works, but they don't show up in the sidebar.

What am I doing wrong, and how can I fix it?

Thanks!

@aksakalli
Copy link
Owner

Hi,

your docs.yml should look like this:

- title: Cybersecurity
  docs:
  - browsing
  - security

similar to the default docs.yml, you set the title in the actual *.md document.

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