You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,10 @@ where *username* is your GitHub username.
43
43
44
44
### A note on branches
45
45
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.
47
50
48
51
## Submitting a code contribution
49
52
@@ -54,32 +57,32 @@ Nikola's source files are located on the `src` git branch, and the built HTML fi
branch of the upstream repository, and connect it to a new branch
59
62
in your fork on GitHub.
60
63
61
64
```bash
62
-
git checkout -b new-branch-name upstream/src
65
+
git checkout -b new-branch-name upstream/main
63
66
git push --set-upstream origin new-branch-name
64
67
```
65
68
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/`.
68
71
69
72
```bash
70
73
git add changed_file.md
71
-
git commit -m "Updated changed_file.md"
74
+
git commit -m "Update changed_file.md"
72
75
```
73
76
74
-
Pages and posts are predominantly written inmarkdown, 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/).
75
78
76
-
4. Inside the `web/` directory, build and preview the website using
79
+
4. Build and preview the website using
77
80
78
81
```bash
79
82
nikola auto --browser
80
83
81
84
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.
83
86
84
87
7. The website will be rebuilt automatically after the pull request is merged.
85
88
After five to ten minutes, check that the website is functioning nominally.
0 commit comments