This project keeps all sources used for building up Nacos official website which's served at http://nacos.io.
npm i in the root directory to install the dependencies.npm run dev in the root directory to start a local server, you will see the website in localhost:4321.npm run build to build source code.Node.js version >= 18.14.1
Inside of your Astro + Starlight project, you'll see the following folders and files:
├── public/ # Static Assest
│ ├── font/
│ ├── img/
├── src/ # Source Directory
│ ├── assets/
│ ├── components/ # Common Components
│ │ ├── cloud/
│ │ ├── common/ # General Components
│ │ ├── contributors/
│ │ ├── home/ # Homepage Components
│ │ ├── icon/
│ │ ├── markdownSet/
│ │ ├── starlight/
│ ├── content/
│ │ ├── blog/ # Blog Directory
│ │ ├── docs/ # Docs Directory
│ │ ├── download/ # Download Directory
│ │ └── config.ts
│ ├── helpers/
│ ├── i18n/ # International entry configuration
│ │ └── en/
│ │ └── zh-cn/
│ ├── layouts/ # Basic layout of the project
│ ├── pages/
│ ├── style/
│ └── consts.ts # Project Constant Management
│ └── env.d.ts
│ └── util.ts # General utility functions
├── template/ # 404 and other universal page templates
├── astro.config.mjs # Astro profile
├── package.json
├── tailwind.config.json # tailwindcss profile
├── themeColor.json
└── tsconfig.json
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.
Images can be added to src/assets/ and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the public/ directory.
git add . to commit all the changes.*.mdmaster branch.Make sure each .md starts with the following texts:
---
title: title
keywords: [keywords1,keywords2,keywords3]
description: some description(less than 160 words)
sidebar:
order: Article table of contents order(optional)
---
Refer to this blog Note:
title can not include :keywords must be a Arraydocs/en or docs/zh-cn._sidebar.json, add a new entry to the blog in either en or zh-cn..md and _sidebar.json only.Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.
(top 30 of 126)
MDX
56.2%
Astro
25.3%
Python
6.7%
JavaScript
5.4%
TypeScript
5.0%
CSS
1.2%
This project keeps all sources used for building up Nacos official website which's served at http://nacos.io.
npm i in the root directory to install the dependencies.npm run dev in the root directory to start a local server, you will see the website in localhost:4321.npm run build to build source code.Node.js version >= 18.14.1
Inside of your Astro + Starlight project, you'll see the following folders and files:
├── public/ # Static Assest
│ ├── font/
│ ├── img/
├── src/ # Source Directory
│ ├── assets/
│ ├── components/ # Common Components
│ │ ├── cloud/
│ │ ├── common/ # General Components
│ │ ├── contributors/
│ │ ├── home/ # Homepage Components
│ │ ├── icon/
│ │ ├── markdownSet/
│ │ ├── starlight/
│ ├── content/
│ │ ├── blog/ # Blog Directory
│ │ ├── docs/ # Docs Directory
│ │ ├── download/ # Download Directory
│ │ └── config.ts
│ ├── helpers/
│ ├── i18n/ # International entry configuration
│ │ └── en/
│ │ └── zh-cn/
│ ├── layouts/ # Basic layout of the project
│ ├── pages/
│ ├── style/
│ └── consts.ts # Project Constant Management
│ └── env.d.ts
│ └── util.ts # General utility functions
├── template/ # 404 and other universal page templates
├── astro.config.mjs # Astro profile
├── package.json
├── tailwind.config.json # tailwindcss profile
├── themeColor.json
└── tsconfig.json
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.
Images can be added to src/assets/ and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the public/ directory.
git add . to commit all the changes.*.mdmaster branch.Make sure each .md starts with the following texts:
---
title: title
keywords: [keywords1,keywords2,keywords3]
description: some description(less than 160 words)
sidebar:
order: Article table of contents order(optional)
---
Refer to this blog Note:
title can not include :keywords must be a Arraydocs/en or docs/zh-cn._sidebar.json, add a new entry to the blog in either en or zh-cn..md and _sidebar.json only.Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.
(top 30 of 126)
MDX
56.2%
Astro
25.3%
Python
6.7%
JavaScript
5.4%
TypeScript
5.0%
CSS
1.2%