|
1 | 1 | --- |
2 | | -title: "How to add hidden pages" |
3 | | -description: "Exclude pages from your docs.json" |
| 2 | +title: "Hidden pages" |
| 3 | +description: "Exclude pages from your `docs.json`" |
| 4 | +icon: "eye-closed" |
4 | 5 | --- |
5 | 6 |
|
6 | | -Sometimes you may want to write a page and not publish it immediately. |
| 7 | +You can use hidden pages for content that is not strictly confidential, but isn't ready for prime time. Hidden pages are excluded from your site's navigation, so people can only access hidden pages if they know the exact URL. |
7 | 8 |
|
8 | | -For content that is not strictly confidential, but isn't ready for prime time, you can add pages to your docs without referencing them in your `docs.json`. This is what is considered a "hidden page". |
9 | | - |
10 | | -As long as the page is not described under any "group", "tab" or other element in the navigation section of your `docs.json`, the only way a user will be able to navigate to the page is if they know or guess the page URL. |
| 9 | +A page is hidden until you add it to a group, tab, or other navigation element in your `docs.json`. |
11 | 10 |
|
12 | 11 | <Note> |
13 | 12 | Some navigation elements like sidebars, dropdowns, and tabs may shift or appear empty on hidden pages. |
14 | 13 | </Note> |
15 | 14 |
|
16 | | -If you want hidden pages to be indexed for SEO purposes and don't mind if their content appears in search results, you can add the following setting to your `docs.json`: |
| 15 | +If you want hidden pages to be indexed for SEO purposes and for their contents to appear when people search within your docs, add the following setting to your `docs.json`: |
17 | 16 |
|
18 | 17 | ``` |
19 | 18 | "seo" { |
20 | 19 | "indexing": all |
21 | 20 | } |
22 | 21 | ``` |
23 | 22 |
|
24 | | -The settings for SEO indexing also influence whether the contents of hidden pages can appear when your docs are searched internally with the search bar. If you want to make sure hidden pages' content does not appear in SEO or internal search results, make sure to add `noindex: true` to the frontmatter of your page. |
25 | | - |
26 | | -Learn more about SEO and Sitemaps configuration in the [SEO](https://mintlify.com/docs/settings/seo#sitemaps) docs. |
27 | | - |
| 23 | +If you want to exclude a specific hidden page's content from search engine and internal search results, add `noindex: true` to the frontmatter of the page. |
28 | 24 |
|
29 | | -If you have certain pages that you only want exposed to specific groups of your own users, you may want to use the selective groups access available through [Personalization](https://mintlify.com/docs/settings/authentication-personalization/personalization#showing-hiding-pages). |
| 25 | +If you have pages that you want only specific groups of your own users to have access to, you can use the selective groups access available through [Personalization](/settings/authentication-personalization/personalization#showing-hiding-pages). |
30 | 26 |
|
31 | | -If you have docs that you want under no circumstances exposed to the wider web, you may want to use [Authentication](https://mintlify.com/docs/settings/authentication-personalization/authentication). |
| 27 | +If you have pages that you want to maintain strict access control to, you can use [Authentication](/settings/authentication-personalization/authentication). |
0 commit comments