Skip to content

Commit e99a74b

Browse files
authored
Merge pull request #82 from dihm/myst_docs
Update RTD builds
2 parents 35ce093 + aa5f2c4 commit e99a74b

File tree

11 files changed

+38
-61
lines changed

11 files changed

+38
-61
lines changed

docs/source/archive.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## BitBucket archive
1+
# BitBucket archive
22

33
In April–May 2020 the _labscript suite_ code base was migrated from BitBucket to GitHub. All commit history and issues was preserved, however some repository metadata (such as pull request discussions) could not be migrated directly. As such, we have created an archived copy of everything that was on BitBucket. This includes:
44

@@ -10,15 +10,15 @@ In April–May 2020 the _labscript suite_ code base was migrated from BitBucket
1010
This archive can be found at [bitbucket-archive.labscriptsuite.org](https://bitbucket-archive.labscriptsuite.org/) (this page can take some time to load for the first time). Copies of every public fork of our repositories are at [github.com/labscript-suite-bitbucket-archive](https://github.com/labscript-suite-bitbucket-archive). As this is an archive, we will not be transferring ownership of these repositories back to their original owners. However, should you wish to continue development on one of those repositories you can fork it into your own account through the GitHub web interface. Should you have uncommitted changes (or changes made after 1st February, 2020) that you wish to have archived, please contact us to discuss the best approach to including these. Please note that we are not recommending continuing development in such forks long term, due to the changes in package structure outlined above.
1111

1212

13-
### What to do if you had custom code in a fork on BitBucket
13+
## What to do if you had custom code in a fork on BitBucket
1414

15-
labscript experiment scripts and lyse analysis scripts can be copied or moved to the new labscriptlib/analysislib folders. We deem these user-side code as they are not within the codebase of the labcript suite programs, and thus do not require a [developer (editable) installation](../installation).
15+
labscript experiment scripts and lyse analysis scripts can be copied or moved to the new labscriptlib/analysislib folders. We deem these user-side code as they are not within the codebase of the labcript suite programs, and thus do not require a [developer (editable) installation](installation/index.rst).
1616

17-
Customisations of the labscript suite will need to be reintegrated into the new package structure, using a developer installation. For example, to include your own custom labscript devices, you should undertake the developer installation procedure for the [labscript-devices](https://github.com/labscript-suite/labscript-devices) repository, and copy your custom or modified device files into the labscript_devices folder alongside the existing device files. Please also consider contributing these back to the main project by pushing them to your fork and [issuing a pull request](../contributing/#pull-requests).
17+
Customisations of the labscript suite will need to be reintegrated into the new package structure, using a developer installation. For example, to include your own custom labscript devices, you should undertake the developer installation procedure for the [labscript-devices](https://github.com/labscript-suite/labscript-devices) repository, and copy your custom or modified device files into the labscript_devices folder alongside the existing device files. Please also consider contributing these back to the main project by pushing them to your fork and [issuing a pull request](contributing.md/#pull-requests).
1818

1919
The procedure for migrating customisations of other components will depend on how up-to-date your fork is. Please open a thread on the [mailing list](http://groups.google.com/group/labscriptsuite) to discuss with us how to migrate your custom features and/or how to contribute them back to the base _labscript suite_ repositories.
2020

2121

22-
### Migrating other repositories to GitHub
22+
## Migrating other repositories to GitHub
2323

2424
Should you have other repositories on BitBucket such as labscriptlib, analysislib, userlib, or labconfig (or any project unrelated to the _labscript suite_) we strongly suggest using the tools we developed to migrate the _labscript suite_ to GitHub. These are [philipstarkey/bitbucket-hg-exporter](https://github.com/philipstarkey/bitbucket-hg-exporter) and [chrisjbillington/hg-export-tool](https://github.com/chrisjbillington/hg-export-tool) which can be used together. See the documentation of those projects for further details.

docs/source/building_docs/docs_comitting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The main difference is that documentation changes necessitate checking the read
1111
Making a PR
1212
-----------
1313

14-
The general steps for creating the PR are outlined in :doc:`here <contributing>`.
14+
The general steps for creating the PR are outlined in :doc:`here </contributing>`.
1515
When making PRs with documentation changes, a few extra checks are required.
1616
In particular, it is a good idea to locally build the documentation as described :doc:`here <docs_build>`.
1717
If you cannot build locally, the docs will be built automatically for your PR by Read the Docs and can be viewed there (described below).

docs/source/changes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Recent changes to the _labscript suite_
1+
# Recent changes to the _labscript suite_
22

33
Upon migrating the code base to GitHub and publishing distributions on PyPI in April–May 2020, existing users should be aware of the following recent changes.
44

5-
### Profile directories
5+
## Profile directories
66

77
The _labscript suite_ profile directory, containing application configurations, logs, and user-side code, is now located by default in the current user’s home directory, e.g. for a local user named `wkheisenberg` this is:
88

@@ -24,12 +24,12 @@ A typical structure of the profile directory is:
2424
└── user_devices/
2525
```
2626

27-
This structure is created by calling the command `labscript-profile-create` in a terminal after installing `labscript-utils` (per the [installation instructions](../installation)).
27+
This structure is created by calling the command `labscript-profile-create` in a terminal after installing `labscript-utils` (per the [installation instructions](installation/index.rst)).
2828

2929
_Note:_ As of [labscript-suite/labscript-utils#37](https://github.com/labscript-suite/labscript-utils/issues/37) an editable installation can be located within the labscript-suite profile directory.
3030

3131

32-
### Secure communication
32+
## Secure communication
3333

3434
Interprocess communication between components of the *labscript suite* is based on the [ZeroMQ](https://zeromq.org) (ZMQ) messaging protocol. We have supported secure interprocess communication via encrypted ZMQ messaging since February 2019 (labscript-utils 2.11.0).
3535

@@ -62,17 +62,17 @@ allow_insecure = True
6262
* There is an outstanding issue with the ZMQ Python bindings on Windows ([zeromq/pyzmq#1148](https://github.com/zeromq/pyzmq/issues/1148)), whereby encryption is significantly slower for Python distributions other than [Anaconda](https://www.anaconda.com). Until this issue is resolved, we recommend that Windows users on an untrusted network use the Anaconda Python distribution (and install `pyzmq` using `conda install pyzmq`).
6363
6464
65-
### Application shortcuts
65+
## Application shortcuts
6666
6767
Operating-system menu shortcuts, correct taskbar behaviour, and environment activation for the Python GUI applications (blacs, lyse, runmanager, and runviewer) is now handled by a standalone Python package [desktop-app](https://github.com/chrisjbillington/desktop-app) (per installation instructions above). This currently supports Windows and Linux (Mac OS X support is forthcoming).
6868
6969
70-
### Lab configuration
70+
## Lab configuration
7171
7272
The `experiment_name` item has been renamed to `apparatus_name` in the labconfig (.ini) file, to better reflect the distinciton between the infrasturcture that experiment shots are executed on. The old keyword can still be used for this item, but a [warning](https://docs.python.org/3/library/exceptions.html#FutureWarning) will be issued to remind you to update your labconfig.
7373
7474
75-
### Source code structure (developer installation)
75+
## Source code structure (developer installation)
7676
7777
Existing users who move to a developer (editable) installation, please note the following structural changes to the _labscript suite_ source code:
7878
@@ -104,6 +104,6 @@ Existing users who move to a developer (editable) installation, please note the
104104
* As installation no longer requires a separate package, the repository formerly named ‘installer’ has been renamed to ‘[labscript-suite](https://github.com/labscript-suite/labscript-suite/issues)’, and is a metapackage for the *labscript suite* (installing it via `pip`/`conda` installs the suite).
105105
106106
107-
### Versioning (developer installation)
107+
## Versioning (developer installation)
108108
109-
Aside from the maintenance branches described [here](../contributing/#branching-model-strategy), versions of the labscript suite packages are introspected at run-time using either the [importlib.metadata](importlib.metadata) library (regular installations) or [setuptools_scm](https://github.com/pypa/setuptools_scm) (developer installations). Thus any changes to an editable install will be traceable by local version numbers, e.g. editing the released version of a package with version 2.4.0 will result in 2.4.0dev1+gc28fe94, for example. This will help us diagnose issues users have with their editable installations.
109+
Aside from the maintenance branches described [here](contributing.md/#branching-modelstrategy), versions of the labscript suite packages are introspected at run-time using either the [importlib.metadata](importlib.metadata) library (regular installations) or [setuptools_scm](https://github.com/pypa/setuptools_scm) (developer installations). Thus any changes to an editable install will be traceable by local version numbers, e.g. editing the released version of a package with version 2.4.0 will result in 2.4.0dev1+gc28fe94, for example. This will help us diagnose issues users have with their editable installations.

docs/source/conf.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import os
1414
from pathlib import Path
1515
import sys
16-
from m2r import MdInclude
17-
from recommonmark.transform import AutoStructify
1816
from jinja2 import FileSystemLoader, Environment
1917

2018
# -- Project information (unique to each project) -------------------------------------
@@ -46,13 +44,14 @@
4644
"sphinx.ext.todo",
4745
"sphinx.ext.viewcode",
4846
"sphinx_rtd_theme",
49-
"recommonmark",
47+
"myst_parser",
5048
]
5149

5250
autodoc_typehints = 'description'
5351

5452
# Prefix each autosectionlabel with the name of the document it is in and a colon
5553
autosectionlabel_prefix_document = True
54+
myst_heading_anchors = 2
5655

5756
# Add any paths that contain templates here, relative to this directory.
5857
templates_path = ['_templates']
@@ -194,20 +193,7 @@
194193
# Use m2r only for mdinclude and recommonmark for everything else
195194
# https://github.com/readthedocs/recommonmark/issues/191#issuecomment-622369992
196195
def setup(app):
197-
config = {
198-
# 'url_resolver': lambda url: github_doc_root + url,
199-
'auto_toc_tree_section': 'Contents',
200-
'enable_eval_rst': True,
201-
}
202-
app.add_config_value('recommonmark_config', config, True)
203-
app.add_transform(AutoStructify)
204-
205-
# from m2r to make `mdinclude` work
206-
app.add_config_value('no_underscore_emphasis', False, 'env')
207-
app.add_config_value('m2r_parse_relative_links', False, 'env')
208-
app.add_config_value('m2r_anonymous_references', False, 'env')
209-
app.add_config_value('m2r_disable_inline_math', False, 'env')
210-
app.add_directive('mdinclude', MdInclude)
196+
211197
app.add_css_file('custom.css')
212198

213199
# generate the components.rst file dynamically so it points to stable/latest

docs/source/contributing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## Contributing to the _labscript suite_
1+
# Contributing to the _labscript suite_
22

33
We are very grateful for all the contributions users have made in the past decade to make the _labscript suite_ the most widely used open-source experiment control and automation system in quantum science. These include development, suggestions, and feedback, and we look forward to this continuing on GitHub.
44

55

6-
### Issue tracking
6+
## Issue tracking
77

88
The issue tracking on GitHub is very similar to BitBucket, with the added advantage that you can add inter-repository issue references, e.g. referring to [labscript-suite/runmanager#68](https://github.com/labscript-suite/runmanager/issues/68) in any issue or pull request will link to the corresponding issue. We have imported all issues from the BitBucket repositories into the GitHub repositories. This import is not perfect (as each comment is now posted by Phil Starkey) but the comments have been modified to contain the original author attribution. We have also updated all links to files, pull requests, issues, and commits so that they point to the equivalent GitHub location and/or the archived copy of the data (as discussed above).
99

@@ -16,12 +16,12 @@ Please use the issue tracker of the relevant GitHub repository for:
1616
For advice on _how_ to use the existing functionality of the _labscript suite_, please use our [mailing list](http://groups.google.com/group/labscriptsuite).
1717

1818

19-
### Request for developers
19+
## Request for developers
2020

2121
We would like to reaffirm our invitation for users to directly contribute toward developing the _labscript suite_. We have established a separate discussion forum on Zulip for discussing development direction and design. If you are interested in being a part of these discussions, and/or testing and merging pull requests, please [reach out to us](mailto:labscriptsuite@gmail.com).
2222

2323

24-
### Pull requests
24+
## Pull requests
2525

2626
We will continue the same feature-branch workflow as before.
2727

@@ -61,7 +61,7 @@ The official GitHub documentation outlining this process is available [here](htt
6161
These steps are broadly covered in the GitHub [Hello World](https://guides.github.com/activities/hello-world/) guide, and in detail on the [NumPy development workflow](https://numpy.org/doc/stable/dev/development_workflow.html).
6262

6363

64-
### Branching model/strategy
64+
## Branching model/strategy
6565

6666
The move to GitHub for source control and PyPI for distribution is accompanied by a slight change in the branching strategy, to improve deployment and stability of the _labscript suite_. Whereas before all versions corresponded to single commits on the master branch; dedicated branches will be used to release and service minor versions. For example, releasing v0.1.0 would see the creation of a branch named maintenance/0.1.x, used to service all 0.1 versions. As we adhere to [semantic versioning](https://semver.org/), bug-fixes would be applied in this branch, bumping the minor (final) version number each time, e.g. 0.1.1, 0.1.2, etc. No development will occur in these branches; new features are merged into master, and bug-fixes are cherry-picked from master.
6767

@@ -72,7 +72,7 @@ You can learn more about this branching model at:
7272
* [Release Flow – Azure DevOps](https://docs.microsoft.com/en-us/azure/devops/learn/devops-at-microsoft/release-flow)
7373

7474

75-
### Learning Git
75+
## Learning Git
7676

7777
As our former development, installation, and upgrading practices involved Mercurial revision-control, some of you may not be familiar with Git. While you no longer need to use _any_ revision control system to use the _labscript suite_, those of you wanting to contribute to development who aren't acquainted with Git may benefit from these resources:
7878

docs/source/features.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.. labscript suite documentation master file
22
3-
.. mdinclude:: main.md
3+
.. include:: main.md
4+
:parser: myst_parser.sphinx_
45

56
.. raw:: html
67

docs/source/installation/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ This makes it far easier to get started using the *labscript suite*, as you no l
1919
regular-anaconda
2020
developer-pypi
2121
developer-anaconda
22-
.. regular-to-developer
2322

2423
.. |pip| replace:: ``pip``
2524
.. _pip: https://packaging.python.org/tutorials/installing-packages

docs/source/main.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# the _labscript suite_
22

3-
### Experiment control and automation system
3+
_**Experiment control and automation system**_
44

5-
___
5+
---
66

77
The _labscript suite_ is a powerful and extensible framework for experiment [composition](https://github.com/labscript-suite/labscript), [control](https://github.com/labscript-suite/runmanager), [execution](https://github.com/labscript-suite/blacs), and [analysis](https://github.com/labscript-suite/lyse). Developed for quantum science and quantum engineering; deployable in laboratory and in-field devices. Also applicable to optics, microscopy, materials engineering, biophysics, and any application predicated on the repetition of parameterised, hardware-timed experiments.
88

readthedocs.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# Required
55
version: 2
66

7+
# Set build environment options
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
713
# Build documentation in the docs/ directory with Sphinx
814
sphinx:
915
builder: dirhtml
@@ -15,9 +21,8 @@ formats:
1521
- pdf
1622
- epub
1723

18-
# Optionally set the version of Python and requirements required to build your docs
24+
# Optionally set the requirements required to build your docs
1925
python:
20-
version: 3.7
2126
install:
2227
- method: pip
2328
path: .

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy