Skip to content

Commit a86b05c

Browse files
Initial Commit
0 parents  commit a86b05c

File tree

187 files changed

+15756
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+15756
-0
lines changed

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
MIT License
3+
4+
Copyright (c) YEAR Your
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to do so, subject to the
11+
following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
2+
# Research Coding Community (RCC) Website Template
3+
4+
Welcome! This repository is a **template** for launching your own Research Coding Community website using **Jupyter Book**. It includes:
5+
6+
- 📚 A ready-to-edit site structure (home, community pages, courses)
7+
- ✅ Working **GitHub Actions** for CI/CD to **deploy to GitHub Pages**
8+
- 🧩 **Interactive quizzes** via `jupyterquiz` with sample content
9+
- 🧪 Optional **accessibility checks** workflow (Pa11y)
10+
- 🧰 Examples & placeholders only — **no real content**
11+
12+
---
13+
14+
## Quick Start (the 5-minute version)
15+
16+
1. **Create your repo from this template**
17+
- On GitHub, click **Use this template****Create a new repository**.
18+
- Or fork this repo.
19+
20+
2. **Enable GitHub Pages**
21+
- Go to **Settings → Pages**.
22+
- Set **Source** to **GitHub Actions**.
23+
24+
3. **Edit site config**
25+
- Open `_config.yml` and replace the placeholders for `title`, `author`, `repository.url`, and the `logo` path if you change it.
26+
27+
4. **Add or edit content**
28+
- Update `home_page.md`.
29+
- Edit community pages in `community/`.
30+
- Add/modify courses in `courses/`, update `_toc.yml` accordingly.
31+
- Try the quiz in `courses/example_course/example_lesson.ipynb`.
32+
33+
5. **Push to `main`**
34+
- GitHub Actions will build and deploy your site automatically.
35+
- Your site will be available at: `https://<your-username>.github.io/<your-repo>/`
36+
37+
---
38+
39+
## Repository Structure
40+
41+
```
42+
.
43+
├─ _config.yml # Jupyter Book site config (title, logo, repo, etc.)
44+
├─ _toc.yml # Table of contents (navigation)
45+
├─ home_page.md # Landing page
46+
├─ community/ # Community pages (About, Code of Conduct, Join)
47+
├─ courses/
48+
│ └─ example_course/
49+
│ ├─ README.md # Course overview
50+
│ └─ example_lesson.ipynb # Example notebook with quiz
51+
├─ quizzes/
52+
│ └─ sample_quiz.json # Example quiz
53+
├─ _static/
54+
│ └─ logo.png # Placeholder logo (replace with your own)
55+
├─ .github/workflows/
56+
│ ├─ build-book.yml # Build on PRs to check that site compiles
57+
│ ├─ deploy-book.yml # Build & deploy to GitHub Pages on push to main
58+
│ └─ accessibility.yml # Optional: Pa11y accessibility checks
59+
├─ requirements.in # Python dependencies (pip)
60+
├─ pyproject.toml # Optional Poetry project
61+
└─ .gitignore
62+
```
63+
64+
---
65+
66+
## Customising the Site
67+
68+
- **Branding:** Replace `_static/logo.png` and set the `logo:` path in `_config.yml`.
69+
- **Theme:** Jupyter Book uses Sphinx Book Theme. You can add custom CSS in `_static/` and reference it in `_config.yml`.
70+
- **Content:** Add new courses in `courses/your_course/` and include them in `_toc.yml`.
71+
72+
---
73+
74+
## Interactive Quizzes (JupyterQuiz)
75+
76+
1. Put quiz JSON files in `quizzes/`. See `quizzes/sample_quiz.json`.
77+
2. In a notebook, add:
78+
79+
```python
80+
from jupyterquiz import display_quiz
81+
display_quiz("quizzes/sample_quiz.json")
82+
```
83+
84+
3. When the site builds, quizzes render as interactive widgets in the page.
85+
86+
---
87+
88+
## Local Preview (optional)
89+
90+
```bash
91+
# Using pip
92+
pip install -r requirements.in
93+
jupyter-book build .
94+
# Open _build/html/index.html in your browser
95+
96+
# Or with Poetry
97+
poetry install
98+
poetry run jupyter-book build .
99+
```
100+
101+
---
102+
103+
## Deployment: GitHub Actions → GitHub Pages
104+
105+
- Pushing to `main` triggers the **Deploy** workflow.
106+
- The workflow builds the Jupyter Book and publishes it to **GitHub Pages**.
107+
- Check **Actions** for logs if something fails.
108+
109+
> Tip: You can also run the **Build** workflow on pull requests as a smoke test.
110+
111+
---
112+
113+
## Accessibility (optional, recommended)
114+
115+
The `accessibility.yml` workflow runs [Pa11y](https://pa11y.org/) to flag potential accessibility issues. You can disable it by removing the workflow or keep it to improve inclusivity.
116+
117+
---
118+
119+
## Contributing / Community
120+
121+
- Update `community/about.md` and `community/join.md` for your group.
122+
- Consider adding a `CONTRIBUTING.md` and updating the Code of Conduct in `community/code_of_conduct.md`.
123+
124+
---
125+
126+
## License
127+
128+
This template is provided under the **MIT License**. Replace the license if you need a different one for your community.
4.03 KB
Binary file not shown.
Binary file not shown.
4.23 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

_build/.doctrees/environment.pickle

118 KB
Binary file not shown.

_build/.doctrees/home_page.doctree

6.41 KB
Binary file not shown.

_build/html/.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: ce2181896316a911aa65ba2e0178eaf7
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

0 commit comments

Comments
 (0)