Skip to content

freeflowuniverse/gitea-rebrander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitea-rebrander

Script that syncs changes to gitea repository automatically.

Usage

To Add New Files

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)

Example

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

To Sync Changes

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.

Example

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

image

After

image

For manual rebranding at Gitea source repository

  • Changing the logo or Favicon:

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
  • Changing App Name :

    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

image

  • Update home page :

    any change at home can be done here /templates/home.tmpl you can add or remove content.

  • Update Footer :

    Any change to the Footer content can be done here /templates/base/footer_content.tmpl you can add or remove content.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages