New Page
To add a page, follow these steps:
- Fork this repository.
- Add a copy of
wiki/contributing/template.md
to the project folder of interest in thewiki
folder - Write your page in markdown. Some recommended methods:
- Connect Prose.io to your Github account and write from your browser
- Clone the repository to your device. We recommend using the Atom editor with the Markdown-Writer and Markdown-Image-Helper packages.
- Rename the .md file to a kebab-case version of your title (e.g
this-is-an-example.md
) - Link your article in
_data/navigation.yml
under thewiki
heading - If you added your name as the author, add yourself to the _data/authors.yml page to get some credit for your work
- Before you submit changes, view them by running them locally (directions in next section)
- Submit a pull request to the ARC wiki GitHub
- Editors may request changes. After that, it will be accepted and reflected on the website
Using GitPod
Forking and Setting Up GitPod
- Fork this repository (top right button) to add it to your GitHub account.
- Install the GitPod Extension.
- Go to the forked repository, connect GitPod to your GitHub account, and open the repository in GitPod.
- Open the terminal:
- Set up forked repository and call it upstream*:
git remote add upstream https://github.com/whoever/whatever.git
- Install all packages necessary:
bundle install
- Pull new changes in from GitHub:
git fetch upstream
→git checkout master
→git rebase upstream/master
- Set up forked repository and call it upstream*:
* These commands are not needed once the forked repository is set up the first time you use GitPod.
Writing the Page:
- Create your file under the folder of interest in the
wiki
folder. - Use kebab-case to appropriately name your file under a self-describing name (e.g
this-is-an-example-page.md
). - Write your page in markdown. The formatting can be viewed in the wiki template provided.
- Link your article in
_data/navigation.yml
under thewiki
heading. - If you added your name as the author, add yourself to the _data/authors.yml page to get some credit for your work.
- Before committing your changes to GitHub, view them in the browser by running
jekyll serve
in the terminal.
Comitting and Opening a PR
- Stage the files to commit:
git add .
- Commit all files to GitHub:
git commit -m "Write comments here"
- Push changes into local repository:
git push
- Submit a pull request from your forked repository to ARC wiki on GitHub and let a member of the Leadership Team know. Changes may be requested before final submission.
Running Locally
If you want to check your changes on a local, development server you can either use Docker or Ruby.
Docker
- Generate Gemfile.lock:
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.6 bundle install
- Build Docker image:
docker-compose -f ./docker/docker-compose.build-image.yml build
- Run Docker image:
docker-compose -f ./docker/docker-compose.default.yml up
Ruby
Check out this tutorial.