Giter VIP home page Giter VIP logo

mcmastergradstumanual's Introduction

McMasterGradStuManual

McMaster研究生新生手册

Branch

  1. master: Production, build for http://mcmaster.readthedocs.io/zh/latest/
  2. staging: Test before Production, build for http://mcmaster.readthedocs.io/zh/staging/

So when you update code. First push to staging branch, readthedocs will automatically compile the code (you can look at the compile process in https://readthedocs.org/projects/mcmaster/builds/). It will show you the result in http://mcmaster.readthedocs.io/zh/staging/ . If everything is Okay, make a pull request to merge staging into master. readthedocs will compile http://mcmaster.readthedocs.io/zh/latest/ .

Development guide for Collaborators

0. first time usage

0.1 Install Python

0.2 Install Sphinx

pip install sphinx sphinx-autobuild
pip install sphinx_rtd_theme

In Windows, you might need to execute these commands with Administrator's priviledge.

In Linux and macOS, you might need sudo.

0.3 Clone the project

Clone the whole project to your disk, create a new branch called staging

git clone https://github.com/zhaowei19920524/McMasterGradStuManual
cd McMasterGradStuManual
git checkout -b staging

And the local master branch will not be used any more.

1. update your local repo first before adding any content!!!

Just in case other people have updated the branch on github. So update your local repo:

git pull origin staging

2. update the content in staging branch.

Note:

The Tree level

一、二、三...:Only for title if neccessary

1 2 3 4 5...

	A B C D E...

		a b c d e...

			I II III IV V...

				i ii iii iv v...

compile code in your disk

cd docs/
make html

The output html file in McMasterGradStuManual/docs/_build/html

If it looks Okay, then get ready to push to github

3. push to github

Push to staging branch!!!

git add -u
git commit -m "[why you change the code]"
git push origin staging

4. check result and merge to master branch

you can view the compile process: https://readthedocs.org/projects/mcmaster/builds/

view the result: http://mcmaster.readthedocs.io/zh/staging/

If it looks Okay then make a pull request from staging to master, then merge the code.

I highly recommand you guys to make a code review or contact me before merging into master

Once merged, the result will show in: http://mcmaster.readthedocs.io/zh/latest/

mcmastergradstumanual's People

Contributors

zhaowei19920524 avatar shawnnew avatar fanwangm avatar liuh127 avatar caobo1994 avatar

Watchers

James Cloos 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.