Skip to content

Commit

Permalink
Hotfix v0.7.2: Fetch list of templates after downloading theme
Browse files Browse the repository at this point in the history
  • Loading branch information
davidomarf committed Oct 30, 2019
1 parent 4f714f5 commit 0c78f91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author = 'David Omar Flores Chavez'

# The full version, including alpha/beta/rc tags
release = 'v0.7.1'
release = 'v0.7.2'


# -- General configuration ---------------------------------------------------
Expand Down
10 changes: 6 additions & 4 deletions ginpar/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ def build(path):
_jinja_env.filters["unkebab"] = unkebab
_jinja_env.filters["getattrs"] = dict_to_attrs



if not os.path.isdir(_THEME_PATH):
clone_repo(_SITE["theme"], _THEME_PATH)
delete_git_files(_THEME_PATH)

input_templates = list(map(
lambda t : _jinja_env.get_template(t),
filter(
Expand All @@ -367,10 +373,6 @@ def build(path):
)
))

if not os.path.isdir(_THEME_PATH):
clone_repo(_SITE["theme"], _THEME_PATH)
delete_git_files(_THEME_PATH)

create_publishing_directory(path)
echo(f"Building in `{os.path.abspath(path)}`")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setuptools

version = '0.7.1'
version = '0.7.2'

requires = ['jinja2 >= 2.7', 'pyyaml', 'click']

Expand Down

0 comments on commit 0c78f91

Please sign in to comment.