File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,14 @@ name is the name of your theme. Note the directory structure under the other exi
493
493
themes. Copy an `info.json ` file to your theme directory and edit as needed.
494
494
Create a file named theme.css in the src/moin/themes/<theme name>/static/css/ directory.
495
495
496
+ MoinMoin uses `Flask-theme <https://pypi.org/project/flask-theme/ >`_ for loading themes.
497
+ As mentioned in the `theme loader section <https://flask-theme.readthedocs.io/en/latest/#theme-loaders >`_,
498
+ you can configure additional directories that Flask-theme searches for themes by setting
499
+ the THEME_PATHS configuration.
500
+ Here is an example how you would set THEME_PATHS in wikiconfig::
501
+
502
+ THEME_PATHS = os.path.join(Config.instance_dir, "themes")
503
+
496
504
To change the layout of the theme header, sidebar and footer, create a templates/ directory and
497
505
copy and modify the files layout.html and show.html from either src/moin/templates/ or one
498
506
of the existing theme templates directories.
Original file line number Diff line number Diff line change @@ -281,3 +281,4 @@ class Config(DefaultConfig):
281
281
# config for flask-cache:
282
282
# CACHE_TYPE = 'filesystem'
283
283
# CACHE_DIR = '/path/to/flask-cache-dir'
284
+ # THEME_PATHS = os.path.join(Config.instance_dir, "themes")
You can’t perform that action at this time.
0 commit comments