Skip to content

How to build tutorial? #61

@AlbertoGP

Description

@AlbertoGP

The Makefile builds the specification, but not the tutorial.

I’ve got it build something by duplicating SPEC_SRC to TUTORIAL_SRC, then:

TUTORIAL_HTML := tutorial/tutorial.html

$(TUTORIAL_HTML): $(TUTORIAL_SRC) _spec/template.html Makefile
	pandoc -t html5 \
		   -f markdown \
		   --template=_spec/template.html \
		   $(PANDOC_FLAGS) --listings --highlight-style=pygments \
		   --mathjax \
		   $(TUTORIAL_SRC) \
		   -o $(TUTORIAL_HTML)

This however does not include the example listings read using {% capture source %}{% include examples/hello-world/hello.aum %}{% endcapture %} and then {{ source }} as is done in hello-world.md for instance.

Maybe this version of pandoc does not have the necessary modules or whatever, but is there some option I’m missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions