Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hypershift Baremetal Lab

Repository Overview

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

Build and Development Commands

Install Dependencies

npm install

Testing Changes

Development Build

  1. Build site from current branch with npx antora --stacktrace site-local.yml
  2. Check gh-pages for content.
  3. Run npm run dev to start development server
  4. Navigate to http://localhost:3000/ in browser

Clean Build Artifacts

npm run clean
# Removes gh-pages/ and .cache/ directories

Content Authoring

Adding New Pages

  1. Create .adoc file in documentation/modules/ROOT/pages/

  2. Add navigation entry to documentation/modules/ROOT/nav.adoc using xref: syntax:

    * xref:new-page.adoc[New Page Title]
  3. Use attributes from _attributes.adoc for version-specific content

AsciiDoc Extensions Available

  • Tab blocks (lib/tab-block.js): Custom syntax for tabbed content panels
  • Remote includes (lib/remote-include-processor.js): Include content from remote URLs

Site Configuration

  • 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.18 in playbook's asciidoc.attributes

Key Antora Concepts for This Site

  • 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 path documentation/
  • UI bundle: Pre-built telco-themed bundle (ui-bundle-telco.zip)
  • Supplemental UI: Overrides and additional UI files in supplemental-ui/

Common Patterns

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)

About

telco-hypershift-baremetal-lab

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages