Skip to content

Commit b58ab8c

Browse files
Bordaammaraskar
authored andcommitted
add Sphinx Check (Lightning-AI#844)
* add sphinx bot * source * typo * Make a change to the docs (Lightning-AI#2) * Make a change to the docs * Introduce an error * Install git before building docs * Apply suggestions from code review Co-authored-by: Jirka Borovec <[email protected]> * Update docs/source/apex.rst * Update docs/source/apex.rst Co-authored-by: Ammar Askar <[email protected]>
1 parent 6ea0d85 commit b58ab8c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/docs-check.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Docs check"
2+
# https://github.com/marketplace/actions/sphinx-build
3+
4+
on:
5+
- pull_request
6+
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: ammaraskar/sphinx-action@master
13+
with:
14+
# git is requried to clone the docs theme
15+
pre-build-command: "apt-get update -y && apt-get install -y git"
16+
docs-folder: "docs/"
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

docs/source/apex.rst

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ TPU 16-bit
5757
5858
# turn on 16-bit
5959
trainer = Trainer(num_tpu_cores=8, precision=16)
60-

0 commit comments

Comments
 (0)