Website CodeRefinery - usnistgov/carpentries-development GitHub Wiki
Use the CodeRefinery template for, e.g, Git Branching.
Set up the workshop repository based on https://coderefinery.github.io/manuals/workshop-administration/#set-up-workshop-page.
The following deviations from the template instructions must be made:
-
When importing the workshop-template repository, set the owner to the
usnistgov
organization on github. Choose a name for the repository of the formYYYY-MM-DD-nist
, e.g.,2015-07-23-nist
.- Add the SoftwareCarpentryInstructors team (under the
usnistgov
organization) to the repository via Settings > Manage access- If necessary, request to join SoftwareCarpentryInstructors via the team page
- Contact [email protected] with any questions or concerns.
- Add the SoftwareCarpentryInstructors team (under the
-
Per NIST policy, you must do your work in your repository's
nist-pages
branch (not ingh-pages
) .- In the GitHub interface, navigate to the
branches
page (Code > main > View all branches) and click the pencil to edit the name of thegh-pages
branch tonist-pages
. Leavemain
as the default branch. Note: This is different from selecting thenist-pages
branch in the Code view.
- In the GitHub interface, navigate to the
-
Enable Zola static site processing by navigating to Settings > Actions and enabling "Allow all actions". note: You will need to contact [email protected] to have GitHub Actions enabled for your repository.
- In
.github/workflows/build.yml
,- change
TARGET_BRANCH: "gh-pages"
toTARGET_BRANCH: "nist-pages"
- change
- name: Deploy to gh-pages
to- name: Deploy to nist-pages
- add
publish_branch: nist-pages # default: gh-pages
afterforce_orphan: true
.
- change
- In
-
Edit the
config.toml
file:-
Change
baseurl =
to point to your GitHub repository. -
Set the
title =
appropriately. -
Under
navigation =
, either comment out or delete{ name = "How to join", path = "join/" },
{ name = "Volunteer", path = "volunteer/" }
Alternatively, customize the linked pages, as they pertain more to the CodeRefinery organization in Scandinavia.
-
Edit
registration_link =
to point to the registration page you are using. -
Change
source_url =
to point to your GitHub repository. -
When appropriate, uncomment
registration_is_open = true
.
-
-
Edit the
content/_index.md
file:- Remove "* Registration will open soon."
<div>
block; it's weirdly redundant to the registration button. - Remove discussion about being an exercise leader (unless you want to figure out how to incorporate this in your class).
- Edit schedule topics, times, time-zones, ...
- Edit contact info
- Remove "* Registration will open soon."
-
Edit the
content/audience.md
file:- Remove discussion of teams and exercise leaders (unless you want to figure out how to incorporate this in your class).
-
Push the content to the https://pages.nist.gov server by following the instructions at https://github.com/usnistgov/pages-root/wiki/Configuring-your-repo-for-publishing-on-pages.nist.gov.
Note: NIST templates are forthcoming and may conflict with the SoftwareCarpentry templates.
Your workshop webpage should appear at
https://pages.nist.gov/YYYY-MM-DD-nist