File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed
Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ jobs:
1010 runs-on : ubuntu-18.04
1111 steps :
1212 - uses : actions/checkout@v2
13+ with :
14+ fetch-depth : 0
1315
1416 - uses : ammaraskar/sphinx-action@master
1517 with :
1618 docs-folder : " docs/"
19+ pre-build-command : " apt-get update -y && apt-get install -y git && pip install -e .[docs]"
1720
1821 - name : Deploy
1922 uses : peaceiris/actions-gh-pages@v3
Original file line number Diff line number Diff line change 1414#
1515import os
1616import sys
17- sys .path .insert (0 , os .path .abspath ('..' ))
1817
1918
2019# -- Project information -----------------------------------------------------
2120
2221project = 'RISC-V Model'
23- copyright = '2018, Stefan Wallentowitz'
22+ copyright = '2018-2020 , Stefan Wallentowitz'
2423author = 'Stefan Wallentowitz'
2524
26- from pkg_resources import get_distribution
27- release = get_distribution ('riscv-model' ).version
2825# for example take major/minor
29- version = '.' .join (release .split ('.' )[:2 ])
30-
26+ from riscvmodel import __version__ as release
3127
3228# -- General configuration ---------------------------------------------------
3329
7571# The theme to use for HTML and HTML Help pages. See the documentation for
7672# a list of builtin themes.
7773#
78- html_theme = 'sphinx_rtd_theme '
74+ html_theme = 'python_docs_theme '
7975
8076# Theme options are theme-specific and customize the look and feel of a theme
8177# further. For a list of options available for each theme, see the
Original file line number Diff line number Diff line change 11try :
22 from riscvmodel .version import version as __version__
33except ImportError :
4- __version__ = "unknown"
4+ __version__ = "unknown"
Original file line number Diff line number Diff line change 2424 },
2525 setup_requires = [
2626 'setuptools_scm' ,
27+ 'wheel'
2728 ],
29+ extras_require = {
30+ 'docs' : ['sphinx' , 'python-docs-theme' ]
31+ },
2832 classifiers = [
2933 "Programming Language :: Python :: 3" ,
3034 "License :: OSI Approved :: MIT License" ,
3135 "Operating System :: OS Independent" ,
3236 ],
33- )
37+ )
You can’t perform that action at this time.
0 commit comments