diff --git a/manual/config/seahub_customization.md b/manual/config/seahub_customization.md index bf33531a..f7a1a46a 100644 --- a/manual/config/seahub_customization.md +++ b/manual/config/seahub_customization.md @@ -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: + 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