|
1 | | -# Starlight Starter Kit: Basics |
| 1 | +# Code_Aster Documentation Site |
2 | 2 |
|
3 | | -[](https://starlight.astro.build) |
4 | | - |
5 | | -``` |
6 | | -npm create astro@latest -- --template starlight |
7 | | -``` |
8 | | - |
9 | | -[](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics) |
10 | | -[](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics) |
11 | | -[](https://app.netlify.com/start/deploy?repository=https://github.com/withastro/starlight&create_from_path=examples/basics) |
12 | | -[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwithastro%2Fstarlight%2Ftree%2Fmain%2Fexamples%2Fbasics&project-name=my-starlight-docs&repository-name=my-starlight-docs) |
13 | | - |
14 | | -> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! |
| 3 | +This project is a documentation website for code_aster docker version, built with [Astro](https://astro.build/) and [Starlight](https://starlight.astro.build/). |
15 | 4 |
|
16 | 5 | ## 🚀 Project Structure |
17 | 6 |
|
18 | | -Inside of your Astro + Starlight project, you'll see the following folders and files: |
19 | | - |
20 | 7 | ``` |
21 | 8 | . |
22 | | -├── public/ |
| 9 | +├── public/ # Static assets (e.g., favicon, global CSS) |
23 | 10 | ├── src/ |
24 | | -│ ├── assets/ |
| 11 | +│ ├── assets/ # Images and other media for docs |
25 | 12 | │ ├── content/ |
26 | | -│ │ └── docs/ |
27 | | -│ └── content.config.ts |
28 | | -├── astro.config.mjs |
29 | | -├── package.json |
30 | | -└── tsconfig.json |
| 13 | +│ │ └── docs/ # Documentation pages (.md, .mdx) |
| 14 | +│ └── content.config.ts # Content collections config |
| 15 | +├── astro.config.mjs # Astro configuration |
| 16 | +├── package.json # Project metadata and scripts |
| 17 | +├── tsconfig.json # TypeScript configuration |
| 18 | +└── README.md # Project overview (this file) |
31 | 19 | ``` |
32 | 20 |
|
33 | | -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. |
| 21 | +- Documentation pages are located in [`src/content/docs/`](src/content/docs/). |
| 22 | +- Images can be placed in [`src/assets/`](src/assets/). |
| 23 | +- Static files (e.g., favicon) go in [`public/`](public/). |
| 24 | + |
| 25 | +## 🧑💻 Getting Started |
34 | 26 |
|
35 | | -Images can be added to `src/assets/` and embedded in Markdown with a relative link. |
| 27 | +1. **Install dependencies:** |
| 28 | + ```sh |
| 29 | + npm install |
| 30 | + ``` |
36 | 31 |
|
37 | | -Static assets, like favicons, can be placed in the `public/` directory. |
| 32 | +2. **Start the development server:** |
| 33 | + ```sh |
| 34 | + npm run dev |
| 35 | + ``` |
| 36 | + The site will be available at [http://localhost:4321](http://localhost:4321). |
38 | 37 |
|
39 | | -## 🧞 Commands |
| 38 | +3. **Build for production:** |
| 39 | + ```sh |
| 40 | + npm run build |
| 41 | + ``` |
40 | 42 |
|
41 | | -All commands are run from the root of the project, from a terminal: |
| 43 | +4. **Preview the production build:** |
| 44 | + ```sh |
| 45 | + npm run preview |
| 46 | + ``` |
42 | 47 |
|
43 | | -| Command | Action | |
| 48 | +## 🛠️ Useful Commands |
| 49 | + |
| 50 | +| Command | Description | |
44 | 51 | | :------------------------ | :----------------------------------------------- | |
45 | | -| `npm install` | Installs dependencies | |
46 | | -| `npm run dev` | Starts local dev server at `localhost:4321` | |
| 52 | +| `npm install` | Install dependencies | |
| 53 | +| `npm run dev` | Start local dev server at `localhost:4321` | |
47 | 54 | | `npm run build` | Build your production site to `./dist/` | |
48 | | -| `npm run preview` | Preview your build locally, before deploying | |
49 | | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | |
| 55 | +| `npm run preview` | Preview your build locally before deploying | |
| 56 | +| `npm run astro ...` | Run Astro CLI commands (e.g., `astro add`) | |
50 | 57 | | `npm run astro -- --help` | Get help using the Astro CLI | |
51 | 58 |
|
52 | | -## 👀 Want to learn more? |
| 59 | +## 📚 Learn More |
| 60 | + |
| 61 | +- [Starlight Documentation](https://starlight.astro.build/) |
| 62 | +- [Astro Documentation](https://docs.astro.build/) |
| 63 | +- [Astro Discord Community](https://astro.build/chat) |
53 | 64 |
|
54 | | -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). |
|
0 commit comments