[gimp-web/testing] Move GIMP_VERSIONS to gimp_versions.json to parse
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Move GIMP_VERSIONS to gimp_versions.json to parse
- Date: Mon, 2 Dec 2019 22:05:53 +0000 (UTC)
commit 0abed4ae91d5b2c15f421ae07fa64843169a5b5d
Author: Pat David <patdavid gmail com>
Date: Mon Dec 2 16:05:10 2019 -0600
Move GIMP_VERSIONS to gimp_versions.json to parse
Moved the GIMP_VERSIONS file to content/gimp_versions.json and
made it available as a static file
(www.gimp.org/gimp_versions.json) so Jehan can parse it.
GIMP_VERSIONS => content/gimp_versions.json | 0
pelicanconf.local.py | 6 +++---
pelicanconf.py | 4 ++--
pelicanconf.testing.py | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/GIMP_VERSIONS b/content/gimp_versions.json
similarity index 100%
rename from GIMP_VERSIONS
rename to content/gimp_versions.json
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index f58fc3d5..b5dddd8d 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -77,7 +77,7 @@ DEFAULT_PAGINATION = False
READERS = {'html': None}
# This will copy over these folders w/o modification
-STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', '.htaccess']
+STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', '.htaccess', 'gimp_versions.json']
# This sets which directories will be parsed as pages (vs. news/articles)
# If a new directory is to be added under content/, make sure it gets added here.
@@ -139,13 +139,13 @@ CACHE_CONTENT = True
###########################################################
#
-# Parse the GIMP_VERSIONS json file for use around the site
+# Parse the gimp_versions.json file for use around the site
# (mostly the /downloads/index.html page)
#
import json
from collections import OrderedDict
-with open('GIMP_VERSIONS') as data:
+with open('content/gimp_versions.json') as data:
GIMP = json.load(data, object_pairs_hook=OrderedDict)
if 'STABLE' in GIMP:
diff --git a/pelicanconf.py b/pelicanconf.py
index 3cbee7d5..1b21037c 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -78,7 +78,7 @@ DEFAULT_PAGINATION = False
READERS = {'html': None}
# This will copy over these folders w/o modification
-STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json']
+STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', 'gimp_versions.json']
# This sets which directories will be parsed as pages (vs. news/articles)
# If a new directory is to be added under content/, make sure it gets added hereMarkdown.
@@ -132,7 +132,7 @@ RELATIVE_URLS = False
import json
from collections import OrderedDict
-with open('GIMP_VERSIONS') as data:
+with open('content/gimp_versions.json') as data:
GIMP = json.load(data, object_pairs_hook=OrderedDict)
if 'STABLE' in GIMP:
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index 442dae05..941f4838 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -78,7 +78,7 @@ DEFAULT_PAGINATION = False
READERS = {'html': None}
# This will copy over these folders w/o modification
-STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', '.htaccess']
+STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news', 'contribute.json', '.htaccess',
'content/gimp_versions.json']
# This sets which directories will be parsed as pages (vs. news/articles)
# If a new directory is to be added under content/, make sure it gets added hereMarkdown.
@@ -132,7 +132,7 @@ RELATIVE_URLS = True
import json
from collections import OrderedDict
-with open('GIMP_VERSIONS') as data:
+with open('gimp_versions.json') as data:
GIMP = json.load(data, object_pairs_hook=OrderedDict)
if 'STABLE' in GIMP:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]