Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81cd8d6

Browse files
authored
Build and host docs via github action (open-telemetry#167)
1 parent e14076d commit 81cd8d6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-python@v1
14+
- name: Build docs
15+
run: |
16+
pip install --upgrade tox
17+
tox -e docs
18+
- name: Publish to gh-pages
19+
uses: JamesIves/[email protected]
20+
env:
21+
ACCESS_TOKEN: ${{ secrets.DocsPushToken }}
22+
BRANCH: gh-pages
23+
FOLDER: docs/_build/html/

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"sphinx.ext.viewcode",
4343
# Link to other sphinx docs
4444
"sphinx.ext.intersphinx",
45+
# Add a .nojekyll file to the generated HTML docs
46+
# https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing
47+
"sphinx.ext.githubpages",
4548
]
4649

4750
intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}

0 commit comments

Comments
 (0)