Skip to content

Commit 1ab4508

Browse files
authored
Merge pull request #35 from shenxianpeng/mkdocs
Update Mkdocs
2 parents 5fba61d + 96efb40 commit 1ab4508

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/workflows/mkdocs-deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: MkDocs Deploy
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.x
18+
- run: pip install -r docs/requirements.txt
19+
- run: |
20+
git config user.name 'github-actions'
21+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
22+
mkdocs gh-deploy --force

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## How to build the docs
2+
23
From the root directory of the repository, do the following to steps
34

45
1. Install docs' dependencies

docs/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,3 @@
2121
start="<!--footer-start-->"
2222
end="<!--footer-end-->"
2323
%}
24-
{%
25-
include-markdown "README.md"
26-
%}

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_name: C/C++ Linter Action's Docs
1+
site_name: C/C++ Linter Action
22
site_description: "Developer documentation from sources."
33
site_url: "https://shenxianpeng.github.io/cpp-linter-action"
44
repo_url: "https://github.com/shenxianpeng/cpp-linter-action"

0 commit comments

Comments
 (0)