Skip to content

Commit fc003c8

Browse files
authored
Merge pull request #264 from giancastro/master
Host Xarray-spatial documentation on Azure Storage
2 parents 5d32620 + 37866d4 commit fc003c8

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.github/workflows/docs-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Docs To Azure Blob Storage
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
upload:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-dotnet@v1
11+
with:
12+
dotnet-version: '3.0.100'
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade pip
16+
pip install setuptools wheel sphinx sphinx_rtd_theme
17+
- name: Build
18+
run: |
19+
pip install .
20+
make -C docs html
21+
- uses: lauchacarro/[email protected]
22+
with:
23+
enabled-static-website: 'true'
24+
folder: 'docs/build/html'
25+
index-document: 'index.html'
26+
connection-string: ${{ secrets.CONNECTION_STRING }}

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line.
55
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
6+
SPHINXBUILD = python -m sphinx
77
SOURCEDIR = source
88
BUILDDIR = build
99

docs/source/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#
1515
import os
1616
import sys
17-
import xrspatial
18-
1917
sys.path.insert(0, os.path.abspath('../..'))
2018

2119
# -- Project information -----------------------------------------------------
@@ -24,6 +22,7 @@
2422
copyright = u'2020, Brendan Collins'
2523
author = u'Brendan Collins'
2624

25+
import xrspatial
2726
version = release = xrspatial.__version__
2827

2928
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)