Giter VIP home page Giter VIP logo

docs's Introduction

Huobi API Documentation Project

Introduction

This is the project for the official API documents of Huobi. This README will introduce how this project is structured and how to work with it.

API Tool

Huobi's API documentation is generated with Slate. This project is an fork of https://github.com/lord/slate slate.

Repo Structure and Overall Workflow

Huobi currently supports two versions of API (v1, v2) and two languages of API documents (English, Chinese), so we have a total of four versions of API documents sit in four branches: v1_en, v1_cn, v2_en, v2_cn. To access the web page of a specific version you can visit https://huobi.github.io/api_doc/{version}/{language}, e.g. for v1 english version visit https://huobi.github.io/api_doc/v1/en.

Recommended way to make a change by CI

  • Just need to make changes to ./source/index.html.md in specific branch and commit, let CI complete next two steps.

To make a change to a specific version of the documentation

  1. Checkout the target version's branch, e.g. if you want to update v1 chinese documents, checkout v1_cn

  2. Make changes to source/index.html.md in this branch and commit

  3. Run deploy.sh to deploy the changes to the website.

  4. Confirm the result on the web page, if all look good, push the changes.

To make a change to common files (logo, style, layout)

  1. Checkout master branch

  2. Make the common file changes

  3. Commit and push the changes

  4. Checkout each version's branch, merge/cherry-pick, then run deploy.sh

Make Changes

There are two main types of changes: appearance and content.

Appearance Change

Content Change

Build and Deploy the API

Set Up Slate Build and Deploy Environment Locally

https://github.com/lord/slate/wiki/Installing-Slate

Publish API Documents

https://github.com/lord/slate/wiki/Deploying-Slate

docs's People

Contributors

lord avatar lichenyang23 avatar xiao4 avatar rayxy avatar chrissrogers avatar realityking avatar cvkef avatar huobiapi avatar marcguyer avatar shao0408 avatar bootstraponline avatar maks3w avatar eynzhang avatar anfedorov avatar djpowers avatar dlackty avatar victorquinn avatar rezanachmad avatar kevin-buttercoin avatar jdahdah avatar greysteil avatar blackxored avatar vassyz avatar pomier avatar rlord avatar rickyrauch avatar mccricardo avatar readmecritic avatar sobstel avatar prayagverma 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.