Seahub customizing opt (#499)
Some checks failed
Deploy CI - 12.0 / deploy (push) Has been cancelled

* update

* Update seahub_customization.md
This commit is contained in:
Ranjiwei 2025-03-28 17:42:53 +08:00 committed by GitHub
parent 5fd154ee14
commit 0de30fb0db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ Add your favicon file to `custom/`
Overwrite `FAVICON_PATH` in `seahub_settings.py`
```py
LOGO_PATH = 'custom/favicon.png'
FAVICON_PATH = 'custom/favicon.png'
```
### Customize Seahub CSS
@ -49,7 +49,7 @@ Add your css file to `custom/`, for example, `custom.css`
Overwrite `BRANDING_CSS` in `seahub_settings.py`
```py
LOGO_PATH = 'custom/custom.css'
BRANDING_CSS = 'custom/custom.css'
```
## Customize help page
@ -58,16 +58,20 @@ LOGO_PATH = 'custom/custom.css'
```sh
mkdir -p /opt/seafile-data/seahub/media/custom/templates/help/
cd /opt/seafile-data/seahub/media/custom
cp ../../help/templates/help/install.html templates/help/
cp ../../help/templates/help/base.html templates/help/
```
=== "Deploy from binary packages"
```sh
mkdir /opt/seafile/seafile-server-latest/seahub/media/custom/templates/help/
cd /opt/seafile/seafile-server-latest/seahub/media/custom
cp ../../help/templates/help/install.html templates/help/
cp ../../help/templates/help/base.html templates/help/
```
Modify the `templates/help/install.html` file and save it. You will see the new help page.
For example, modify the `templates/help/base.html` file and save it. You will see the new help page.
!!! note
There are some more help pages available for modifying, you can find the list of the html file [here](https://github.com/haiwen/seahub/tree/master/seahub/help/templates/help)
## Add an extra note in sharing dialog
@ -106,24 +110,12 @@ CUSTOM_NAV_ITEMS = [
```
!!! note
The `icon` field currently only supports icons in Seafile that begin with `sf2-icon`. You can find the list of icons here: <hhttps://github.com/haiwen/seahub/blob/master/media/css/seahub.css>
The `icon` field currently only supports icons in Seafile that begin with `sf2-icon`. You can find the list of icons [here](https://github.com/haiwen/seahub/blob/master/media/css/seahub.css)
Then restart the Seahub service to take effect.
Once you log in to the Seafile system homepage again, you will see the new navigation entry under the `Tools` navigation bar on the left.
## Add more links to the bottom bar
```
ADDITIONAL_APP_BOTTOM_LINKS = {
'seafile': 'https://example.seahub.com/seahub',
'dtable-web': 'https://example.seahub.com/web'
}
```
Result:
![](../images/additional-app-bottom-links.png)
## Add more links to about dialog