Hidden or private pages… there are times when we want select readers to view new functionality that is being piloted, and don’t want most readers to access. Other portals offer this functionality in various ways, such as URLs with a secret key or user groups with certain page access.
Could this functionality be added to DeveloperHub?
Great news. This is getting baked now in the oven.
How it would work:
You can mark a page as hidden from index. When a reader visits the docs, they won’t see it in the index. Search does not reach its contents. Search engine robots do not index it.
If any page links to it in the documentation, or if you provide the reader with a direct URL to it, then they’ll be able to navigate to the page and see its contents. At this point, it would show in the index with a slashed eye icon next to it which on hovered would show (Page is hidden).
If the page is a parent page, then naturally its child pages are hidden with it too, and they would all appear if the reader stumbles on the parent page or any child page of it.
Is this how you expect it to work?
Note: The solution is not to be used to protect sensitive information.
If this doesn’t appear in the ToC or search results, why not? Is the only reason that the reader could guess the URL, in which case the writer can use a key in the slug e.g. “my-secret-page-wfyj49seq6q2vxju”
Even though it does not appear on the UI or search, the hidden pages are still sent through the API. If someone intends to find them, then they can find them.
For sensitive information, only Custom Login should be used on a project level.