This repository has been archived on 2024-07-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Gitea-Arc_blue-Theme/readme.md

67 lines
1.7 KiB
Markdown

# 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
```
### 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.ini` to enable the theme
```
[ui]
THEMES = auto,gitea,arc-green,arc-blue
```
### Finalize
* Restart gitea
```
systemctl restart gitea
```
### Update
```
cd /opt/gitea_blue-theme
git pull
systemctl restart gitea
```
---
## 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
```