An open API service indexing awesome lists of open source software.

https://github.com/nacos-group/nacos-group.github.io

nacos-group.github.io
https://github.com/nacos-group/nacos-group.github.io

dubbo istio kubernetes nacos nacos-sync springcloud

Last synced: about 3 hours ago
JSON representation

nacos-group.github.io

Awesome Lists containing this project

README

          

# Nacos Official WebSite

This project keeps all sources used for building up [Nacos](https://github.com/alibaba/nacos) official website which's served at http://nacos.io.

# README.md

- en [English](README.md)
- zh_CN [็ฎ€ไฝ“ไธญๆ–‡](README.zh_CN.md)

## Build instruction

1. Run `npm i` in the root directory to install the dependencies.
2. Run `npm run dev` in the root directory to start a local server, you will see the website in `localhost:4321`.
3. 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

1. Create an issue first to description the issue
2. Do not use `git add .` to commit all the changes.
3. Just push your changed files, such as:
* `*.md`
* _sidebar.json
4. 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](src/content/docs/latest/en/what-is-nacos.md)
**Note:**
1. `title` can not include `:`
2. `keywords` must be a `Array`

## Guide for adding new document

### Add a new doc

1. Add new .md file under `docs/en` or `docs/zh-cn`.
2. Update `_sidebar.json`, add a new entry to the blog in either en or zh-cn.
3. Send the pull request contains the `.md` and `_sidebar.json` only.

## ๐Ÿ‘€ Want to learn more?

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