Git Product home page Git Product logo

moondaowww's Introduction

MoonDAO website

This website is built using the Docusaurus 2 static website generator.

https://moondao.com

Installation

yarn install

Local Development

yarn start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Deployment is automatic on each merge into the main branch or on a direct push into main.

The test-deploy Github Action workflow will run on every pull request into main to ensure that the site will still build. The deploy workflow will run when a pull request is merged into main. This will push the build to the gh-pages branch, deploying the changes to production.

How to contribute

If you are a repository contributor:

  1. Clone the repository on your local machine.
  2. Make a feature branch.
  3. Make cool changes on your feature branch.
  4. Push your branch to Github.
  5. Make a pull request into the main branch.

You can also make a pull request from a Github fork if you don't have permission to create a branch on the repository.

A repository administrator will review and merge your changes.

If you would like to be an official repository contributor, head over to our Discord and say hi in the #introduce-yourself channel.

Internationalization

To run the site for local development with a different locale, pass the locale flag at startup. Each locale is hosted as a different app so you cannot change the locale without stopping and starting the development server.

yarn run start -- --locale zh-Hans

Ensure that all text tags are wrapped in the Translate element as shown here: <Translate>Some Text<Translate>.

You will need to generate the translation files after new text is added to the site. This is done by running the following command for each locale:

yarn run write-translations -- --locale zh-Hans

This command will update the i18n/zh-Hans/code.json file which contains the translations for Chinese. The file contains a JSON object where keys are in English and the message field is the translated text. The command will intitialize the message field with the English text. Translators should update this text to the translated message.

For example, the message:

"Send a MoonDAO member to space": {
  "message": "Send a MoonDAO member to space"
},

should be updated to be:

"Send a MoonDAO member to space": {
  "message": "将 MoonDAO 成员送入太空"
},

Create a PR and send it for review after updating the code.json file.

See the Docusaurus documentation for more details

See a problem?

Open a Github issue and we'll take a look :-)

moondaowww's People

Contributors

0xb00 avatar allen-allin avatar arentweall avatar boilerrat avatar burleebau avatar cnukaus avatar cupojoseph avatar dekanbro avatar dependabot[bot] avatar dissentertainer avatar dolfandringa avatar earth2travis avatar goofystoic avatar irquintanas avatar jonathanprozzi avatar jordanlesich avatar k0r1g avatar larrotiz avatar neilthawani avatar nektarck avatar oovg avatar pfed-prog avatar pmoncada avatar scottrepreneur avatar sepandhaghighi avatar sirgawain0x avatar skuhlmann avatar tuckernickman avatar yzstrive avatar zzallenn 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.