Skip to content

Commit 348387d

Browse files
Merge pull request #1 from MapConductor/discord-link
Adding discord link
2 parents c707275 + cb08cae commit 348387d

5 files changed

Lines changed: 2452 additions & 760 deletions

File tree

README.md

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,60 @@
1-
# Starlight Starter Kit: Basics
1+
# MapConductor Documentation Site
22

3-
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](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).
44

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

117
## 🚀 Project Structure
128

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:
1410

15-
```
11+
```text
1612
.
17-
├── public/
13+
├── public/ # Static assets like favicons
1814
├── src/
19-
│ ├── assets/
15+
│ ├── assets/ # Images to be embedded in Markdown
2016
│ ├── 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
2623
```
2724

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
2933

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)
3137

32-
Static assets, like favicons, can be placed in the `public/` directory.
38+
### Running the Site Locally
3339

34-
## 🧞 Commands
40+
All commands should be run from the root of the project in your terminal.
3541

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/` |
3749

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
4651

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`).
4856

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

Comments
 (0)