You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/blocks/page-actions/index.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ By default, documentation pages can show:
16
16
-**Edit in GitHub**: Link to open the source file on GitHub and propose edits
17
17
-**Log an issue**: Button to report a problem with the page (GitHub or your issue tracker)
18
18
-**Copy as Markdown**: Button to copy the page content as Markdown
19
+
-**ON THIS PAGE**: Sidebar navigation generated from the page's headings
19
20
20
21
## When to Hide
21
22
@@ -24,18 +25,20 @@ Consider hiding these actions when:
24
25
-**Edit in GitHub**: Restricted content, auto-generated pages, sensitive docs, legal/compliance pages, or content that requires internal review before edits
25
26
-**Log an issue**: Pages not open for public feedback, auto-generated content, or internal-only docs where issues are handled elsewhere
26
27
-**Copy as Markdown**: Pages where copying source is restricted, sensitive content, or minimal layouts where you want less clutter
28
+
-**ON THIS PAGE**: Pages with no meaningful heading structure, single-section pages, or layouts where the sidebar adds visual clutter
27
29
28
30
29
31
30
32
## How to hide
31
-
To hide one or more of these actions on a page, add the corresponding options to that page’s frontmatter. Each option is independent, so you can combine them as needed.
33
+
To hide one or more of these actions on a page, add the corresponding options to that page's frontmatter. Each option is independent, so you can combine them as needed.
32
34
33
35
```yaml
34
36
---
35
37
title: Your Page Title
36
38
hideEditInGitHub: true
37
39
hideLogIssue: true
38
40
hideCopyMarkdown: true
41
+
hideOnThisPage: true
39
42
---
40
43
```
41
44
@@ -46,6 +49,7 @@ hideCopyMarkdown: true
46
49
|**hideEditInGitHub**| Boolean | When `true`, hides the "Edit in GitHub" link. Omit or `false` to show it (default). |
47
50
|**hideLogIssue**| Boolean | When `true`, hides the "Log an issue" button. Omit or `false` to show it (default). |
48
51
|**hideCopyMarkdown**| Boolean | When `true`, hides the "Copy as Markdown" button. Omit or `false` to show it (default). |
52
+
|**hideOnThisPage**| Boolean | When `true`, hides the "ON THIS PAGE" sidebar navigation. Omit or `false` to show it (default). |
0 commit comments