Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWIFTweb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTweb
Commits
48bf8a78
Commit
48bf8a78
authored
8 years ago
by
Josh Borrow
Browse files
Options
Downloads
Patches
Plain Diff
data_dir was not correctly passed around
parent
d72f7fa7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler.py
+3
-3
3 additions, 3 deletions
compiler.py
with
3 additions
and
3 deletions
compiler.py
+
3
−
3
View file @
48bf8a78
...
...
@@ -94,7 +94,7 @@ def global_variables(active, data_dir="../data"):
def
render
(
render_pages
,
data_dir
,
template_dir
,
output_dir
):
"""
Main rendering function for all of the pages.
"""
data
=
get_from_filesystem
(
render_pages
,
template_dir
)
data
=
get_from_filesystem
(
render_pages
,
template_dir
,
data_dir
)
output
=
[
render_template
(
page
,
args
,
data_dir
)
for
page
,
args
in
data
]
# Save the files into the output_dir
...
...
@@ -122,7 +122,7 @@ def copy_static(directories, output_dir):
if
__name__
==
"
__main__
"
:
import
about
DATA_DIR
=
"
/data
"
DATA_DIR
=
"
.
/data
"
TEMPLATE_DIR
=
"
./templates
"
OUTPUT_DIR
=
"
./compiled
"
...
...
@@ -130,7 +130,7 @@ if __name__ == "__main__":
"
index.html
"
,
"
pubs.html
"
,
"
talks.html
"
,
"
about.html
"
"
about.html
"
,
]
STATIC
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment