Skip to content

stacklok/docs-website

Repository files navigation

Stacklok docs

GitHub deployments

This repository contains the public-facing docs for Stacklok's projects, hosted at https://docs.stacklok.com.

Contributing to docs

We welcome contributions to the Stacklok documentation - if you find something missing, wrong, or unclear, please let us know via an issue or open a PR!

Please review the style guide for help with voice, tone, and formatting.

Local development

You'll need Node.js available (v22 recommended) or VS Code with the Dev Containers extension and Docker.

Open in Dev Containers

npm install
npm run start

This command starts a local development server on port 3000 and opens a browser window to http://localhost:3000. Most changes are reflected live without having to restart the server.

Formatting

We use a combination of Prettier, markdownlint, and ESLint to normalize formatting and syntax. Before you submit a PR, please check for issues:

npm run prettier
npm run markdownlint
npm run eslint

To automatically fix issues:

npm run prettier:fix
npm run markdownlint:fix
npm run eslint:fix

The formatting commands also run as a pre-commit hook using Husky, so commits will fail if there are formatting issues that can't be fixed automatically. You can skip this by using git commit --no-verify, but it's recommended to fix the issues instead since the P workflow will fail the checks anyway.

Building the site

npm run build

This command generates static content into the build directory. It also checks for broken links, so it's recommended to run this before submitting a PR.

Deployment

The docs.stacklok.com site is published using Vercel. Automatic previews for branches and pull requests are enabled. The production site is published from the main branch.

About

This site is built with Docusaurus.

About

Stacklok user documentation website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published