Skip to content

Repository: internal-docs

Internal documentation site for the Digital Development team at Kalmar Energi, built with Astro + Starlight.

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
  • 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.

Terminal window
npm install
npm run dev

The dev server starts at http://localhost:4321.

CommandAction
npm installInstall dependencies
npm run devStart local dev server at localhost:4321
npm run buildType-check and build the production site to ./dist
npm run previewPreview the production build locally
npm run import-service-documentationImport README files from Azure DevOps repositories
.
├── 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 definition

Documentation pages live in src/content/docs/. Each .md or .mdx file becomes a route based on its file path.

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.

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.