Coder Social home page Coder Social logo

alephium-wiki's Introduction

Alephium Wiki

Built using Docusaurus 2.

Development

Install dependencies:

npm i

Start dev server:

npm start

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

Build

npm run build

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

Internationalization (i18n)

You are welcome to submit translations of the wiki pages. So far we only have a small portion of the wiki translated to French. We currently only have capacity to review the following languages:

  • French
  • German
  • Swedish
  • Turkish

If your translation is a mere Google translation without any correction, the Pull Request will likely not be accepted.

Before you begin translating, please consider your submission as commitment to maintain the pages in sync with any changes happening in the English version

Enable a new language for translation

  1. Find the ISO 689-1 two-letter code for your language here
  2. Create a folder for the documents inside the i18n folder. For example german: mkdir -p i18n/<ISO639-1>/docusaurus-plugin-content-docs/current (note that you will need replace <ISO639-1> with the actual two-letter international code).
  3. Copy all the content from /docs into the new folder: cp -r docs i18n/<ISO639-1>/docusaurus-plugin-content-docs/current/ (again, note that you will need replace <ISO639-1> with the actual two-letter international code).
  4. Remove all the _category_.json files from the subfolders inside i18n/<ISO639-1>/docusaurus-plugin-content-docs/current.
  5. Build the translation files for the navbar and the footer: npm run write-translations -- --locale <ISO639-1>.

Now you can start translating any and all file in i18n/<ISO639-1>/docusaurus-plugin-content-docs/current

To test your content, run the following command: npm run start -- --locale <ISO639-1>

This will only load the wiki in the language you are translating. To locally test the whole site, you can do npm run build && npm run serve)

alephium-wiki's People

Contributors

h0ngcha0 avatar jimmyhoffa avatar jktranslator avatar killerwhile avatar leealephium avatar lf94 avatar maudsimon avatar nop33 avatar oheka avatar polarker avatar polto avatar sakrecoer avatar suyanlong avatar sven-hash avatar vdaodao 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.