Skip to content

Commit bd2df2a

Browse files
Add GitHub action for doc build tests
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent e921052 commit bd2df2a

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/docs-ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [3.7]
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Give permission to run scripts
24+
run: chmod +x ./docs/scripts/doc8_style_check.sh
25+
26+
- name: Install Dependencies
27+
run: pip install -e .[docs]
28+
29+
- name: Check Sphinx Documentation build minimally
30+
working-directory: ./docs
31+
run: sphinx-build -E -W source build
32+
33+
- name: Check for documentation style errors
34+
working-directory: ./docs
35+
run: ./scripts/doc8_style_check.sh
36+
37+

docs/source/skeleton/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# Rst docs - https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html
33
#
44
# 1. Place docs in folders under source for different sections
5-
# 2. Link them by adding individual index files in each section
5+
# 2. Link them by adding individual index files in each section
66
# to the main index, and then files for each section to their
77
# respective index files.
88
# 3. Use `.. include` statements to include other .rst files
99
# or part of them, or use hyperlinks to a section of the docs,
1010
# to get rid of repetition.
1111
# https://docutils.sourceforge.io/docs/ref/rst/directives.html#including-an-external-document-fragment
12-
#
12+
#
1313
# Note: Replace these guide/placeholder docs
1414

1515
.. include:: ../../../README.rst

0 commit comments

Comments
 (0)