You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/make/lib/markdown/README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ The command supports the following environment variables:
58
58
59
59
-**MARKDOWN_ASSET_PATH**: a file path relative to the project root directory; e.g., `./README.md`.
60
60
61
+
* * *
62
+
63
+
### Namespace ToCs
64
+
61
65
#### markdown-namespace-tocs
62
66
63
67
Updates the table of contents of namespace Markdown files.
@@ -81,6 +85,26 @@ $ make markdown-namespace-tocs MARKDOWN_PATTERN='README.md' MARKDOWN_FILTER='.*/
81
85
82
86
This command is useful when wanting to glob for Markdown files (e.g., process all Markdown files for a particular package).
83
87
88
+
#### markdown-namespace-tocs-files
89
+
90
+
Updates the table of contents of a specified list of namespace Markdown files.
91
+
92
+
<!-- run-disable -->
93
+
94
+
```bash
95
+
$ make markdown-namespace-tocs-files FILES='/foo/foo.md /foo/bar.md'
96
+
```
97
+
98
+
The command supports the following environment variables:
99
+
100
+
-**FILES**: list of Markdown files.
101
+
102
+
This command is useful when wanting to process a list of Markdown files generated by some other command (e.g., a list of changed Markdown files obtained via `git diff`).
103
+
104
+
* * *
105
+
106
+
### Package URLs
107
+
84
108
#### markdown-pkg-urls
85
109
86
110
Updates Markdown files by resolving package identifiers to GitHub repository URLs.
# Updates the table of contents of a specified list of namespace Markdown files.
72
+
#
73
+
# ## Notes
74
+
#
75
+
# - This rule is useful when wanting to process a list of Markdown files generated by some other command (e.g., a list of changed Markdown files obtained via `git diff`).
76
+
# - In order to update table of contents, a namespace Markdown file must contain namespace table of contents comments.
77
+
#
78
+
# @param {string} FILES - list of files
79
+
#
80
+
# @example
81
+
# make markdown-namespace-tocs-files FILES='/foo/foo.md /foo/bar.md'
0 commit comments