|
1 | | -# Starlight Starter Kit: Basics |
| 1 | +# MapConductor Documentation Site |
2 | 2 |
|
3 | | -[](https://starlight.astro.build) |
| 3 | +Welcome to the MapConductor documentation repository! This website is built using [Astro](https://astro.build/) and [Starlight](https://starlight.astro.build/) to provide comprehensive documentation for the MapConductor SDK. It serves the content for [mapconductor.com](https://mapconductor.com). |
4 | 4 |
|
5 | | -``` |
6 | | -npm create astro@latest -- --template starlight |
7 | | -``` |
8 | | - |
9 | | -> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! |
| 5 | +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. |
10 | 6 |
|
11 | 7 | ## 🚀 Project Structure |
12 | 8 |
|
13 | | -Inside of your Astro + Starlight project, you'll see the following folders and files: |
| 9 | +Inside this Astro + Starlight project, you'll see the following key folders and files: |
14 | 10 |
|
15 | | -``` |
| 11 | +```text |
16 | 12 | . |
17 | | -├── public/ |
| 13 | +├── public/ # Static assets like favicons |
18 | 14 | ├── src/ |
19 | | -│ ├── assets/ |
| 15 | +│ ├── assets/ # Images to be embedded in Markdown |
20 | 16 | │ ├── content/ |
21 | | -│ │ └── docs/ |
22 | | -│ └── content.config.ts |
23 | | -├── astro.config.mjs |
24 | | -├── package.json |
25 | | -└── tsconfig.json |
| 17 | +│ │ └── docs/ # 📝 ALL DOCUMENTATION CONTENT GOES HERE |
| 18 | +│ │ ├── ja/ # Japanese translation |
| 19 | +│ │ └── es-419/ # Spanish (Latin America) translation |
| 20 | +│ └── styles/ # Custom CSS |
| 21 | +├── astro.config.mjs # Main configuration file (Sidebar menus, locales, plugins) |
| 22 | +└── package.json |
26 | 23 | ``` |
27 | 24 |
|
28 | | -Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name. |
| 25 | +## ️🌍 Multiple Languages |
| 26 | + |
| 27 | +MapConductor's documentation supports multiple languages. If you are adding or updating content: |
| 28 | +- **English (Root)**: Placed directly in `src/content/docs/`. It acts as the default fallback language. |
| 29 | +- **Japanese**: Placed in `src/content/docs/ja/` |
| 30 | +- **Spanish (Latin America)**: Placed in `src/content/docs/es-419/` |
| 31 | + |
| 32 | +## 💻 Local Development Environment |
29 | 33 |
|
30 | | -Images can be added to `src/assets/` and embedded in Markdown with a relative link. |
| 34 | +We recommend using VS Code for development. Please install the following extensions: |
| 35 | +- [Astro](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode) |
| 36 | +- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) |
31 | 37 |
|
32 | | -Static assets, like favicons, can be placed in the `public/` directory. |
| 38 | +### Running the Site Locally |
33 | 39 |
|
34 | | -## 🧞 Commands |
| 40 | +All commands should be run from the root of the project in your terminal. |
35 | 41 |
|
36 | | -All commands are run from the root of the project, from a terminal: |
| 42 | +| Command | Action | |
| 43 | +| :------------------ | :----------------------------------------------- | |
| 44 | +| `npm install` | Installs dependencies | |
| 45 | +| `npm run dev` | Starts local dev server at `localhost:4321` (English by default) | |
| 46 | +| `npm run start:ja` | Starts local dev server with `host` | |
| 47 | +| `npm run start:es` | Starts local dev server with `host` | |
| 48 | +| `npm run build` | Builds the production site to `./dist/` | |
37 | 49 |
|
38 | | -| Command | Action | |
39 | | -| :------------------------ | :----------------------------------------------- | |
40 | | -| `npm install` | Installs dependencies | |
41 | | -| `npm run dev` | Starts local dev server at `localhost:4321` | |
42 | | -| `npm run build` | Build your production site to `./dist/` | |
43 | | -| `npm run preview` | Preview your build locally, before deploying | |
44 | | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | |
45 | | -| `npm run astro -- --help` | Get help using the Astro CLI | |
| 50 | +## 📝 How to Update Documentation |
46 | 51 |
|
47 | | -## 👀 Want to learn more? |
| 52 | +1. Find the relevant Markdown (`.md`) or MDX (`.mdx`) file inside `src/content/docs/`. |
| 53 | +2. Pages are automatically routed based on their file name. |
| 54 | +3. If adding a new page, make sure to add it to the sidebar navigation in `astro.config.mjs`! |
| 55 | +4. You can embed Mermaid diagrams directly in your markdown thanks to the mermaid plugin integration (`@pasqal-io/starlight-client-mermaid`). |
48 | 56 |
|
49 | | -Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat). |
| 57 | +### Useful Links for Maintainers |
| 58 | +- [Starlight Documentation](https://starlight.astro.build/) - For learning how to author content, use components, and customize the site. |
| 59 | +- [Astro Documentation](https://docs.astro.build/) - For understanding the underlying framework. |
| 60 | +- [Mermaid.js Syntax](https://mermaid.js.org/intro/) - For diagram syntax. |
0 commit comments