Skip to content

Commit

Permalink
doc: hide content class
Browse files Browse the repository at this point in the history
  • Loading branch information
mindspank committed Dec 14, 2023
1 parent 0d86468 commit 7b5eb9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ The CLI reference docs in `docs/reference/cli` are auto-generated based on the C
```bash
make docs.generate
```

## Hiding content

Sometimes you want to merge documentation but hide it pending a future release, there are a few different short-hands available.
For individual pages add `sidebar_class_name: hidden` to the top of the page and to hide an entire category add `className: hidden` to the `_category_.yml` file. Note that the pages are only hidden but still generated so you can still link to them.
4 changes: 4 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@
border-color: var(--ifm-toc-border-color);
border-radius: var(--ifm-global-radius);
padding: 0px 20px 20px 20px;
}

.hidden {
display: none !important;
}

0 comments on commit 7b5eb9e

Please sign in to comment.