Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 55 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This gitignore file consists of 2 parts:
# * The standard Python .gitignore rules from GitHub
# * custom ignore rules for the labscript suite.
#
# These should be kept separate so that the generic rules can be updated with a
# copy/paste without having to worry about whether we are removing custom rules

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -20,6 +27,7 @@ parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -38,14 +46,17 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -55,6 +66,7 @@ coverage.xml
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -67,16 +79,34 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
.python-version

# celery beat schedule file
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py
Expand All @@ -102,6 +132,21 @@ venv.bak/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

#
# Custom labscript suite .gitignore rules start below
#

# conda build results
conda_build
Expand All @@ -111,4 +156,12 @@ conda_packages
*.out
*.log
*.aux
*.toc
*.toc

# Editors
.vscode/

# Sphinx documentation
docs/html/
docs/source/_build/
docs/source/components.rst
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

63 changes: 63 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* Add space between collapsible details HTML tags */
details {
margin-bottom: 1em;
}

/* Darker pygment highlighing of console input/output */
.highlight .go {
color: #404040;
}

/* White captions in sidebar */
.wy-nav-side p.caption {
color: #f5f5f5;
}

/* labscript blue, alpha = 83% */
.wy-side-nav-search {
background: #2946bbd3;
}

.wy-nav-top {
background: #2946bbd3;
}

/* labscript green, alpha = 75% */
.rst-content .note .admonition-title {
background: #00804fbf;
}

/* labscript green, alpha = 25% */
.rst-content .note {
background: #00804f3f;
}

/* labscript red, alpha = 75% */
.rst-content .warning .admonition-title {
background: #bc294cbf
}

/* labscript red, alpha = 25% */
.rst-content .warning {
background: #bc294c3b;
}

/* Elevation
*
* Style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:
*
* https://github.com/material-components/material-components-web
* https://material-components-web.appspot.com/elevation.html
*/

.rst-content img.screenshot {
border: none;
/* MD Elevation 8 */
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
margin-bottom: 24px;
}

img.labscript-suite-icon {
min-width: 32px;
}
47 changes: 47 additions & 0 deletions docs/source/_templates/components.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% if current_project != 'the labscript suite' %}
.. toctree::
:maxdepth: 2
:hidden:

the labscript suite <{{intersphinx_mapping['labscript-suite'][0]}}>

{% endif %}
*labscript suite* components
============================

The *labscript suite* is modular by design, and is comprised of:

.. list-table:: Python libraries
:widths: 10 90
:header-rows: 0

{% for prog, item in programs.items() if item.type == 'lib' %}
* - .. image:: {{img_path}}/{{item.icon}}
:target: {{intersphinx_mapping['%s' | format(prog)][0]}}
:class: labscript-suite-icon
- |{{prog}}|_ --- {{item.desc}}
{% endfor %}

.. list-table:: Graphical applications
:widths: 10 90
:header-rows: 0

{% for prog, item in programs.items() if item.type == 'gui' %}
* - .. image:: {{img_path}}/{{item.icon}}
:target: {{intersphinx_mapping['%s' | format(prog)][0]}}
:class: labscript-suite-icon
- |{{prog}}|_ --- {{item.desc}}
{% endfor %}

.. toctree::
:maxdepth: 2
:hidden:

{% for prog in programs|sort if prog != current_project %}
{{prog}} <{{intersphinx_mapping['%s' | format(prog)][0]}}>
{% endfor %}

{% for prog in programs %}
.. |{{prog}}| replace:: **{{prog}}**
.. _{{prog}}: {{intersphinx_mapping['%s' | format(prog)][0]}}
{% endfor %}
2 changes: 1 addition & 1 deletion docs/source/api_reference/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

API Reference
========
=============

.. toctree::
:maxdepth: 2
Expand Down
Loading