未验证 提交 53fc7170 编写于 作者: G Gregor Hartmann 提交者: GitHub

Add CI check to verify MkDocs menu items (#3367)

上级 c4aaa9e0
......@@ -240,3 +240,19 @@ jobs:
./tools/travis/run-luacheck-${{ matrix.os }}.sh
shell: bash
doc_check:
strategy:
fail-fast: false
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
with:
submodules: false
- name: all_modules_linked
run: ./tools/check_docs_module_linkage.sh
shell: bash
#!/bin/bash
# get all linked module docs for mkdocs.yml
grep "modules/" mkdocs.yml | sed "s/ *- .*: *'//" | sed "s/'//" | sort > /tmp/doc
# get all module and lua_module *.md files
find docs/modules/ docs/lua-modules/ -name "*.md" | sed "sxdocs/xx" | sort > /tmp/files
diff /tmp/doc /tmp/files && echo "all *.md files are reflected in mkdocs.yml"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册