Giter Club home page Giter Club logo

nebdocs's Introduction

Welcome to the open-source Nebulas Wiki!

Nebulas community is open and everyone can be a contributor and build a decentralized world with us.

The Nebulas wiki is a collaboration tool for the community to publish various documents in a collaborative manner. Include using guides, developing guides, learning resources, and other useful documents.

The mainnet development part in this Nebulas Wiki bases on https://github.com/nebulasio/wiki("the wiki").

How to Contribute

Nebulas aims for a continuously improving ecosystem, which means we need help from the community. We need your contributions! It is not limited exclusively to programming, but also bug reports and translations, spreading the tenets of Nebulas, answering questions, and so on.

Learn more about how to contribute

Get Started

This project was created by sphinx and uploaded to readthedocs for hosting. Url of online documentation after hosting is: https://nebdocs.readthedocs.io/en/latest/.

This project supports documents in the following two formats:

  • Markdown(.md)
  • reStructuredText(.rst)

The directory structure of the document is defined in the README.rst file in the same directory.

Language version and branch rules:

  1. The multi-language version is managed separately by different branches. The currently supported languages are as follows:
  • master: English version;
  • zh-CN: Simplified Chinese version;
  1. To facilitate document management, the document structure of different branches is as consistent as possible with the main branch;
  2. Each language is allowed to have its own temporary version. It is recommended to add the suffix version number to the version name, for example, en1.0, zh-CN1.1;

How to build this project?

  1. clone the project from github, next command refers to the master branch:
git clone https://github.com/nebulasio/nebdocs.git
  1. install the necessary python components:
pip install sphinx==1.5.6 sphinx-autobuild sphinx_rtd_theme recommonmark
  1. build the project:
cd nebdocs
make html

How to add a new document?

If you need to add a file

  1. Add the file to the appropriate directory;
  2. Locate the README.rst file in the directory where the file is located (the project root directory is index.rst file), open the file, and add the newly added file name to the file list after the 'toctree' keyword. E.g:

For this file structure:

+--folder
   |
   +--README.rst
   +--config.md
   +--contributors.md
   +--newFile.md

The content of README.rst should look like this:

.. toctree::
    :titlesonly:

    Config.md
    Contributors.md
    newFile.md

If you need to add a new directory

In this case, you need to add a README.rst file to define the document directory structure in this directory. Put other file names in the file list after the 'toctree' keyword. For details, refer to other README.rst files. The file list in the README.rst file of the previous directory should add the relative path of the README.rst file of the current directory, for example:

For this file structure:

+--folder
   |
   +--README.rst
   +--config.md
   +--contributors.md
   +--newDirectory
      |
      +--README.rst
      +--newFile.md

The contents of the folder/README.rst file should be:

.. toctree::
    :titlesonly:

    Config.md
    Contributors.md
    newDirectory/README.rst

How to add a new language version?

  1. Create a new branch, for the chinese version, for instance:
Git checkout -b zh-CN
  1. Modify the github configuration in ./docs/conf.py, find the 'html_context' definition, and change the value of the 'github_version' field to the new branch name 'zh-CN', as follows:
# VCS options:
Html_context = {
     "display_github": True, # Integrate GitHub
     "github_user": "nebulasio", # Username
     "github_repo": "nebdocs", # Repo name
     "github_version": "zh-CN", # Version
     "conf_py_path": "/", # Path in the checkout to the docs root
}
  1. Replace the documents that you need to translate with the new language version.

  2. Submit the files to github:

Git push --set-upstream zh-CN

Note: it is highly likely you will need to rebase master onto that branch in order for the team to be able to merge the pull request cleanly. To do so, and avoid all the conflicts that will certainly come with it, do as follows, from your working branch, after having updated master with git pull origin master:

git rebase -Xtheirs master
git push -f
  1. Notify the manager to add a new language version to the readthedocs' online documentation.

nebdocs's People

Contributors

athrunarthur avatar nebulashub avatar neealwen avatar pluohust avatar qielan7 avatar qywang2012 avatar royalasgard avatar smalloranges avatar vicky5690098 avatar weiht12 avatar

Watchers

 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.