Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
prace-lessons
Lesson Template
Commits
8b7095e8
Commit
8b7095e8
authored
10 years ago
by
John Blischak
Browse files
Options
Downloads
Plain Diff
Merge pull request #133 from gvwilson/excluding-some-markdown-from-build
Excluding unwanted files from build
parents
e0771954
fdbfa2e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
Makefile
+7
-6
7 additions, 6 deletions
Makefile
with
11 additions
and
6 deletions
.gitignore
+
4
−
0
View file @
8b7095e8
README.html
LAYOUT.html
FAQ.html
DESIGN.html
*~
*.pyc
_site
This diff is collapsed.
Click to expand it.
Makefile
+
7
−
6
View file @
8b7095e8
...
...
@@ -3,12 +3,17 @@ SRC_RMD = $(wildcard ??-*.Rmd)
DST_RMD
=
$(
patsubst %.Rmd,%.md,
$(
SRC_RMD
))
# All Markdown files (hand-written and generated).
SRC_MD
=
$(
wildcard
*
.md
)
$(
DST_RMD
)
ALL_MD
=
$(
wildcard
*
.md
)
$(
DST_RMD
)
EXCLUDE_MD
=
README.md LAYOUT.md FAQ.md DESIGN.md
SRC_MD
=
$(
filter-out
$(
EXCLUDE_MD
)
,
$(
ALL_MD
))
DST_HTML
=
$(
patsubst %.md,%.html,
$(
SRC_MD
))
# All outputs.
DST_ALL
=
$(
DST_HTML
)
# Pandoc filters.
FILTERS
=
$(
wildcard tools/filters/
*
.py
)
# Inclusions.
INCLUDES
=
\
-Vheader
=
"
$$(
cat _includes/header.html
)
"
\
...
...
@@ -32,7 +37,7 @@ motivation.html : motivation.md _layouts/slides.html
-o
$@
$<
# Pattern to build a generic page.
%.html
:
%.md _layouts/page.html
%.html
:
%.md _layouts/page.html
$(FILTERS)
pandoc
-s
-t
html
\
--template
=
_layouts/page
\
--filter
=
tools/filters/blockquote2div.py
\
...
...
@@ -63,7 +68,3 @@ settings :
## clean : Clean up temporary and intermediate files.
clean
:
@
rm
-rf
$$(
find
.
-name
'*~'
-print
)
# very-clean : Remove generated HTML.
very-clean
:
@
rm
-f
$(
DST_MD
)
This diff is collapsed.
Click to expand it.
Preview
0%
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