Skip to content

Commit

Permalink
Fix include for liq files.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 15, 2023
1 parent 3b1ef0e commit 6833f1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
PWD := $(shell pwd)
GENERATED_DOC_DIR := $(PWD)/../liquidsoap/_build/default/doc
GENERATED_INTERPRETER_DIR := $(PWD)/../liquidsoap/_build/default/src/js
PANDOC := pandoc --syntax-definition=liquidsoap.xml --highlight=pygments --lua-filter=tools/option-anchors.lua --filter=pandoc-include
NODE := $(shell which node)

# Versions for which documentation should be built and included
Expand Down Expand Up @@ -103,7 +102,7 @@ define VERSIONED_RULES
$(PWD)/html/doc-$(version)/%.html: $(PWD)/content/doc-$(version)/%.md $(PWD)/template-$(version).html
@echo Converting $$(<) to $$(@)...
@test -d $$(shell dirname $$(@)) || (mkdir -p $$(shell dirname $$(@)))
@$(PANDOC) --template template-$(version).html --metadata version=$(version) --metadata versions="$(VERSIONS)" --metadata pagetitle="$$(basename $$(notdir $$@))" -i $$< -o $$@
@pandoc $$< -t json | pandoc-include --directory $(PWD)/content/doc-$(version)/liq | pandoc -f json --syntax-definition=liquidsoap.xml --highlight=pygments --lua-filter=tools/option-anchors.lua --template template-$(version).html --metadata version=$(version) --metadata versions="$(VERSIONS)" --metadata pagetitle="$$(basename $$(notdir $$@))" -o $$@

$(PWD)/html/doc-$(version)/images/%: $(PWD)/content/doc-$(version)/images/%
@echo "$$(<) -> $$(@)"
Expand Down

0 comments on commit 6833f1e

Please sign in to comment.