Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove draft mode - book is now done #1388

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: 3.2.1
- run: make book draft lint
- run: make book lint
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: book draft widgets publish clean download wc lint examples
.PHONY: book widgets publish clean download wc lint examples

FLAGS=

Expand All @@ -16,7 +16,6 @@ EXAMPLE_JS=$(patsubst src/example%.js,%,$(wildcard src/example*.js))
EXAMPLE_CSS=$(patsubst src/example%.css,%,$(wildcard src/example*.css))

book: $(patsubst %,www/%.html,$(CHAPTERS)) www/rss.xml widgets examples www/index.html
draft: $(patsubst %,www/draft/%.html,$(CHAPTERS)) www/onepage.html widgets
examples: $(patsubst %,www/examples/example%.html,$(EXAMPLE_HTML)) \
$(patsubst %,www/examples/example%.js,$(EXAMPLE_JS)) \
$(patsubst %,www/examples/example%.css,$(EXAMPLE_CSS))
Expand Down Expand Up @@ -77,9 +76,6 @@ latex/book.pdf: latex/book.tex latex/macros.tex
www/%.html: book/%.md infra/template.html infra/signup.html infra/filter.lua config.json src/lab*.py
$(PANDOC) --toc --metadata=mode:book --template infra/template.html -c book.css $< -o $@

www/draft/%.html: book/%.md infra/template.html infra/signup.html infra/filter.lua config.json
$(PANDOC) --toc --metadata=mode:draft --template infra/template.html -c book.css $< -o $@

www/rss.xml: news.yaml infra/rss-template.xml
pandoc --template infra/rss-template.xml -f markdown -t html $< -o $@

Expand All @@ -102,7 +98,7 @@ bottle.py:
wc:
@ printf " Words Code File\n"; awk -f infra/wc.awk book/*.md | sort -rn

publish: book draft widgets
publish: book widgets
rsync -rtu --exclude=db.json --exclude=*.hash www/ server:/var/www/wbe/
ssh server chmod -Rf a+r /var/www/wbe/ || true

Expand Down
Empty file removed www/draft/.gitignore
Empty file.
Loading