File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 22# DEPENDENCIES #
33
44include $(TOOLS_MAKE_LIB_DIR ) /docs/src.mk
5-
5+ include $( TOOLS_MAKE_LIB_DIR ) /docs/eqns.mk
66
77# TARGETS #
88
@@ -22,3 +22,12 @@ docs: src-docs
2222clean-docs : clean-src-docs
2323
2424.PHONY : clean-docs
25+
26+
27+ # Generate equations.
28+ #
29+ # This target inserts DIVs and generates SVG files for all equations in Markdown file.
30+
31+ equations : generate-equations
32+
33+ .PHONY : equations
Original file line number Diff line number Diff line change 1+ # VARIABLES #
2+
3+ REMARK_RUNNER ?= $(BIN_DIR ) /remark
4+
5+ # Define the path to the remark ignore file:
6+ REMARK_IGNORE ?= $(CONFIG_DIR ) /.remarkignore
7+
8+ # Define plugins:
9+
10+ PLUGIN_FOLDER ?= $(TOOLS_DIR ) /remark/plugins
11+ REMARK_HTML_EQUATIONS_PLUGIN ?= $(PLUGIN_FOLDER ) /remark-html-equations
12+ REMARK_SVG_EQUATIONS_PLUGIN ?= $(PLUGIN_FOLDER ) /remark-svg-equations
13+
14+ # Define Markdown extensions:
15+ REMARK_EXT ?= md
16+
17+ # Define the command-line options when invoking the remark executable:
18+ GENERATE_EQUATIONS_FLAGS ?= \
19+ --ext $(REMARK_EXT ) \
20+ --ignore-path $(REMARK_IGNORE ) \
21+ --use $(REMARK_HTML_EQUATIONS_PLUGIN ) \
22+ --use $(REMARK_SVG_EQUATIONS_PLUGIN )
23+
24+ # Define output option:
25+ OUTPUT ?= --output
26+
27+ # TARGETS #
28+
29+ # Generate equations.
30+ #
31+ # This target generates SVG files for all equations in Markdown file.
32+
33+ generate-equations : $(NODE_MODULES )
34+ $(REMARK_RUNNER ) $(GENERATE_EQUATIONS_FLAGS ) $(MARKDOWN_FILES ) $(OUTPUT )
35+
36+ .PHONY : generate-equations
You can’t perform that action at this time.
0 commit comments