nacos-group/nacos-group.github.io
Fork: 158 Star: 98 (更新于 2024-11-01 19:52:02)
license: Apache-2.0
Language: MDX .
nacos-group.github.io
Nacos Official WebSite
This project keeps all sources used for building up Nacos official website which's served at http://nacos.io.
README.md
Build instruction
- Run
npm i
in the root directory to install the dependencies. - Run
npm run dev
in the root directory to start a local server, you will see the website inlocalhost:4321
. - Run
npm run build
to build source code.
Requirements
Node.js version >= 18.14.1
🚀 Project Structure
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.
How to Contribute
- Create an issue first to description the issue
- Do not use
git add .
to commit all the changes. - Just push your changed files, such as:
-
*.md
- _sidebar.json
-
- Send a PR to
master
branch.
SEO
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 aArray
Guide for adding new document
Add a new doc
- Add new .md file under
docs/en
ordocs/zh-cn
. - Update
_sidebar.json
, add a new entry to the blog in either en or zh-cn. - Send the pull request contains the
.md
and_sidebar.json
only.
👀 Want to learn more?
Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.
最近版本更新:(数据更新于 1970-01-01 00:00:00)
主题(topics):
dubbo, istio, kubernetes, nacos, nacos-sync, springcloud
nacos-group/nacos-group.github.io同语言 MDX最近更新仓库
2023-10-24 02:31:49 uidotdev/usehooks
2023-09-29 19:14:55 yewstack/yew
2023-07-29 03:23:36 react-native-elements/react-native-elements
2023-03-29 21:48:13 trigaten/Learn_Prompting
2022-04-08 23:22:39 ademilter/homepage
1970-01-01 00:00:00 withastro/docs