Skip to content

Commit 9228b53

Browse files
authored
Rename maindeploy and srcmain (#208)
* Rename branchs in workflow and conf.py * Rename branch in deploy.yml * Update branch names * Minor updates and corrections
1 parent ab78389 commit 9228b53

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- src
6+
- main
77
pull_request:
88
workflow_dispatch:
99
schedule:

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ name: Build and deploy site
33
on:
44
push:
55
branches:
6-
- src
6+
- main
77
workflow_dispatch:
88

99
jobs:
1010
nikola_build:
1111
runs-on: ubuntu-latest
1212
name: Deploy Nikola to GitHub Pages
1313
steps:
14+
1415
- name: Check out
15-
uses: actions/checkout@v3
16+
uses: actions/checkout@v6
17+
1618
- name: Build and Deploy Nikola
1719
uses: getnikola/nikola-action@v8
1820
with:

CONTRIBUTING.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ where *username* is your GitHub username.
4343

4444
### A note on branches
4545

46-
Nikola's source files are located on the `src` git branch, and the built HTML files are located on the `main` branch. The GitHub repository defaults to the source branch as default when cloning the repository, so you shouldn't need to worry about this - and you definitely do not need to change files on `main`.
46+
Nikola's source files are located on the `main` git branch, and the built HTML files are located on the `deploy` branch. The GitHub repository defaults to the source branch as default when cloning the repository, so you shouldn't need to worry about this - and you definitely do not need to change files on `deploy`.
47+
48+
> [!NOTE]
49+
> In January 2026, the deployed branch was renamed from `main` to `deploy` and the source branch was renamed from `src` to `main` to align with common conventions.
4750
4851
## Submitting a code contribution
4952

@@ -54,32 +57,32 @@ Nikola's source files are located on the `src` git branch, and the built HTML fi
5457
```
5558

5659
2. Create and check out a branch based off of the
57-
[`src`](https://github.com/PlasmaPy/plasmapy.github.io/tree/src)
60+
[`main`](https://github.com/PlasmaPy/plasmapy.github.io/tree/main)
5861
branch of the upstream repository, and connect it to a new branch
5962
in your fork on GitHub.
6063

6164
```bash
62-
git checkout -b new-branch-name upstream/src
65+
git checkout -b new-branch-name upstream/main
6366
git push --set-upstream origin new-branch-name
6467
```
6568

66-
3. Make and commit changes in the `web/` directory. Most of the pages
67-
are in `web/pages/` while blog posts are in `web/posts/`.
69+
3. Make and commit changes in the `pages/` directory. Most of the pages
70+
are in `pages/` while blog posts are in `web/posts/`.
6871

6972
```bash
7073
git add changed_file.md
71-
git commit -m "Updated changed_file.md"
74+
git commit -m "Update changed_file.md"
7275
```
7376

74-
Pages and posts are predominantly written in markdown, but [`nikola` supports various file formats](https://getnikola.com/handbook.html#supported-input-formats) like HTML, reStructuredText, etc. Please use the markdown format, unless it's absolutely necessary to use one of the others.
77+
Pages and posts are written in [Markdown](https://www.markdownguide.org/).
7578

76-
4. Inside the `web/` directory, build and preview the website using
79+
4. Build and preview the website using
7780

7881
```bash
7982
nikola auto --browser
8083
8184
6. [Create a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)
82-
to the `src` branch on the main repository.
85+
to the `main` branch.
8386
8487
7. The website will be rebuilt automatically after the pull request is merged.
8588
After five to ten minutes, check that the website is functioning nominally.

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@
686686
# For more details, read the manual:
687687
# https://getnikola.com/handbook.html#deploying-to-github
688688
# You will need to configure the deployment branch on GitHub.
689-
GITHUB_SOURCE_BRANCH = "src"
690-
GITHUB_DEPLOY_BRANCH = "main"
689+
GITHUB_SOURCE_BRANCH = "main"
690+
GITHUB_DEPLOY_BRANCH = "deploy"
691691

692692
# The name of the remote where you wish to push to, using github_deploy.
693693
GITHUB_REMOTE_NAME = "origin"

0 commit comments

Comments
 (0)