Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Pytorch-Encoding
Commits
229dde7e
Unverified
Commit
229dde7e
authored
Apr 06, 2020
by
Hang Zhang
Committed by
GitHub
Apr 06, 2020
Browse files
PR Doc build (#249)
parent
e312950e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
6 deletions
+58
-6
.github/workflows/build_sphix_master.yml
.github/workflows/build_sphix_master.yml
+51
-0
README.md
README.md
+1
-1
docs/requirements.txt
docs/requirements.txt
+1
-1
docs/source/conf.py
docs/source/conf.py
+3
-3
setup.py
setup.py
+2
-1
No files found.
.github/workflows/build_sphix_master.yml
0 → 100644
View file @
229dde7e
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name
:
Build Docs
on
:
push
:
branches
:
[
master
]
jobs
:
docs
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
seanmiddleditch/gha-setup-ninja@master
-
name
:
Set up Python
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install numpy -I
pip install pytest torch
-
name
:
Install package
run
:
|
pip install -e .
-
name
:
Install Sphix Dependencies
run
:
|
cd docs/
pip install -r requirements.txt
-
name
:
Build Sphinx docs
run
:
|
cd docs/
make html
touch build/html/.nojekyll
# https://github.com/marketplace/actions/github-pages
-
name
:
Deploy
if
:
success()
uses
:
crazy-max/ghaction-github-pages@master
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
build_dir
:
docs/build/html/
target_branch
:
gh-pages
README.md
View file @
229dde7e
...
...
@@ -2,7 +2,7 @@
[

](https://pypi.org/project/torch-encoding/#history)
[

](https://github.com/zhanghang1989/PyTorch-Encoding/actions)
[

](http://pepy.tech/project/torch-encoding)
[

](https://github.com/zhanghang1989/PyTorch-Encoding/actions)
# PyTorch-Encoding
created by
[
Hang Zhang
](
http://hangzh.com/
)
...
...
docs/requirements.txt
View file @
229dde7e
sphinx
sphinxcontrib-googleanalytics
-e git://github.com/snide/
sphinx
_
rtd
_theme.git#egg=sphinx_rtd_
theme
sphinx
-
rtd
-
theme
docs/source/conf.py
View file @
229dde7e
...
...
@@ -43,13 +43,13 @@ extensions = [
'sphinx.ext.mathjax'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.viewcode'
,
'sphinxcontrib.googleanalytics'
,
#
'sphinxcontrib.googleanalytics',
]
napoleon_use_ivar
=
True
googleanalytics_id
=
'UA-54746507-1'
googleanalytics_enabled
=
True
#
googleanalytics_id = 'UA-54746507-1'
#
googleanalytics_enabled = True
# Add any paths that contain templates here, relative to this directory.
templates_path
=
[
'_templates'
]
...
...
setup.py
View file @
229dde7e
...
...
@@ -62,7 +62,8 @@ requirements = [
'numpy'
,
'tqdm'
,
'nose'
,
'torch>=0.4.0'
,
'torch>=1.4.0'
,
'torchvision>=0.5.0'
,
'Pillow'
,
'scipy'
,
'requests'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment