This is the repository that holds the project work for the Nuclear Engineering Curriculum eXchange.
This website should be maintained collectively by the members of the project.
- (Optional) Install the build dependencies for the website. These include ruby, jekyll, and jekyll-scholar. Get started here..
- Fork the website repository.
- Clone your fork. If you have your ssh keys set up
and your username is USERNAME, the command is
git clone git@github.com:USERNAME/necx-org.github.io - Add the group fork as a remote.
cd necx-org.github.io && git remote add upstream git@github.com:necx-org/necx-org.github.io - Use
git branchto confirm that you are in thesourcebranch.
Now, you're ready to make changes to the website. There are a few types of changes that are common:
- Edits to the text
- Adding yourself to the people page
- Creating a manual entry or node description.
The curriculum content appears in the nodes repository. To render them within the website, follow these instructions:
- Do the setup steps above.
- change to the top-level directory for this repo
cd necx-org.github.io - initialize the
_nodessubmodule withgit submodule init - update the
_nodessubmodule withgit submodule update - run a
jekyll serveinstance and look at http://localhost:4000/nodes/
To review changes to nodes we need to pull in the nodes repository in a way that this repository understands it. The way to do this is with a submodule, as below.
- go to the
_nodesdirectory - checkout a branch that has the changes you are interested in reviewing
- you may want/need to add another git remote to fetch those changes
- If you don't see your changes, you may need to restart the jekyll server (kill with
ctrl-cand restart withjekyll serve) and look at http://localhost:4000/nodes/
One fun exercise to get started with this website is to add yourself to the people page.
- Once you have done the set up steps, enter the source branch of the repository.
git checkout source - Add your photo to the repository (in img/people). If your name is Jane Doe, call it
doej.png. - Don't forget to git add and git commit the photo
git add img/people/doej.pngandgit commit -am "adds a photo of Jane Doe" - Open the file
_data/people.ymland add your details. - Close the file and commit your changes (
git commit -am "added Jane Doe details to people data") - (Optional) Check whether your changes succeeded by typing
jekyll servefrom the top level directory of the website repository. Then, open a browser tolocalhost:4000. - When you're satisfied, push your changes to your own fork with
git push origin source. - Finally make a pull request from your source directory to the necx-org fork of necx-org.github.io.
If you're feeling confident, you can skip the pull request. Instead, you can
just push changes to the website directly with the command rake publish. Only
do this if you don't need anyone to double check your work.
If you're new to contributing, here are some great resources: