Skip to content

Commit a336d46

Browse files
committed
Fix CLI doc generation
1 parent 29b4d40 commit a336d46

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ vendor/autoload.php: composer.lock composer.json
7474

7575
docs/CLI.md: $(CMDS)
7676
@rm -f $@
77-
@echo "<!-- AUTOMATICALLY GENERATED -->" >> $@
78-
@echo "<!-- REGENERATE VIA: make $@ -->" >> $@
77+
@echo "---" >> $@
78+
@echo "layout: page" >> $@
79+
@echo "title: Moodle Plugin CI Commands" >> $@
80+
@echo "---" >> $@
7981
@echo "" >> $@
80-
@php bin/moodle-plugin-ci list --format md > $@
82+
@echo "<!-- AUTOMATICALLY GENERATED VIA: make $@ -->" >> $@
83+
@php bin/moodle-plugin-ci list --format md | sed 1,2d >> $@
8184
@echo "REGENERATED $@"

docs/CLI.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
Moodle Plugin CI @package_version@
2-
==================================
1+
---
2+
layout: page
3+
title: Moodle Plugin CI Commands
4+
---
5+
6+
<!-- AUTOMATICALLY GENERATED VIA: make docs/CLI.md -->
37

48
* [`add-config`](#add-config)
59
* [`add-plugin`](#add-plugin)
@@ -1989,4 +1993,4 @@ Do not ask any interactive question
19891993
* Accept value: no
19901994
* Is value required: no
19911995
* Is multiple: no
1992-
* Default: `false`
1996+
* Default: `false`

0 commit comments

Comments
 (0)