Skip to content

Commit 2f2945b

Browse files
committed
Fix make recipes
1 parent 5a5e3df commit 2f2945b

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

tools/make/lib/markdown/namespace_toc.mk

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@
1818

1919
# VARIABLES #
2020

21-
# Define the commit message for processing Markdown namespace table of contents:
22-
GIT_COMMIT_MESSAGE_TOCS ?= 'Process namespace table of contents'
23-
2421
# Define the commit message for adding packages to namespace table of contents:
25-
GIT_COMMIT_MESSAGE_SRC_URLS ?= 'Insert packages to namespace table of contents'
22+
GIT_COMMIT_MESSAGE_TOCS ?= 'Update namespace table of contents'
2623

27-
# Define the command to commit staged files after processing Markdown equations:
24+
# Define the command to commit staged files after updating namespace table of contents:
2825
GIT_COMMIT_TOCS ?= $(GIT_COMMIT) -m $(GIT_COMMIT_MESSAGE_TOCS)
2926

30-
# Define the command to commit staged files after inserting resource URLs:
31-
GIT_COMMIT_SRC_URLS ?= $(GIT_COMMIT) -m $(GIT_COMMIT_MESSAGE_SRC_URLS)
32-
3327
# Define the path to the remark configuration file:
3428
REMARK_TOC_CONF ?= $(CONFIG_DIR)/remark/.remarkrc.js
3529

@@ -51,26 +45,20 @@ REMARK_TOC_FLAGS ?= \
5145
--ignore-path $(REMARK_TOC_IGNORE)
5246

5347
# Define the remark output option:
54-
REMARK_EQUATIONS_OUTPUT_FLAG ?= --output
48+
REMARK_TOC_OUTPUT_FLAG ?= --output
5549

5650

5751
# TARGETS #
5852

59-
# Process Markdown files containing namespace table of contents.
60-
#
61-
# This target processes Markdown files containing Markdown equation elements as follows:
53+
# Update table of contents in Markdown files containing namespace table of contents comments.
6254
#
63-
# 1. Files containing equation comments are transformed to include equation elements.
64-
# 2. SVG files are generated for each equation.
65-
# 3. Processed files are committed to source control.
66-
# 4. Resource URLs are inserted in image equation elements.
67-
# 5. Processed files are committed to source control.
55+
# Processed files are committed to source control.
6856

6957
markdown-namespace-tocs: $(NODE_MODULES)
7058
$(QUIET) $(REMARK) $(MARKDOWN_FILES) \
7159
$(REMARK_TOC_FLAGS) \
7260
$(REMARK_TOC_PLUGIN_FLAGS) \
73-
$(REMARK_EQUATIONS_OUTPUT_FLAG) && \
61+
$(REMARK_TOC_OUTPUT_FLAG) && \
7462
$(GIT_ADD) && \
7563
$(GIT_COMMIT_TOCS)
7664

0 commit comments

Comments
 (0)