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

Using README.md files results in confusing sidebar #32

Open
jschaf opened this issue Dec 29, 2021 · 2 comments
Open

Using README.md files results in confusing sidebar #32

jschaf opened this issue Dec 29, 2021 · 2 comments

Comments

@jschaf
Copy link

jschaf commented Dec 29, 2021

Hi Niklas,

I reached out a few months ago. I have some time so giving doctave a go.

Our repo is structured so that docs live next to the code, e.g.:

app/
  - README.md
  - index.tsx
  - components/
      - README.md
      - NavBar.tsx

It seems that doctave uses the file name "README" when populating the navbar. Is docs in README a use-case for doctave? If so, it might be helpful to use either the title of the README or use the directory name instead of "README"

image

@begleynk
Copy link
Member

Hi Joe! Glad to hear you're giving Doctave a spin.

Doctave treats the README.md file as the "index.html" of that folder. So a file under <your docs folder>/frontend/README.md can be accessed at /frontend in the browser.

As for the navigation, you can customize the title of the page by adding a frontmatter section to the top the file:

---
title: Title of the page
---

# Content goes here

That will change how it shows up in the navigation.

I guess an optimization we could add would be to use the name of the parent folder instead of just "README" as the title in order to save some typing.

Does that work for you?

@CleanCodeDeveloper
Copy link

CleanCodeDeveloper commented Jan 17, 2022

I guess an optimization we could add would be to use the name of the parent folder instead of just "README" as the title in order to save some typing.

this would fit my use case as well. Would solve #42.

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

3 participants