-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs to use jinja template for component doc links
- Loading branch information
1 parent
9c61238
commit e75b6bc
Showing
3 changed files
with
74 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:: {{item.img}} | ||
: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:: {{item.img}} | ||
: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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters