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

extracting templates doc #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ MKPAGE = $(PANDOC) --toc --standalone \
--lua-filter=tools/nowrap.lua \
--lua-filter=tools/extension-support.lua \
--lua-filter=tools/include-code-files.lua \
--lua-filter=tools/interlink.lua \
--variable time=${TIME} \
--css=css/site.css
VERSION = $(shell pandoc --version | head -1 | awk '{print $$2}')
Expand Down Expand Up @@ -88,7 +89,7 @@ $(SITE)/%.svgz: $(SITE)/%.svg
mv $<.gz $@

# 'make update' pulls in source files from the pandoc source directory
SOURCES = $(patsubst %, $(PANDOC_SRC)/%, changelog.md MANUAL.txt INSTALL.md CONTRIBUTING.md doc/filters.md doc/pandoc-server.md doc/org.md doc/faqs.md doc/custom-readers.md doc/custom-writers.md doc/lua-filters.md doc/jats.md doc/using-the-pandoc-api.md doc/getting-started.md doc/epub.md doc/typst-property-output.md doc/press.md doc/extras.md) $(PANDOC_SRC)/pandoc-cli/man/pandoc.1 $(PANDOC_SRC)/data/creole.lua
SOURCES = $(patsubst %, $(PANDOC_SRC)/%, changelog.md MANUAL.txt INSTALL.md CONTRIBUTING.md doc/filters.md doc/pandoc-server.md doc/org.md doc/faqs.md doc/custom-readers.md doc/custom-writers.md doc/lua-filters.md doc/jats.md doc/using-the-pandoc-api.md doc/getting-started.md doc/epub.md doc/typst-property-output.md doc/press.md doc/extras.md doc/templates.md) $(PANDOC_SRC)/pandoc-cli/man/pandoc.1 $(PANDOC_SRC)/data/creole.lua

update :
cp $(SOURCES) .
Expand Down
1 change: 1 addition & 0 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<li class="nav-item"><a class="dropdown-item" href="CONTRIBUTING.html">Contributing</a></li>
<li class="nav-item"><a class="dropdown-item" href="faqs.html">FAQ</a></li>
<li class="nav-item"><a class="dropdown-item" href="press.html">Press</a></li>
<li class="nav-item"><a class="dropdown-item" href="templates.html">Templates</a></li>
<li class="nav-item"><a class="dropdown-item" href="filters.html">Filters</a></li>
<li class="nav-item"><a class="dropdown-item" href="lua-filters.html">Lua filters</a></li>
<li class="nav-item"><a class="dropdown-item" href="custom-readers.html">Custom readers</a></li>
Expand Down
6 changes: 6 additions & 0 deletions tools/interlink.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function Link(el)
if string.find(el.target, "%.md$") then
el.target = el.target:gsub("%.md$", ".html")
return el
end
end