File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,20 @@ In this example:
252
252
* "support" -> "body" uses a remote Markdown file as the section contents. This can also be a local file path, or a string.
253
253
* "show_powered_by" shows or hides the Powered By mention at the end of the readme.
254
254
255
+ For sections, "pre", "body" and "post" are supported. Example:
256
+ ```
257
+ "support": {
258
+ "pre": "highlight.md",
259
+ "body": "https://raw.githubusercontent.com/runcommand/runcommand-theme/master/bin/readme-partials/support-open-source.md",
260
+ "post": "This is additional text to show after main body content."
261
+ },
262
+ ```
263
+ In this example:
264
+
265
+ * "pre" content is pulled from local highlight.md file.
266
+ * "body" content is pulled from remote URL.
267
+ * "post" is a string.
268
+
255
269
** OPTIONS**
256
270
257
271
<dir>
Original file line number Diff line number Diff line change @@ -208,6 +208,20 @@ public function package( $args, $assoc_args ) {
208
208
* * "support" -> "body" uses a remote Markdown file as the section contents. This can also be a local file path, or a string.
209
209
* * "show_powered_by" shows or hides the Powered By mention at the end of the readme.
210
210
*
211
+ * For sections, "pre", "body" and "post" are supported. Example:
212
+ * ```
213
+ * "support": {
214
+ * "pre": "highlight.md",
215
+ * "body": "https://raw.githubusercontent.com/runcommand/runcommand-theme/master/bin/readme-partials/support-open-source.md",
216
+ * "post": "This is additional text to show after main body content."
217
+ * },
218
+ * ```
219
+ * In this example:
220
+ *
221
+ * * "pre" content is pulled from local highlight.md file.
222
+ * * "body" content is pulled from remote URL.
223
+ * * "post" is a string.
224
+ *
211
225
* ## OPTIONS
212
226
*
213
227
* <dir>
You can’t perform that action at this time.
0 commit comments