Skip to content

docs(ep-v2): document hidden: true page frontmatter - #4447

Merged
seanoseanohay merged 3 commits into
mainfrom
sc-138380-ep-hidden-frontmatter-docs
Aug 31, 2026
Merged

docs(ep-v2): document hidden: true page frontmatter#4447
seanoseanohay merged 3 commits into
mainfrom
sc-138380-ep-hidden-frontmatter-docs

Conversation

@seanoseanohay

Copy link
Copy Markdown
Contributor

Summary

Document Enterprise Portal v2 page frontmatter hidden: true so vendors can keep a page in the content repo and toc.yaml without publishing it.

Implements docs for sc-138380. Implementation: vandoor#10449.

Why

Vendors could omit a page from toc.yaml or gate it with visible_when, but there was no documented way to leave the nav slot in place and keep the page unpublished. hidden: true is unpublished content, not a license or entitlement gate. It takes precedence over visible_when.

Changes

  • enterprise-portal-v2-content.mdx
    • Distinguish omitting a page from toc.yaml (allowlist) from hidden: true (keep the TOC entry, unpublished)
    • Note that overrides.home cannot restore a hidden page, and hidden: true can hide the home landing page
    • Nested nav: a TOC node whose page is hidden is dropped with its subtree; title-only sections cannot use hidden
    • Add hidden: true next to frontmatter visible_when, with a page example and a matching toc.yaml entry
    • Asset access: a hidden page does not authorize downloads
  • enterprise-portal-v2-troubleshooting.mdx — pages missing from navigation can be unpublished with hidden: true
  • enterprise-portal-v2-use.mdx — customer-facing nav also respects unpublished pages

No changes to enterprise-portal-v2-versioned-docs.mdx. Hiding main as a draft branch is a different feature.

Validation

  • git diff --check
  • Did not run Vale or a Docusaurus build locally

Enterprise Portal v2 can keep a page unpublished with hidden: true
in markdown frontmatter. Document the flag next to visible_when,
including TOC subtree behavior, home overrides, and preview.
@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for replicated-docs ready!

Name Link
🔨 Latest commit 9d8daeb
🔍 Latest deploy log https://app.netlify.com/projects/replicated-docs/deploys/6a959df5d9996f0008adf7eb
😎 Deploy Preview https://deploy-preview-4447--replicated-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for replicated-docs-upgrade ready!

Name Link
🔨 Latest commit 9d8daeb
🔍 Latest deploy log https://app.netlify.com/projects/replicated-docs-upgrade/deploys/6a959df58a43f10008597e80
😎 Deploy Preview https://deploy-preview-4447--replicated-docs-upgrade.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@replicated-ci replicated-ci added type::docs Improvements or additions to documentation type::feature labels Aug 28, 2026
@seanoseanohay
seanoseanohay marked this pull request as ready for review August 28, 2026 17:47
@seanoseanohay
seanoseanohay requested a review from a team as a code owner August 28, 2026 17:47
…shooting

- Distinguish hidden (unpublished) from visible_when (per-customer gating)
- Add scenario-led "why" for hidden: true (staging drafts in the git flow)
- Troubleshooting: note that unparseable frontmatter is treated as unpublished

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
AmberAlston
AmberAlston previously approved these changes Aug 31, 2026
- Verify visibility rules (entitlements, channels)
- Check frontmatter `visible_when` conditions
- Confirm the page frontmatter does not set `hidden: true`. Hidden pages stay unpublished for every customer, including in local preview
- Confirm the page frontmatter parses as valid YAML. Frontmatter that Enterprise Portal cannot parse is treated as unpublished, so the page is hidden from every customer, including in local preview

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit broader than the implementation. Invalid YAML fail-closes as unpublished (frontmatter.go:L58-L59), but valid YAML with a type error (like tags: draft) does not hide the page unless hidden: true is set (frontmatter_test.go:L23). Can we say "invalid YAML is treated as unpublished" instead of "frontmatter that Enterprise Portal cannot parse"?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, corrected in 9d8daeb. Reworded to "Invalid YAML is treated as unpublished" so it no longer implies a typed-parse failure like tags: draft hides the page.


`hidden` controls whether a page is published, not who can see it. Use `visible_when` to show a page to some customers and not others based on their license. Use `hidden: true` to keep a page out of every customer's portal until you are ready to publish it, regardless of license.

Set `hidden: true` in a page's YAML frontmatter when the page belongs in your content repo but is not ready for customers yet. For example, stage a product announcement, a new install guide, or a revised section next to your live docs, keep its entry in `toc.yaml` so local preview shows where it sits in the navigation, then publish it by removing the flag when you are ready. Draft pages stay under version control in the same repo and pull request flow as your published content, so nothing lives in a stray branch or an unwired file you have to remember later.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says local preview will show the unpublished page in the nav, but enterprise-portal-v2-content.mdx:L762 says the opposite. Preview prunes hidden: true the same way prod does (run.go:L195-L199), so it won't show in the preview sidebar either.

Can we keep "leave it in toc.yaml" but change the reason? The TOC entry is so the nav slot is already wired when you unhide it, not so preview can display it. If we say that here, we can drop the duplicate sentence in the note.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 9d8daeb. Changed the reason to nav-slot pre-wiring, added a line that preview hides the page like production, and dropped the now-duplicate preview sentence from the note.

- Troubleshooting: only invalid YAML fails closed (not any typed-parse failure)
- Why: toc.yaml entry pre-wires the nav slot; preview hides the page like prod
- Drop the now-redundant preview line from the note

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@seanoseanohay
seanoseanohay merged commit e208c96 into main Aug 31, 2026
6 checks passed
@seanoseanohay
seanoseanohay deleted the sc-138380-ep-hidden-frontmatter-docs branch August 31, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type::docs Improvements or additions to documentation type::feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants