Script that syncs changes to gitea repository automatically.
1- Clone the repo:
git clone [email protected]:freeflowuniverse/gitea-rebrander.git
2- Configure config.yaml
file
- Add absolute path of gitea repo after cloning it.
- Add the files that should be changed with their paths(where they are located in gitea repo)
gitea-repo-path: /home/eyad/repos/gitea #absolute path to the gitea repo
files:
# example of files will be updated
'home.tmpl': templates/home.tmpl
'footer_content.tmpl': templates/base/footer_content.tmpl
3- Add the changed or updated files to ./files/ directory
.
├── main.py
├── config.yaml
├── files
│ ├── footer_content.tmpl
│ └── home.tmpl
1- Clone the repo:
git clone [email protected]:freeflowuniverse/gitea-rebrander.git
2- Configure config.yaml
file
- Add absolute path of gitea repo after cloning it.
gitea-repo-path: /home/eyad/repos/gitea #absolute path to the gitea repo
3- Install requirements
pip install -r requirements.txt
4- Run
python main.py
5- To apply new logo and icon before building gitea and running it, cd to gitea:
cd <path-to-gitea-repo>
6- Run
make generate-images
Before
After
For manual rebranding at Gitea source repository
To build a custom logo and/or favicon clone the Gitea source repository, replace assets/logo.svg
and/or assets/favicon.svg
and run
make generate-images
-
To change the app name(from Gitea to any name) at the page title and all website go to
/custom/conf/app.ini
and change it to ex:ThreeFold
-
any change at home can be done here
/templates/home.tmpl
you can add or remove content. -
Any change to the Footer content can be done here
/templates/base/footer_content.tmpl
you can add or remove content.