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

Removing the docs directory after content #10

Open
kimberleybrown opened this issue May 2, 2022 · 1 comment
Open

Removing the docs directory after content #10

kimberleybrown opened this issue May 2, 2022 · 1 comment

Comments

@kimberleybrown
Copy link

Hi!

I've been looking at the justdocs project and was wondering how you were able to remove the mandatory 'docs' directory from 'content' that stores all the content in there. I saw that you were handling this in the justdocs project and was curious how it was being done. I have a current setup where we don't want to have the additional /docs directory for the overhead it causes, but running into the issue where the left-hand menu doesn't display everything in content/.

For example, our structure could be:

  • content
    -- apis
    -- overview
    -- changelog

but if we link to apis/ from our landing page, the lefft-menu only shows files/directories from within apis/ and there's no way to see anything from /content.

Happy to provide more information if requested. Thank you!

@kimberleybrown
Copy link
Author

Resolved! :)

  `{{ template "section-tree-nav-section" (dict "page" . "section" .Site.Home "shouldDelayActive" $shouldDelayActive "sidebarMenuTruncate" $sidebarMenuTruncate "ulNr" $ulNr "ulShow" (add $ulShow 1)) }}`

"section" needs to call .Site.Home instead of the default $navRoot.

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

1 participant