How to Contribute to the Web Pages
Estimated reading time: 1 minuteWeb Site Repository
The content of this web site can be found on GitLab of CEPC. Any changes to this repository will be automatically reflect to the pages on http://cepcsoft.ihep.ac.cn.
The write access of http://cepcgit.ihep.ac.cn/web/cepcsoft.ihep.ac.cn will not be open to everyone. CEPC users could follow the instructions on this page to contribute to the web site.
Preparation
Need account on GitLab
Fork the cepcsoft.ihep.ac.cn repository to your own account.
git clone git@cepcgit.ihep.ac.cn:<your_github_user_name>/cepcsoft.ihep.ac.cn.git
git remote add cepcsoft http://cepcgit.ihep.ac.cn/web/cepcsoft.ihep.ac.cn.git
All these preparations are only needed for the first time. Everything is now ready for writing or modifying the web pages.
##
- Guarantee the local version is the latest.
git fetch cepcsoft git merge cepcsoft/master
- Edit files and commit changes.
git add -A git commit
- Merge local changes with remote. Resolve conflicts.
git fetch cepcsoft git merge cepcsoft/master
- Push to your own repository.
git push origin master
- Create merge request under the forked repository on GitLab.
If you did not create new branch, it should be master here.
Preview
script/preview.sh
Git Reference
http://git.github.io/git-reference/
Edit Directly on GitLab
In case you do not have linux environment at hand. This could be done even on the cell phone.
It is no recommended for normal update of the web page, because the conflicts are diffcult to resolve on web.