Welcome to the MapConductor documentation repository! This website is built using Astro and Starlight to provide comprehensive documentation for the MapConductor SDK. It serves the content for mapconductor.com.
MapConductor is a unified map SDK that lets developers write map logic once and run it across multiple map providers (Google Maps, Mapbox, ArcGIS, etc.) without rewriting code.
Inside this Astro + Starlight project, you'll see the following key folders and files:
.
├── public/ # Static assets like favicons
├── src/
│ ├── assets/ # Images to be embedded in Markdown
│ ├── content/
│ │ └── docs/ # 📝 ALL DOCUMENTATION CONTENT GOES HERE
│ │ ├── ja/ # Japanese translation
│ │ └── es-419/ # Spanish (Latin America) translation
│ └── styles/ # Custom CSS
├── astro.config.mjs # Main configuration file (Sidebar menus, locales, plugins)
└── package.json
MapConductor's documentation supports multiple languages. If you are adding or updating content:
- English (Root): Placed directly in
src/content/docs/. It acts as the default fallback language. - Japanese: Placed in
src/content/docs/ja/ - Spanish (Latin America): Placed in
src/content/docs/es-419/
We recommend using VS Code for development. Please install the following extensions:
All commands should be run from the root of the project in your terminal.
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 (English by default) |
npm run start:ja |
Starts local dev server with host |
npm run start:es |
Starts local dev server with host |
npm run build |
Builds the production site to ./dist/ |
- Find the relevant Markdown (
.md) or MDX (.mdx) file insidesrc/content/docs/. - Pages are automatically routed based on their file name.
- If adding a new page, make sure to add it to the sidebar navigation in
astro.config.mjs! - You can embed Mermaid diagrams directly in your markdown thanks to the mermaid plugin integration (
@pasqal-io/starlight-client-mermaid).
- Starlight Documentation - For learning how to author content, use components, and customize the site.
- Astro Documentation - For understanding the underlying framework.
- Mermaid.js Syntax - For diagram syntax.