Giter Site home page Giter Site logo

fuhouyu / nacos-group.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nacos-group/nacos-group.github.io

0.0 0.0 0.0 102.59 MB

nacos-group.github.io

License: Apache License 2.0

JavaScript 7.32% TypeScript 9.10% CSS 2.25% Smarty 0.57% Astro 37.30% MDX 43.47%

nacos-group.github.io's Introduction

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

  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
sidebar:
    order: Article table of contents order(optional)
---

Refer to this blog 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, read the Astro documentation, or jump into the Astro Discord server.

nacos-group.github.io's People

Contributors

caojiele avatar xuechaos avatar komachision avatar hazel0928 avatar nkorange avatar realjacksun avatar ross0101 avatar yanlinly avatar purple-force avatar dependabot[bot] avatar heimanba avatar slievrly avatar shonen7 avatar pguo65535 avatar helloyonger avatar tinie13 avatar sddcg-jam avatar xpy01xpy avatar chuntaojun avatar hxy1991 avatar abuexclusive avatar horizonzy avatar brotherlu-xcq avatar onewe avatar haidongwang-github avatar johnlanni avatar zichun627 avatar kwtboom avatar windwaving avatar oliverwqcwrw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.