diff --git a/doc/theming.rst b/doc/theming.rst index cedaf65..961b4ab 100644 --- a/doc/theming.rst +++ b/doc/theming.rst @@ -60,3 +60,22 @@ from. So what you want to do is replace this ``master.html`` by your own. + THEME_STATIC_FOLDER='/var/www/mypaguretheme/static' * Restart pagure + + +.. note: you could just have replaced the `pagure-logo.png` file with your + own logo which would have avoided overriding the template. + + +In production +------------- + +Serving static files via flask is fine for development but in production +you will probably want to have apache server them. This will allow caching +either on the server side or on the client side. + +You can ask apache to behave in a similar way as does flask-multistatic with +flask here, ie: search in one folder and if you don't find the file look +in another one. + +`An example apache configuration `_ +is provided as part of the sources of `flask-multistatic `_.