aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2015-08-26 07:57:04 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2015-08-26 07:57:04 -0300
commit8041475aab2b8efad7d2857027331bd626d26312 (patch)
tree3980e1763c067079a4cebb425d642ca9eac834bf /scripts
parentb0b24795b24ee6809397fbbadf42f31f310a219f (diff)
Imported Upstream version 7.6.4
Diffstat (limited to 'scripts')
-rw-r--r--scripts/INTERNAL USE ONLY0
-rwxr-xr-xscripts/getwheelhouse.sh2
-rwxr-xr-xscripts/jinjify.py9
-rwxr-xr-xscripts/update-bower.sh10
4 files changed, 9 insertions, 12 deletions
diff --git a/scripts/INTERNAL USE ONLY b/scripts/INTERNAL USE ONLY
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/scripts/INTERNAL USE ONLY
diff --git a/scripts/getwheelhouse.sh b/scripts/getwheelhouse.sh
index 753fc2b..911ffbd 100755
--- a/scripts/getwheelhouse.sh
+++ b/scripts/getwheelhouse.sh
@@ -3,7 +3,5 @@ for i in $@; do
wget https://github.com/getnikola/wheelhouse/archive/v$i'.zip'
unzip 'v'$i'.zip'
pip install --use-wheel --no-index --find-links=wheelhouse-$i lxml Pillow ipython
- # Install Markdown for Python 2.6.
- pip install --use-wheel --no-index --find-links=wheelhouse-$i Markdown || true
rm -rf wheelhouse-$i 'v'$i'.zip'
done
diff --git a/scripts/jinjify.py b/scripts/jinjify.py
index 30f8029..abd18e9 100755
--- a/scripts/jinjify.py
+++ b/scripts/jinjify.py
@@ -18,7 +18,8 @@ dumb_replacements = [
["og: http://ogp.me/ns# \\", "og: http://ogp.me/ns#"],
["article: http://ogp.me/ns/article# \\", "article: http://ogp.me/ns/article#"],
["fb: http://ogp.me/ns/fb# \\", "fb: http://ogp.me/ns/fb#"],
- ['dir="rtl" \\', 'dir="rtl"']
+ ['dir="rtl" \\', 'dir="rtl"'],
+ ['sorted(translations)', 'translations|sort'],
]
dumber_replacements = [
@@ -70,8 +71,7 @@ def jinjify(in_theme, out_theme):
child = os.path.basename(out_theme.rstrip('/'))
mappings = {
'base-jinja': 'base',
- 'bootstrap-jinja': 'base-jinja',
- 'bootstrap3-jinja': 'bootstrap-jinja',
+ 'bootstrap3-jinja': 'base-jinja',
}
if child in mappings:
@@ -84,7 +84,7 @@ def jinjify(in_theme, out_theme):
outf.write(u"jinja\n")
# Copy assets in bootstrap/bootstrap3
- if child in ('bootstrap-jinja', 'bootstrap3-jinja'):
+ if child == 'bootstrap3-jinja':
shutil.rmtree(os.path.join(out_theme, "assets"))
shutil.copytree(
os.path.join(in_theme, "assets"), os.path.join(out_theme, "assets"),
@@ -220,7 +220,6 @@ if __name__ == "__main__":
print('Performing standard conversions:')
for m, j in (
('nikola/data/themes/base', 'nikola/data/themes/base-jinja'),
- ('nikola/data/themes/bootstrap', 'nikola/data/themes/bootstrap-jinja'),
('nikola/data/themes/bootstrap3', 'nikola/data/themes/bootstrap3-jinja')
):
print(' {0} -> {1}'.format(m, j))
diff --git a/scripts/update-bower.sh b/scripts/update-bower.sh
index d077434..fbf69a0 100755
--- a/scripts/update-bower.sh
+++ b/scripts/update-bower.sh
@@ -27,29 +27,29 @@ git add moment-with-locales.min.js
popd
# Link jQuery to bootstrap theme
-pushd nikola/data/themes/bootstrap/assets/js
+pushd nikola/data/themes/bootstrap3/assets/js
ln -sf ../../../../../../bower_components/jquery/dist/* .
git add .
popd
# Link colorbox into bootstrap theme
-pushd nikola/data/themes/bootstrap/assets/js
+pushd nikola/data/themes/bootstrap3/assets/js
ln -sf ../../../../../../bower_components/jquery-colorbox/jquery.colorbox.js .
git add jquery.colorbox.js
popd
-pushd nikola/data/themes/bootstrap/assets/js/colorbox-i18n
+pushd nikola/data/themes/bootstrap3/assets/js/colorbox-i18n
ln -sf ../../../../../../../bower_components/jquery-colorbox/i18n/* .
git add .
popd
-pushd nikola/data/themes/bootstrap/assets/css/
+pushd nikola/data/themes/bootstrap3/assets/css/
ln -sf ../../../../../../bower_components/jquery-colorbox/example3/colorbox.css .
git add colorbox.css
popd
-pushd nikola/data/themes/bootstrap/assets/css/images/
+pushd nikola/data/themes/bootstrap3/assets/css/images/
ln -sf ../../../../../../../bower_components/jquery-colorbox/example3/images/* .
git add .
popd