Promenade Platform Documentation
Built with VitePress - Modern, fast, and beautiful documentation for Promenade Platform.
Quick Start
Development
bash
cd website
npm install
npm run docs:devVisit http://localhost:5173/
Build for Production
bash
npm run docs:build
npm run docs:previewDeploy to GitHub Pages
Manual Deploy:
bash
./deploy.shThis will:
- Build the VitePress site
- Create/update the gh-pages branch
- Push to GitHub
- Site goes live at: https://basilex.github.io/promenade/
Note: Links work with /promenade/ base path configured in .vitepress/config.mjs
Automated via GitHub Actions (coming soon)
Project Structure
website/
.vitepress/
config.mjs # VitePress configuration
theme/ # Custom theme (optional)
index.md # Landing page (Hero + Features)
guide/ # Documentation guides
getting-started.md
architecture.md
testing.md
api-reference.md
contexts/ # Bounded Contexts docs
identity.md
shared.md
customer.md
packages/ # Package library docs
bus.md
jwt.md
logger.md
public/ # Static assets (images, icons)Adding New Pages
Create markdown file in appropriate section:
bashtouch website/guide/new-topic.mdAdd to sidebar in
.vitepress/config.mjs:jssidebar: { '/guide/': [ { text: 'Guide', items: [ { text: 'New Topic', link: '/guide/new-topic' } ] } ] }
Markdown Features
Code Blocks with Syntax Highlighting
go
func Example() {
fmt.Println("Hello, Promenade!")
}Custom Containers
INFO
This is an info box.
TIP
This is a tip.
WARNING
This is a warning.
DANGER
This is a dangerous warning.
Code Groups
go
func (uc *UseCase) Execute() error {
return nil
}go
func (h *Handler) Handle(c *gin.Context) {
c.JSON(200, gin.H{"status": "ok"})
}Configuration
Edit .vitepress/config.mjs:
js
export default defineConfig({
title: 'Promenade Platform',
description: 'Your description',
themeConfig: {
nav: [...],
sidebar: {...}
}
})Resources
Built with and VitePress