Giter Club home page Giter Club logo

docs.96rocks.com's Introduction

title disableToc
How to contribute
true

About

This is the Documentations for 96rocks. You can view the documents at the docs.96rocks.com. This documents is hosted on Github Page with custom domain at gh-pages branch. The master branch is the souce for the documents.

How to contribute

Install hugo

The documents is generated by Hugo, a static site generator.

For apt based Linux such as Debian or Ubuntu:

sudo apt-get install hugo

For MacOS:

brew install hugo

Other platform please refer Hugo install documents.

Local preview

Fork the repo and clone it

git clone --recurse https://github.com/96rocks/docs.96rocks.com.git
cd docs.96rocks.com
hugo server

The output is like below:

...
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Open your browser, go to http://localhost:1313/ and you can view the docs locally.

Prepare the gh-pages branch

We use git’s worktree feature to checkout the gh-pages branch at public folder(which hugo will generate all the html to). Essentially, the worktree allows you to have multiple branches of the same local repository to be checked out in different directories.

Run

./publish.sh
cd public
git branch

You should see the gh-pages branch.

Edit/Add documents

The documents are under content directory, starting with _index.en.md(with multiple language support). You can copy and paste the exsiting files to start new sections. Put all the images in one image directory. Hugo can auto refresh if there is any file changes. Commit and push the change to your repo if the preview is ok and send pull request from the master branch. We will merge it and update the gh-pages branch. Updating gh-pages branch is live instantly. Your contribution will be automatically added to the credit section once merged.

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.