Skip to content

Commit

Permalink
Documentation and installation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mds-dwa committed May 14, 2019
1 parent f25c5ba commit 0004ca2
Show file tree
Hide file tree
Showing 32 changed files with 29 additions and 294 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -108,6 +108,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/api/

# PyBuilder
target/
Expand Down
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -109,13 +109,11 @@ information on this requirement.
3. Build a local copy
```
python setup.py install --user
pip install -r docs/requirements.txt
```
4. Write code, following the [style guide](docs/contributing.md).
5. Test it
6. Update any manual documentation pages (like this one) and run sphinx-apidoc with the following command:
```
sphinx-apidoc -o ./docs/api/ -e -P -f ./usdmanager/
```
6. Update any manual documentation pages (like this one)
7. Test that the documentation builds without errors with:
```
sphinx-build -b html docs/ docs/_build
Expand Down
71 changes: 0 additions & 71 deletions docs/INSTALL.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/modules.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.constants.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.file_dialog.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.file_status.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.find_dialog.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.highlighter.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.highlighters.lua.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.highlighters.python.rst

This file was deleted.

20 changes: 0 additions & 20 deletions docs/api/usdmanager.highlighters.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.highlighters.usd.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.highlighters.xml.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.images_rc.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.include_panel.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.linenumbers.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.plugins.images_rc.rst

This file was deleted.

17 changes: 0 additions & 17 deletions docs/api/usdmanager.plugins.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.preferences_dialog.rst

This file was deleted.

35 changes: 0 additions & 35 deletions docs/api/usdmanager.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.utils.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/api/usdmanager.version.rst

This file was deleted.

22 changes: 0 additions & 22 deletions docs/codingStyle.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/conf.py
Expand Up @@ -32,6 +32,7 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinxcontrib.apidoc',
]

autodoc_mock_imports = [
Expand Down Expand Up @@ -68,6 +69,12 @@
# The full version, including alpha/beta/rc tags.
release = __version__

apidoc_module_dir = '../usdmanager'
apidoc_output_dir = 'api'
apidoc_separate_modules = True
apidoc_toc_file = False
apidoc_extra_args = ['-P', '-f']

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
Expand Down
6 changes: 2 additions & 4 deletions docs/contributing.md
Expand Up @@ -38,13 +38,11 @@ one. Each commit should pass tests without requiring further commits.
3. Build a local copy
```
python setup.py install --user
pip install -r docs/requirements.txt
```
4. Write code, following the [style guide](#style-guide).
5. Test it
6. Update any manual documentation pages (like this one) and run sphinx-apidoc with the following command:
```
sphinx-apidoc -o ./docs/api/ -e -P -f ./usdmanager/
```
6. Update any manual documentation pages (like this one)
7. Test that the documentation builds without errors with:
```
sphinx-build -b html docs/ docs/_build
Expand Down
Binary file removed docs/icon.png
Binary file not shown.
Binary file removed docs/logo.png
Binary file not shown.
Binary file removed docs/logo_512.png
Binary file not shown.
3 changes: 3 additions & 0 deletions docs/requirements.txt
@@ -0,0 +1,3 @@
recommonmark>=0.5.0
Sphinx>=1.8.5
sphinxcontrib-apidoc>=0.3.0
14 changes: 14 additions & 0 deletions readthedocs.yaml
@@ -0,0 +1,14 @@
# .readthedocs.yml
# Use of v1 over v2 is intentional for maximum rtd compatibility

formats: [] # Don't build htmlzip, pdf or epub

build:
image: latest

requirements_file: docs/requirements.txt

python:
version: 2.7
setup_py_install: true
pip_install: false
2 changes: 0 additions & 2 deletions setup.py
Expand Up @@ -68,8 +68,6 @@
],
setup_requires=[
"setuptools>=2.2",
"Sphinx>=1.8.5",
"recommonmark>=0.5.0",
],
tests_require=[],
dependency_links=[],
Expand Down

0 comments on commit 0004ca2

Please sign in to comment.