Git Product home page Git Product logo

documentations's Introduction

Online Docs of NKN

This documentations is the English version of documents of NKN. You can read it at NKN Docs.

Get Started

Fork repository

fork nknorg/documentations to your own github account.

Clone repository

$ git clone https://github.com/<YOUR NAME>/documentations.git

Install dependencies

$ cd website
$ yarn install

testing in localhost

$ cd website
$ yarn run start

commit your code

$ git add --all
$ git commit -s
$ git push origin master

pull request

create a pull request to remote repository.

Directory Structure

Your project file structure should look something like this

documentations/
  docs/
    home.md
    get-start.md
    jsonrpc-api-reference.md
  website/
    core/
    node_modules/
    pages/
    static/
      css/
      img/
    package.json
    sidebar.json
    siteConfig.js

Editing Content

Editing an existing docs page

Edit docs by navigating to docs/ and editing the corresponding document:

docs/jsonrpc-api-reference.md

---
id: jsonrpc-api-reference
title: JsonRPC API Reference
---

Adding Content

Adding a new docs page to an existing sidebar

  1. Create the doc as a new markdown file in /docs, example docs/jsonrpc-api-reference.md:
---
id: jsonrpc-api-reference
title: JsonRPC API Reference
---
  1. Refer to that doc's ID in an existing sidebar in website/sidebar.json:
// Add newly-created-doc to the API Reference category of docs
{
  "docs": {
    "API Reference": [
      "quick-start",
      "jsonrpc-api-reference" // new doc here
    ],
    ...
  },
  ...
}

Adding items to your site's top navigation bar

  1. Add links to docs, custom pages or external links by editing the headerLinks field of website/siteConfig.js:

website/siteConfig.js

{
  headerLinks: [
    ...
    /* you can add docs */
    { doc: 'my-examples', label: 'Examples' },
    /* you can add custom pages */
    { page: 'help', label: 'Help' },
    /* you can add external links */
    { href: 'https://nkn.org', label: 'NKN' },
    ...
  ],
  ...
}

documentations's People

Contributors

billfort avatar bufrr avatar chenakam avatar dreamfly281 avatar gdmmx avatar iheron avatar noelbright avatar yilunzhang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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