Skip to content

Commit

Permalink
Merge pull request #148 from CohenLabPrinceton/docs_hardware
Browse files Browse the repository at this point in the history
Docs hardware
  • Loading branch information
mschottdorf authored Jan 9, 2022
2 parents 692f25a + 1181ce1 commit 72610d4
Show file tree
Hide file tree
Showing 190 changed files with 1,169 additions and 362 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ dist
*.svg

sandbox/Untitled.ipynb
/_docs/assets/cad/PEEP-expiratory-valve/
/_docs/assets/DXFs/
/_docs/assets/pcbs/
/_docs/assets/solidworks/
/_docs/assets/STLs/
/_docs/assets/README.md
/docs/cad/PEEP-expiratory-valve/
/docs/DXFs/
/docs/pcbs/
/docs/solidworks/
/docs/STLs/
32 changes: 32 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
# golang: "1.17"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: _docs/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
formats:
- pdf
- epub

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: requirements_docs.txt
- method: pip
path: .
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@ env:

install:
- pip install -U pip
- pip install -U pytest
- pip install -U pytest-cov
- pip install -U pylint
- pip install -U coveralls
- pip install -U numpy~=1.18.4
- pip install -U PySide2==5.11.*
- pip install -U pyqtgraph>=0.11.0rc0
- pip install -U scipy~=1.4.1
- pip install -r requirements.txt
- pip install -r requirements_tests.txt
- pip install -e .
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset"
- sleep 3
Expand Down
Binary file added _docs/assets/images/assembly/image1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image100.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image101.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image102.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image103.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image104.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image105.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image106.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image107.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image108.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image109.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image110.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image111.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image112.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image113.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image114.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image115.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image116.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image117.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image118.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image119.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image120.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _docs/assets/images/assembly/image121.jpg
Binary file added _docs/assets/images/assembly/image122.jpg
Binary file added _docs/assets/images/assembly/image123.jpg
Binary file added _docs/assets/images/assembly/image124.jpg
Binary file added _docs/assets/images/assembly/image125.jpg
Binary file added _docs/assets/images/assembly/image126.jpg
Binary file added _docs/assets/images/assembly/image127.jpg
Binary file added _docs/assets/images/assembly/image128.png
Binary file added _docs/assets/images/assembly/image129.png
Binary file added _docs/assets/images/assembly/image13.jpg
Binary file added _docs/assets/images/assembly/image130.png
Binary file added _docs/assets/images/assembly/image131.png
Binary file added _docs/assets/images/assembly/image132.png
Binary file added _docs/assets/images/assembly/image133.png
Binary file added _docs/assets/images/assembly/image134.png
Binary file added _docs/assets/images/assembly/image135.png
Binary file added _docs/assets/images/assembly/image14.jpg
Binary file added _docs/assets/images/assembly/image15.jpg
Binary file added _docs/assets/images/assembly/image16.jpg
Binary file added _docs/assets/images/assembly/image17.jpg
Binary file added _docs/assets/images/assembly/image18.jpg
Binary file added _docs/assets/images/assembly/image19.jpg
Binary file added _docs/assets/images/assembly/image2.jpg
Binary file added _docs/assets/images/assembly/image20.jpg
Binary file added _docs/assets/images/assembly/image21.jpg
Binary file added _docs/assets/images/assembly/image22.jpg
Binary file added _docs/assets/images/assembly/image23.jpg
Binary file added _docs/assets/images/assembly/image24.jpg
Binary file added _docs/assets/images/assembly/image25.jpg
Binary file added _docs/assets/images/assembly/image26.jpg
Binary file added _docs/assets/images/assembly/image27.jpg
Binary file added _docs/assets/images/assembly/image28.jpg
Binary file added _docs/assets/images/assembly/image29.jpg
Binary file added _docs/assets/images/assembly/image3.jpg
Binary file added _docs/assets/images/assembly/image30.jpg
Binary file added _docs/assets/images/assembly/image31.jpg
Binary file added _docs/assets/images/assembly/image32.jpg
Binary file added _docs/assets/images/assembly/image33.jpg
Binary file added _docs/assets/images/assembly/image34.jpg
Binary file added _docs/assets/images/assembly/image35.jpg
Binary file added _docs/assets/images/assembly/image36.jpg
Binary file added _docs/assets/images/assembly/image37.jpg
Binary file added _docs/assets/images/assembly/image38.jpg
Binary file added _docs/assets/images/assembly/image39.jpg
Binary file added _docs/assets/images/assembly/image4.jpg
Binary file added _docs/assets/images/assembly/image40.jpg
Binary file added _docs/assets/images/assembly/image41.jpg
Binary file added _docs/assets/images/assembly/image42.jpg
Binary file added _docs/assets/images/assembly/image43.jpg
Binary file added _docs/assets/images/assembly/image44.jpg
Binary file added _docs/assets/images/assembly/image45.jpg
Binary file added _docs/assets/images/assembly/image46.jpg
Binary file added _docs/assets/images/assembly/image47.jpg
Binary file added _docs/assets/images/assembly/image48.jpg
Binary file added _docs/assets/images/assembly/image49.jpg
Binary file added _docs/assets/images/assembly/image5.jpg
Binary file added _docs/assets/images/assembly/image50.jpg
Binary file added _docs/assets/images/assembly/image51.jpg
Binary file added _docs/assets/images/assembly/image52.jpg
Binary file added _docs/assets/images/assembly/image53.jpg
Binary file added _docs/assets/images/assembly/image54.jpg
Binary file added _docs/assets/images/assembly/image55.jpg
Binary file added _docs/assets/images/assembly/image56.jpg
Binary file added _docs/assets/images/assembly/image57.jpg
Binary file added _docs/assets/images/assembly/image58.png
Binary file added _docs/assets/images/assembly/image59.jpg
Binary file added _docs/assets/images/assembly/image6.jpg
Binary file added _docs/assets/images/assembly/image60.jpg
Binary file added _docs/assets/images/assembly/image61.jpg
Binary file added _docs/assets/images/assembly/image62.jpg
Binary file added _docs/assets/images/assembly/image63.jpg
Binary file added _docs/assets/images/assembly/image64.jpg
Binary file added _docs/assets/images/assembly/image65.jpg
Binary file added _docs/assets/images/assembly/image66.jpg
Binary file added _docs/assets/images/assembly/image67.jpg
Binary file added _docs/assets/images/assembly/image68.jpg
Binary file added _docs/assets/images/assembly/image69.jpg
Binary file added _docs/assets/images/assembly/image7.jpg
Binary file added _docs/assets/images/assembly/image70.jpg
Binary file added _docs/assets/images/assembly/image71.jpg
Binary file added _docs/assets/images/assembly/image72.jpg
Binary file added _docs/assets/images/assembly/image73.jpg
Binary file added _docs/assets/images/assembly/image74.jpg
Binary file added _docs/assets/images/assembly/image75.jpg
Binary file added _docs/assets/images/assembly/image76.jpg
Binary file added _docs/assets/images/assembly/image77.jpg
Binary file added _docs/assets/images/assembly/image78.jpg
Binary file added _docs/assets/images/assembly/image79.jpg
Binary file added _docs/assets/images/assembly/image8.jpg
Binary file added _docs/assets/images/assembly/image80.jpg
Binary file added _docs/assets/images/assembly/image81.jpg
Binary file added _docs/assets/images/assembly/image82.jpg
Binary file added _docs/assets/images/assembly/image83.jpg
Binary file added _docs/assets/images/assembly/image84.jpg
Binary file added _docs/assets/images/assembly/image85.jpg
Binary file added _docs/assets/images/assembly/image86.jpg
Binary file added _docs/assets/images/assembly/image87.jpg
Binary file added _docs/assets/images/assembly/image88.jpg
Binary file added _docs/assets/images/assembly/image89.jpg
Binary file added _docs/assets/images/assembly/image9.jpg
Binary file added _docs/assets/images/assembly/image90.jpg
Binary file added _docs/assets/images/assembly/image91.jpg
Binary file added _docs/assets/images/assembly/image92.jpg
Binary file added _docs/assets/images/assembly/image93.jpg
Binary file added _docs/assets/images/assembly/image94.jpg
Binary file added _docs/assets/images/assembly/image95.jpg
Binary file added _docs/assets/images/assembly/image96.jpg
Binary file added _docs/assets/images/assembly/image97.jpg
Binary file added _docs/assets/images/assembly/image98.jpg
Binary file added _docs/assets/images/assembly/image99.jpg
8 changes: 0 additions & 8 deletions _docs/bom.rst

This file was deleted.

30 changes: 0 additions & 30 deletions _docs/common.rst

This file was deleted.

15 changes: 14 additions & 1 deletion _docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,23 @@
import os
import sys
import mock
from pathlib import Path
import shutil
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../pvp'))
sys.path.insert(0, os.path.abspath('.'))

# copy hardware assets at build time
root_assets = Path('../assets').resolve()
docs_assets = Path('./assets').resolve()
for asset_file in root_assets.glob('**/*'):
if asset_file.is_dir():
continue
new_file = docs_assets / asset_file.relative_to(root_assets)
new_file.parent.mkdir(parents=True, exist_ok=True)
shutil.copy(str(asset_file), str(new_file))


sys.modules['Shiboken'] = mock.Mock()
sys.modules['PySide2.QtMultimedia'] = mock.Mock()

Expand Down Expand Up @@ -50,7 +63,7 @@
# 'sphinx_automodapi.automodapi',
'sphinxcontrib.napoleon', # parse google style docstrings
'autodocsumm',
'recommonmark', # support markdown
'myst_parser', # support markdown
'sphinx_sass' # support sass/scss
]

Expand Down
3 changes: 0 additions & 3 deletions _docs/contributing.rst

This file was deleted.

120 changes: 0 additions & 120 deletions _docs/example_markdown.md

This file was deleted.

33 changes: 0 additions & 33 deletions _docs/gui.widgets.rst

This file was deleted.

Loading

0 comments on commit 72610d4

Please sign in to comment.