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

Adds new docs tree β€” with a single command πŸ€– #637

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

h-enk
Copy link
Member

@h-enk h-enk commented Jan 28, 2022

Add new tree:

npm run create -- --kind docs [section]

Example:

npm run create -- --kind docs tutorial

Add to ./config/_default/menus/menus.en.toml:

[[main]]
  name = "Tutorial"
  url = "/tutorial/lorem/ipsum/"
  weight = 12

Next, add your content in the newly created section (like you would do for docs).

Comes w/ breadcrumb support plus support for the four menu options:

[menu]
  [menu.section]
    auto = true
    collapsibleSidebar = true

Snag_bffe45b

Section specific navigation bar:

Snag_c00d0a0

https://deploy-preview-637--doks.netlify.app/

@h-enk h-enk added this to the v0.4.0 milestone Jan 28, 2022
@h-enk h-enk linked an issue Jan 28, 2022 that may be closed by this pull request
@h-enk h-enk changed the title Adds auto new docs tree πŸ€– Adds new docs tree β€” with a single command πŸ€– Jan 28, 2022
@h-enk h-enk added the enhancement New feature or request label Jan 28, 2022
@h-enk h-enk self-assigned this Jan 28, 2022
@h-enk h-enk merged commit b911313 into master Jan 28, 2022
@h-enk h-enk deleted the new-docs-tree branch January 28, 2022 15:22
adhadse pushed a commit to adhadse/doks that referenced this pull request Sep 17, 2022
Adds new docs tree β€” with a single command πŸ€–
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unlimited docs, collapsible navigation and full width
1 participant