Skip to content

Commit 8fdbb5b

Browse files
committed
Move Markdown eqn targets to new directory
1 parent 829c7c6 commit 8fdbb5b

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

tools/make/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ include $(TOOLS_MAKE_LIB_DIR)/benchmark/Makefile
4242
include $(TOOLS_MAKE_LIB_DIR)/examples/Makefile
4343
include $(TOOLS_MAKE_LIB_DIR)/complexity/Makefile
4444
include $(TOOLS_MAKE_LIB_DIR)/docs/Makefile
45+
include $(TOOLS_MAKE_LIB_DIR)/markdown-equations/Makefile
4546
include $(TOOLS_MAKE_LIB_DIR)/debug/Makefile
4647

4748

tools/make/lib/docs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# DEPENDENCIES #
33

44
include $(TOOLS_MAKE_LIB_DIR)/docs/src.mk
5-
include $(TOOLS_MAKE_LIB_DIR)/docs/eqns.mk
65

76

87
# TARGETS #

tools/make/lib/docs/eqns.mk renamed to tools/make/lib/markdown-equations/Makefile

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,34 @@ REMARK_OUTPUT_FLAG ?= --output
6969

7070
# TARGETS #
7171

72+
# Process Markdown files containing equations.
73+
#
74+
# This target processes Markdown files containing Markdown equation elements as follows:
75+
#
76+
# 1. Files containing equation elements are transformed to include HTML equation elements.
77+
# 2. SVG files are generated for each equation.
78+
# 3. Processed files are committed to source control.
79+
# 4. Resource URLs are inserted in HTML equation elements.
80+
# 5. Processed files are committed to source control.
81+
82+
markdown-equations: $(NODE_MODULES)
83+
$(REMARK) $(MARKDOWN_FILES) \
84+
$(REMARK_FLAGS) \
85+
$(REMARK_HTML_EQUATIONS_PLUGIN_FLAGS) \
86+
$(REMARK_SVG_EQUATIONS_PLUGIN_FLAGS) \
87+
$(REMARK_OUTPUT_FLAG) && \
88+
$(GIT_ADD) && \
89+
$(GIT_COMMIT_EQUATIONS) && \
90+
$(REMARK) $(MARKDOWN_FILES) \
91+
$(REMARK_FLAGS) \
92+
$(REMARK_EQUATION_SRC_URLS_PLUGIN_FLAGS) \
93+
$(REMARK_OUTPUT_FLAG) && \
94+
$(GIT_ADD) && \
95+
$(GIT_COMMIT_SRC_URLS)
96+
97+
.PHONY: markdown-equations
98+
99+
72100
# Generate HTML equation elements.
73101
#
74102
# This target transforms Markdown files containing equation comment markup to include HTML equation elements.
@@ -106,31 +134,3 @@ markdown-equation-src-urls: $(NODE_MODULES)
106134

107135
.PHONY: markdown-equation-src-urls
108136

109-
110-
# Process Markdown files containing equations.
111-
#
112-
# This target processes Markdown files containing Markdown equation elements as follows:
113-
#
114-
# 1. Files containing equation elements are transformed to include HTML equation elements.
115-
# 2. SVG files are generated for each equation.
116-
# 3. Processed files are committed to source control.
117-
# 4. Resource URLs are inserted in HTML equation elements.
118-
# 5. Processed files are committed to source control.
119-
120-
markdown-equations: $(NODE_MODULES)
121-
$(REMARK) $(MARKDOWN_FILES) \
122-
$(REMARK_FLAGS) \
123-
$(REMARK_HTML_EQUATIONS_PLUGIN_FLAGS) \
124-
$(REMARK_SVG_EQUATIONS_PLUGIN_FLAGS) \
125-
$(REMARK_OUTPUT_FLAG) && \
126-
$(GIT_ADD) && \
127-
$(GIT_COMMIT_EQUATIONS) && \
128-
$(REMARK) $(MARKDOWN_FILES) \
129-
$(REMARK_FLAGS) \
130-
$(REMARK_EQUATION_SRC_URLS_PLUGIN_FLAGS) \
131-
$(REMARK_OUTPUT_FLAG) && \
132-
$(GIT_ADD) && \
133-
$(GIT_COMMIT_SRC_URLS)
134-
135-
.PHONY: markdown-equations
136-

0 commit comments

Comments
 (0)