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
bb5b7ef0
Commit
bb5b7ef0
authored
8 years ago
by
Josh Borrow
Browse files
Options
Downloads
Patches
Plain Diff
Added about compiler to the regular one so they are both ran at the same time
parent
93e31e26
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
templates/compiler.py
+17
-5
17 additions, 5 deletions
templates/compiler.py
with
17 additions
and
5 deletions
templates/compiler.py
+
17
−
5
View file @
bb5b7ef0
...
...
@@ -108,15 +108,27 @@ def render(render_pages, data_dir, template_dir, output_dir):
if
__name__
==
"
__main__
"
:
pages
=
[
import
about
DATA_DIR
=
"
../data
"
TEMPLATE_DIR
=
"
.
"
OUTPUT_DIR
=
"
./compiled
"
PAGES
=
[
"
index.html
"
,
"
pubs.html
"
,
"
talks.html
"
]
about
.
compile_to_yaml
(
in_filename
=
"
about_meta.yaml
"
,
out_filename
=
"
about.yaml
"
,
data_dir
=
DATA_DIR
)
render
(
render_pages
=
pages
,
data_dir
=
"
../data
"
,
template_dir
=
"
.
"
,
output_dir
=
"
./compiled
"
,
render_pages
=
PAGES
,
data_dir
=
DATA_DIR
,
template_dir
=
TEMPLATE_DIR
,
output_dir
=
OUTPUT_DIR
,
)
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