Building SEGUL Documentation
SEGUL documentation is built using Astro and Starlight, and deployed using Vercel. The documentation is written in Markdown and MDX. We use Bun to manage dependencies and run scripts.
Prerequisites
Section titled “Prerequisites”Clone the repository
Section titled “Clone the repository”gh repo clone hhandika/seguiUsing git:
git clone https://github.com/hhandika/segui.gitInstall dependencies
Section titled “Install dependencies”Install Bun:
curl -fsSL https://bun.sh/install | bashOn Windows, use PowerShell:
powershell -c "irm bun.sh/install.ps1 | iex"Change directory to the website folder:
cd segui/websiteInstall the website dependencies:
bun installRun the website
Section titled “Run the website”To run the website locally with hot reload, use the following command:
bun run devThe website will be available at http://localhost:4321/.
Build the website
Section titled “Build the website”Check types and build the static site into dist/:
bun run checkbun run buildPreview the production build locally:
bun run previewProject structure
Section titled “Project structure”src/content/docs/docs/: documentation pages. The folder structure maps to the URL, for examplesrc/content/docs/docs/cli-usage/align-concat.mdis served at/docs/cli-usage/align-concat/.src/pages/: the landing (index.astro), get started, and about pages, styled with Tailwind.src/layouts/Layout.astroandsrc/components/Navbar.astroframe them.src/data/site.ts: shared content for those pages, such as the tool list and citation.src/components/: Astro components used by pages.src/assets/andpublic/: images and static files.astro.config.mjs: site configuration, including the sidebar and redirects.
Each page needs a title in its frontmatter. Use sidebar.order to order pages within a sidebar group, and use Starlight asides (:::note, :::tip, :::caution, and :::danger) for callouts.
Copyright © 2026 H. Handika & J. A. Esselstyn.