Official documentation site for Pepr - A Kubernetes controller framework built in TypeScript.
Live Site: https://docs.pepr.dev
This repository contains the build system and site structure for the Pepr documentation site. Documentation content is extracted from the Pepr core repository and built into a versioned site using Starlight.
- Node.js (v18 or later)
- npm
- Access to the Pepr core repository
- Clone this repository:
git clone https://github.com/defenseunicorns/pepr-docs.git
cd pepr-docs
npm install- Clone the Pepr core repository (adjacent to pepr-docs):
cd ..
git clone https://github.com/defenseunicorns/pepr.git
cd pepr-docs- Create a
.envfile to configure the core repository path:
# Create .env file with path to Pepr core repo
# If pepr and pepr-docs are siblings:
echo 'CORE=../pepr' > .env
# If pepr is in a different location:
echo 'CORE=/path/to/pepr' > .env# Build the site (generates content from core repo and builds site)
npm run build
# Start development server
npm run devThe site will be available at http://localhost:4321
To test redirects or mimic the Netlify environment:
npm run build
npm run dev:netlifypepr-docs/
├── build/ # Build system source code
│ ├── index.mjs # Main build orchestrator
│ ├── redirects-generator.mjs
│ └── tests/ # Test suite
├── src/ # Site source
│ ├── content/docs/ # Documentation content (generated, gitignored)
│ ├── components/ # Astro components
│ ├── pages/ # Custom pages
│ └── styles/ # Stylesheets
├── public/ # Static assets
├── site-docs/ # Documentation site documentation
│ ├── ARCHITECTURE.md # Build system architecture
│ ├── CONTRIBUTING.md # Contribution guide
│ └── REDIRECTS.md # Redirect system guide
├── astro.config.mjs # Astro/Starlight configuration
└── package.json
Content changes must be made in the Pepr core repository. Site structure and UI changes should be made in this repository.
See site-docs/CONTRIBUTING.md for full guidelines.
- ARCHITECTURE.md - Build system architecture and workflow
- CONTRIBUTING.md - Contribution guidelines and testing
- REDIRECTS.md - Redirect system documentation
- Issues: GitHub Issues
- Pepr Core: GitHub
- Community: Defense Unicorns Community
See the main Pepr repository for license information.