How to contribute
This lab wiki was built using:
- Git: a version control system, which allows us to go back to previous versions of the web pages at all times;
- On Github, a platform that hosts files that use git as a version control system and on which we can collaborate on the wiki;
- Relying on Mkdocs, a simply static site generator which generates html pages (web pages) from .md (markdown) files.
Installation
- Create a Github account (or log on)
- Install git locally (click here for instructions for RStudio) and some Markdown editor (see below)
For an introduction to Git(hub), please see the version control chapter.
Markdown
Markdown is a markup language that you can use to add formatting elements to plaintext text documents. When you create a Markdown-formatted file, you add Markdown syntax to the text to indicate which words and phrases should look different. Every .md (Markdown) file in this repository in fact uses Markdown for formatting!
For example, to indicate a second-level header, you type: ## Title of header
Advantages of Markdown:
- It can be used for a lot of things, e.g., for creating html pages
- It is platform- and operating system independent
- You can type markdown in any text editor and open .md files with many programs, such as Atom, Zettlr, Rstudio, Typora, online (e.g.,Dillinger) or even in Word (Writage tool). See this page for more tools that support Markdown.
Markdown resources
Contributing step-by-step
A. The easy (but not recommended) way
-
fork
the repository to your own Github account by clicking the button on the upper right of the repository: -
Make edits to the files you want to edit in your browser by clicking the pencil at the top right of a file. All editable .md files can be found in the
docs
folder -
Write a commit message for your changes and click
Commit changes
. -
After having made all the changes you wanted, go to the tab
Pull requests
>New pull request
. -
Make sure the base repository is
eur-synclab/sync-manual
master
and head repository is your own repository, e.g.,DorienHuijser/sync-manual
branchinwhichyoumadechanges
. -
Click
Create pull request
-
Your pull request will now appear in the eur-synclab repository list of pull requests. If you want, you can assign someone to review your pull request. One of the owners of the repository will review your commits, may request changes and will finally approve the pull request and merge your changes into the eur-synclab/sync-manual master branch.
B. The better way
fork
the repository to your own Github account by clicking the button on the upper right of the repository:- Create a new branch in your forked repository which you will use to make changes in (so your master branch will stay"clean"):
clone
your forked repository to your local PC (using the command-line or Rstudio)- Make local changes. You can open a .md file in the
docs
folder with multiple text editors such as Typora, Atom, Zettlr, Rstudio, etc.) and, after saving your changes, commit them (command-line:git commit -a -m "commit message"
, RStudio. Your changes are now saved locally. - Push your commits to your “remote” (online) repository (using the command-line:
git push origin branchname
, in Rstudio) - Follow steps 4-7 explained in the Easy way
- Important: the next time you start working locally, first update your local version of the repository to the most recent version (Command line:
git pull upstream [branchname]
[be sure to set the upstream repository first], RStudio).
C. The most advanced way
- Follow the installation steps for mkdocs here
- Follow steps 1-4 explained in The better way
- In your prompt, navigate to your repository directory with
cd C:/users/username/your/repo/directory
and runmkdocs serve
. This creates a URL (something like http://127.0.0.1:8000/) which you can open in your internet browser. Here, you can see all changes that you make directly "live". Press Cntrl+C to stop this operation. - Run
mkdocs build
. If everything goes correctly, you can now also open the new .html files in thesync-manual/site
folder to see what your changes will look like in the browser. These files have to be created in order for the website to work on others' computers. commit
your newly built website (html) files, e.g.,git commit -A . -m "Build site"
- Follow step 5-7 explained in The better way.
Add yourself as a contributor!
- Go to this Github issue.
- Type a comment asking the all-contributors bot to add you (use template mentioned in the issue), look for appropriate emojis here.
- The bot will open a pull request to add you as contributor. After merging with the master branch, your face will appear in the README.md!
Issues and Projects
If you would like to see a change that requires more work or input from others before you can start editing yourself, you can open an Issue. There are some great features about Issues:
- You can assign people to the Issue who should solve it or provide input
- You can add the issue to a project. In the tab Projects, you can find our Kanban board in which we have made the columns “To do”, “In progress” and “Done”. We made this so we have an overview of Issues that still need work and issues that are in progress.
- You can add labels to an Issue (please do so!) to specify what kind of issue you are writing
- After the issue has been solved, you can Close it manually. However, if you made a pull request that solves the issue, you can simply comment
Closes #issuenr
in the pull request. After the pull request has been merged, the issue is automatically closed!