Repository: internal-docs
Internal Docs
Section titled “Internal Docs”Internal documentation site for the Digital Development team at Kalmar Energi, built with Astro + Starlight.
Overview
Section titled “Overview”This site serves as a centralized knowledge hub covering:
- Start Here – Onboarding and way of working
- System Overview – Architecture, services, data platform, and Azure setup
- Applications – Auto-generated application documentation
- Development Guide – Frontend, backend, APIs, databases, and delivery practices
- Security & Identity – User management, access control, and Keycloak
- Operations – Incident management and troubleshooting
- Reference – Internal standards and imported service documentation
Prerequisites
Section titled “Prerequisites”- Node.js >= 20.0.0
- An Azure DevOps personal access token (for importing service docs)
Copy .env_example to .env and fill in the required values.
Getting Started
Section titled “Getting Started”npm installnpm run devThe dev server starts at http://localhost:4321.
Commands
Section titled “Commands”| Command | Action |
|---|---|
npm install | Install dependencies |
npm run dev | Start local dev server at localhost:4321 |
npm run build | Type-check and build the production site to ./dist |
npm run preview | Preview the production build locally |
npm run import-service-documentation | Import README files from Azure DevOps repositories |
Project Structure
Section titled “Project Structure”.├── public/ # Static assets (favicon, branding, scripts)├── scripts/│ └── fetch-from-devops.js # Imports docs from Azure DevOps repos├── src/│ ├── content/docs/ # Documentation pages (.md / .mdx)│ │ ├── applications/│ │ ├── development-guide/│ │ ├── imported/ # Auto-synced from DevOps repos│ │ ├── operations/│ │ ├── reference/│ │ ├── security-identity/│ │ ├── start-here/│ │ └── system-overview/│ └── styles/ # Custom theme and CSS├── astro.config.mjs # Astro & Starlight configuration├── consts.ts # Sidebar navigation structure└── azure-pipelines.yml # CI/CD pipeline definitionDocumentation pages live in src/content/docs/. Each .md or .mdx file becomes a route based on its file path.
Imported Documentation
Section titled “Imported Documentation”The import-service-documentation script automatically fetches README files from repositories in the digital-development Azure DevOps project and writes them to src/content/docs/imported/. This runs nightly via the Azure DevOps pipeline and auto-commits any changes.
Deployment
Section titled “Deployment”The site is deployed as an Azure Static Web App via an Azure DevOps pipeline that runs on a nightly schedule. The pipeline imports service documentation, builds the site, and deploys it automatically.