[gimp-web/gimp-web-static] Added newgimp theme as default when building
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/gimp-web-static] Added newgimp theme as default when building
- Date: Mon, 3 Aug 2015 15:22:08 +0000 (UTC)
commit d29f01beafc2ee4a1e93c57978f447530aae4020
Author: Pat David <patdavid gmail com>
Date: Mon Aug 3 10:21:47 2015 -0500
Added newgimp theme as default when building
Added the line in pelicanconf.py for automatically using
the new testing theme, newgimp:
THEME = './themes/newgimp'
content/pages/meta.md | 20 ++++++++++++++++++--
pelicanconf.py | 5 +++++
2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/content/pages/meta.md b/content/pages/meta.md
index 8471827..2821fbe 100644
--- a/content/pages/meta.md
+++ b/content/pages/meta.md
@@ -79,10 +79,26 @@ For detailed information refer to the [Pelican documentation](http://docs.getpel
Building the site is relatively straightforward:
-`pelican -t ./themes/newgimp`
+From the project directory, simply invoke pelican:
-The `-t ./themes/newgimp` option is to specify a particular theme and is only temporary (it will be
incorporated into the build system through the `pelicanconf.py` later at some point).
+`pelican`
+If you are writing content or developing other parts of the site, there is an option to watch the directory
of files for changes and to automatically re-compile the site as needed:
+
+`pelican -r`
+
+
+#### Viewing the site
+
+Python has a simple web server available to preview the site.
+
+For Python 2:
+`cd output`
+`python -m SimpleHTTPServer`
+
+For Python 3:
+`cd output`
+`pythong m http.server`
*Pelican webserver*:
`python -m pelican.server`
diff --git a/pelicanconf.py b/pelicanconf.py
index 6abb547..32b46fd 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -34,8 +34,13 @@ DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
+
+# Pat David changes while building/testing
+
STATIC_PATHS = ['images']
+THEME = "./themes/newgimp"
+
PAGE_URL = "{slug}/"
PAGE_SAVE_AS = "{slug}/index.html"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]