1.9 KiB
1.9 KiB
Forked version of arc-green theme for gitea
If editor is not displaying properly hit ctl+f5 and/or clear browser cache
Install arc-blue theme
gitea is setup as a sevice as described in https://docs.gitea.io/en-us/install-from-binary/
Adding as new theme
Prepare
- Create /public/css/ in the custom directory for gitea (default: /var/lib/gitea/custom/)
mkdir -p /var/lib/gitea/custom/public/css/ /opt/gitea_blue-theme
- Remove old custom css/js
mv /opt/gitea_blue-theme/custom_public_bin/js /opt/gitea_blue-theme/custom_public_bin/js.old
mv /opt/gitea_blue-theme/custom_public_bin/css /opt/gitea_blue-theme/custom_public_bin/css.old
Install
- Download the repo to the opt directory
git clone https://git.bprieshof.nl/DarkTheme/Gitea-Arc_blue-Theme.git /opt/gitea_blue-theme/
- Link custom files to gitea installation
ln -sfn /opt/gitea_blue-theme/custom_public_bin/css /var/lib/gitea/custom/public/css
ln -sfn /opt/gitea_blue-theme/custom_public_bin/js /var/lib/gitea/custom/public/js
- add to gitea config file
/etc/gitea/app.inito enable the theme
[ui]
THEMES = gitea,arc-green,arc-blue
Finalize
- Restart gitea
systemctl restart gitea
Update
cd /opt/gitea_blue-theme
git pull
Overwriting existing arc-green
Prepare
- create /public/css/ in the custom directory for gitea (default: /var/lib/gitea/custom/)
mkdir -p /var/lib/gitea/custom/public/css/
Install
- cleanup if old version was installed
mv /var/lib/gitea/custom/public/css/theme-arc-green.css /var/lib/gitea/custom/public/css/theme-arc-green.css.old
- Download the blue theme to the custom directory
wget https://git.bprieshof.nl/DarkTheme/Gitea-Arc_blue-Theme/custom_public_bin/css/theme-arc-blue.css -O /var/lib/gitea/custom/public/css/theme-arc-green.css
Finalize
- Restart gitea
systemctl restart gitea