-
Notifications
You must be signed in to change notification settings - Fork 14
Setting up your repository settings
With your course repository set up, there are some settings recommended for development.
Using the issue guide checklist called New Course - Set Repository Settings
, you can walk through the steps for setting up your repository as we would recommend.
Go to Settings
> Pages
.
- Under
Source
, pick the drop down menu and pickmain
and/docs
. - Then click
Save
. - Lastly, check the box that says
Enforce HTTPS
at the bottom of this page.
Go to Settings
> Branches
and click Add rule
.
For Branch name pattern
, put main
.
Protect the main branch:
Then check the box that says Require pull request reviews before merging
.
Make sure branches are updated:
- Check the box that says
Require status checks to pass before merging
. - Underneath this also check the box that says
Require branches to be up to date before merging
.
Submit a pull request if you haven't already done so, to enable you to do the next step of establishing the branch settings.
Use automatic spell and URL checks:
After the first pull request, a couple of checks will automatically happen and then appear here in settings.
Then, you can require these checks to pass before merging pull requests by returning here and selecting them - they are url_check
and style-n-check
they will check that the urls work and that the code is styled using the stylr
package and that the spelling is correct using the spelling package respectively.
See the Github Actions page for more details on these.
After setting up these new branch items, click Create
and Save changes
.
If you are a part of JHU DaSL then you can skip the next section and the issue about GitHub secrets and start adding more content!
Otherwise, you will need to do the next section to set up Git Secrets.
Note that you can comment and close the issues you finish if you click on the issue and scroll down to the comment field to add comments and click the close issue
button if you are finished.
If you encounter any problems or have ideas for improvements to this template repository or this getting started guide, please file an issue here! Your feedback is very much appreciated.
Note all materials in this template are licensed CC-BY and can be repurposed freely with attribution.
- Getting started
- Start a new course!
- Start editing course files
- Content creation tips
- Setting up images and videos
- About citations
- About Docker
- Spell check
- URL check
- Generate docx output
- Borrowing chapters between courses
- Most common errors
- Choosing between platforms
- Publishing with Bookdown
- Publishing on Coursera
- Publishing on Leanpub
- Making quizzes private (Leanpub and Coursera)
- Set up user feedback method
- Change title and style
- Credits section
- Adding Google Analytics Traffic Tracking
- Release a course for public viewing