This repository contains an Antora-based documentation site for a hands-on
lab teaching Hosted Control Planes (HCP) on Baremetal for OpenShift.
Branches of this repository, labeled lab-${VERSION} connect the OpenShift
version that forms the basis of the lab with specific documentation relating to
HCP running on that version.
Hosted Control Planes clusters running on that version.
The live site is published at
https://labs.sysdeseng.com/hypershift-baremetal-lab/${VERSION}/index.html
This is the source code for https://labs.sysdeseng.com/hypershift-baremetal-lab/4.18/index.html
Technology Stack:
- Antora: Static site generator for technical documentation
- AsciiDoc: Markup language for documentation content
- Node.js/npm: Build tooling and dependencies
- Gulp: Task automation for development workflow
- Browser-sync: Live reload during development
npm install- Build site from current branch with
npx antora --stacktrace site-local.yml - Check gh-pages for content.
- Run
npm run devto start development server - Navigate to http://localhost:3000/ in browser
npm run clean
# Removes gh-pages/ and .cache/ directories-
Create
.adocfile indocumentation/modules/ROOT/pages/ -
Add navigation entry to
documentation/modules/ROOT/nav.adocusingxref:syntax:* xref:new-page.adoc[New Page Title] -
Use attributes from
_attributes.adocfor version-specific content
- Tab blocks (
lib/tab-block.js): Custom syntax for tabbed content panels - Remote includes (
lib/remote-include-processor.js): Include content from remote URLs
- Production: Edit
site.yml(branch:lab-4.18, outputs to gh-pages) - Development: Edit
dev-site.yml(localhost:3000, different branch reference) - Version attribute:
release-version: 4.18in playbook'sasciidoc.attributes
- Component: Single Antora component named "4.18" (version identifier)
- Module: Single ROOT module containing all pages
- Content source: Local repository, branch
lab-4.18, start pathdocumentation/ - UI bundle: Pre-built telco-themed bundle (
ui-bundle-telco.zip) - Supplemental UI: Overrides and additional UI files in
supplemental-ui/
Cross-referencing pages:
xref:target-page.adoc[Link Text]
xref:target-page.adoc#anchor[Link to Section]Using document attributes:
{release-version} // Expands to OCP version (major.minor)