Skip to content

Commit b02b7fe

Browse files
authored
completing the switch to github pages for docs (#37)
* upadte docs badge in README * try to fix mkdocs-deploy CI * docs aren't only found in the docs folder The python sources have the developer docs embedded within comments. * temporarily allow Ci to run on any branch * also be sure to install docs requirements * revert CI to only run on master branch This is because I verified it works now * Update .github/workflows/mkdocs-deploy.yml
1 parent 1ab4508 commit b02b7fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/mkdocs-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: MkDocs Deploy
33
on:
44
push:
55
branches: [master]
6-
paths:
7-
- 'docs/**'
86
workflow_dispatch:
97

108
jobs:
@@ -15,8 +13,10 @@ jobs:
1513
- uses: actions/setup-python@v2
1614
with:
1715
python-version: 3.x
18-
- run: pip install -r docs/requirements.txt
19-
- run: |
16+
- name: Install python action for doc extraction
17+
run: pip install . -r docs/requirements.txt
18+
- name: Build docs and deploy to gh-pages
19+
run: |
2020
git config user.name 'github-actions'
2121
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
2222
mkdocs gh-deploy --force

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/shenxianpeng/cpp-linter-action)
99
[![cpp-linter](https://github.com/shenxianpeng/cpp-linter-action/actions/workflows/cpp-linter.yml/badge.svg)](https://github.com/shenxianpeng/cpp-linter-action/actions/workflows/cpp-linter.yml)
1010
![GitHub](https://img.shields.io/github/license/shenxianpeng/cpp-linter-action?label=license)
11-
[![Dev Docs Status](https://readthedocs.org/projects/cpp-linter-action/badge/?version=latest)](https://cpp-linter-action.readthedocs.io/en/latest/?badge=latest)
11+
[![MkDocs Deploy](https://github.com/shenxianpeng/cpp-linter-action/actions/workflows/mkdocs-deploy.yml/badge.svg)](https://github.com/shenxianpeng/cpp-linter-action/actions/workflows/mkdocs-deploy.yml)
1212
[![open repo in gitpod](https://img.shields.io/badge/Gitpod-Use%20Online%20IDE-B16C04?logo=gitpod)](https://gitpod.io/#https://github.com/shenxianpeng/cpp-linter-action)
1313

1414
A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of thread comments and/or annotations.

0 commit comments

Comments
 (0)