0
1
Fork
You've already forked shellheim-archive-source
0
Source code for the shell archives website. https://shellheim.codeberg.page/
  • HTML 84.1%
  • Shell 15.9%
2025年04月03日 15:33:25 +05:30
archetypes Initial Commit 2023年07月24日 21:21:25 +05:30
content fix(site): test 2025年02月23日 22:05:19 +05:30
layouts feat(theme): Remove theme 2024年11月04日 19:32:39 +05:30
static fix(img): add international airports 2025年02月24日 16:51:54 +05:30
themes chore(theme): Update 2025年01月07日 16:13:42 +05:30
.gitignore chore(theme): Update 2024年12月30日 13:17:33 +05:30
.gitmodules feat(theme): Add new theme (also finally!) 2024年11月05日 19:21:19 +05:30
.hugo_build.lock Initial Commit 2023年07月24日 21:21:25 +05:30
.prettierrc.json feat(theme): Remove theme 2024年11月04日 19:32:39 +05:30
build.sh feat(build): add a backup host repo 2025年04月03日 15:33:25 +05:30
config.yaml chore(theme): Update 2024年12月29日 11:00:03 +05:30
LICENSE Initial commit 2023年07月24日 15:49:03 +00:00
package.json feat(posts): Add 'Carbon and Compounds' in chemistry 2024年12月28日 15:34:44 +05:30
README.md chore(theme): Update 2024年12月30日 13:17:33 +05:30
webp.sh feat(scripts): add ppm as an image format to convert from in webp.sh 2024年12月13日 23:48:42 +05:30

The Shell Archives Source

This repository houses all the source code for the website The Shell Archives

You can find the codeberg pages repository here.

Development Notes to Self

1. Clone the repo

git clone git@codeberg.org:shellheim/shellheim-archive-source.git

2. Submodules

Initialize the submodule (so the theme can work)

git submodule update --init --recursive

Update the submodules (read update theme)

 git submodule update --remote --merge

3. Publishing Flow

I have set up a system where the public/ directory is the git repo for the codeberg pages repo, so that when I update the site with hugo the changes immediately reflect in the public/ directory and thus on the actual website.

First remove the hugo public/ directory with

rm public/ -rf

Then clone the pages repo into the new public/ directory with

git clone git@codeberg.org:shellheim/pages.git public/

4. Build.sh

Now, after doing all that you can just make your changes, add them and run build.sh, which executes this:

hugo || exit 1
git push origin main || echo "Couldn't push source to upstream" && exit 1
cd public/ || exit 1
git add -A
git commit -m "Auto Commit, Site Updated"
git push origin main || echo "Failed to push, site built." && exit 1

The build.sh file makes sure that :

(i) the repo is pushed to main.

  • So after adding all the changes you can just run ./build.sh without pushing yourself.

(ii) the site is built with the command hugo

(iii) all the changes in public/ because of the previous hugo command are added with git add -A

Then it pushes this pages repo (in the /public directory) to remote and the website updates on https://shellheim.codeberg.page

Screenshots

Homepage


Post