Skip to content

openchoreo/openchoreo.github.io

Repository files navigation

OpenChoreo Documentation & Website

This repository contains the source code for the OpenChoreo documentation website, built with Docusaurus.

OpenChoreo is an open-source Internal Developer Platform (IDP) that simplifies Kubernetes complexity for development teams.

Prerequisites

  • Node.js version 20.0 or above
  • npm (comes with Node.js)

Installation

npm install

Local Development

npm run start

This command starts a local development server and opens a browser window. Most changes are reflected live without having to restart the server.

The site will be available at http://localhost:3000

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Project Structure

├── blog/                 # Blog content (optional)
├── docs/                 # Current documentation (next version)
├── versioned_docs/       # Documentation for released versions
│   └── version-v0.3.x/   # Docs for v0.3.x releases
├── versioned_sidebars/   # Sidebar configs for each version
├── versions.json         # List of documentation versions
├── src/                  # React components and custom pages
│   ├── components/       # Reusable React components
│   ├── css/              # Custom styles
│   └── pages/            # Custom pages (homepage, etc.)
├── static/               # Static assets
├── docusaurus.config.ts  # Main configuration file
├── sidebars.ts           # Sidebar navigation structure
└── package.json          # Dependencies and scripts

Writing Documentation

Adding a New Documentation Page

  1. Create a new Markdown file in the appropriate docs/ subdirectory
  2. Add front matter at the beginning of the file:
    ---
    title: Your Page Title
    ---
  3. Write your content using Markdown or MDX
  4. Update sidebars.ts to include your page in the navigation

Linking to Other Docs

When linking to other documentation pages, use relative file paths with the .md extension:

[Link to another page](../concepts/developer-abstractions.md)

This approach ensures links work on GitHub, in Markdown editors, and with Docusaurus versioning.

Documentation Versioning

OpenChoreo documentation uses versioning to maintain docs for different releases. We version by minor releases (e.g., v0.3.x, v0.4.x) since breaking changes may occur between minor versions during pre-1.0 development.

Creating a New Version

When releasing a new minor version (e.g., v0.4.0):

  1. Create the documentation version:

    npm run docusaurus docs:version v0.4.x

    This will:

    • Copy the current docs/ folder to versioned_docs/version-v0.4.x/
    • Create versioned_sidebars/version-v0.4.x-sidebars.json
    • Add the version to versions.json
  2. Update version constants in the newly created versioned_docs/version-v0.4.x/_constants.mdx:

Updating Versioned Documentation

To update documentation for a specific version:

  1. For the current development version: Edit files in the docs/ folder
  2. For a released version (e.g., v0.3.x): Edit files in versioned_docs/version-v0.3.x/

Version Strategy

  • Current (docs/): Next unreleased minor version documentation
  • Versioned (versioned_docs/version-v0.X.x/): Frozen documentation for released versions
  • Patch releases (e.g., v0.3.1, v0.3.2): Update the corresponding minor version docs (v0.3.x) if needed

Deployment

The site automatically deploys to GitHub Pages when changes are pushed to the main branch via GitHub Actions.

Contributing

We welcome contributions to improve the OpenChoreo documentation!

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b <your-improvement>)
  3. Make your changes
  4. Test locally with npm run start
  5. Build to check for errors: npm run build
  6. Commit your changes with a descriptive message
  7. Push to your fork (git push origin <your-improvement>)
  8. Create a Pull Request with a clear description of your changes

Links

About

This is to test OpenChoreo website

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 15