This repository host the source for the Valkey GLIDE documentation site.
The site is built with Starlight, an Astro framework for building static documentation sites.
The framework provides out-of-the-box features for building documentations like components, site search, navigation, and integrations with MDX files. It also leverages Astro's features like island architecture to build dynamic components.
First clone the repo and install the required tools.
git clone git@github.com:valkey-io/valkey-glide-docs.git
# npm is fine too.
brew install pnpmThen install the dependencies
cd ./valkey-glide-docs
pnpm installFor development, run pnpm dev. It will spin up a hot-loading development server to serve the documentation pages.
We use lychee to check for broken links. Configuration rules (exclusions) are defined in our lychee.toml.
To start, install lychee.
brew install lycheeThen to run the build and check links:
pnpm build:check-linksIn general, page contents are located under src/content/docs.
- For simple content update, change the appropriate
.mdxfiles in the folder structure. - To create a new page, add a new
.mdxfile undersrc/content/docs. - To change the navigation sidebar, update
astro.config.mjs.
Note that all .mdx files requires a frontmatter.
---
title: Your page title.
---
Your contents follows ...