Skip to content

Commit ba082c1

Browse files
Merge branch 'labscript-suite:master' into philipstarkey/v3-refactor
2 parents 91025be + 6f38c9a commit ba082c1

File tree

3 files changed

+13
-27
lines changed

3 files changed

+13
-27
lines changed

docs/source/conf.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#
1313
import os
1414
from pathlib import Path
15-
from m2r import MdInclude
16-
from recommonmark.transform import AutoStructify
1715
from jinja2 import FileSystemLoader, Environment
1816
try:
1917
import importlib.metadata as importlib_metadata
@@ -49,7 +47,7 @@
4947
"sphinx.ext.todo",
5048
"sphinx.ext.viewcode",
5149
"sphinx_rtd_theme",
52-
"recommonmark",
50+
"myst_parser",
5351
]
5452

5553
autodoc_typehints = 'description'
@@ -59,6 +57,7 @@
5957

6058
# Prefix each autosectionlabel with the name of the document it is in and a colon
6159
autosectionlabel_prefix_document = True
60+
myst_heading_anchors = 2
6261

6362
# Add any paths that contain templates here, relative to this directory.
6463
templates_path = ['_templates']
@@ -197,23 +196,8 @@
197196
# Customize the html_theme
198197
html_theme_options = {'navigation_depth': 3}
199198

200-
# Use m2r only for mdinclude and recommonmark for everything else
201-
# https://github.com/readthedocs/recommonmark/issues/191#issuecomment-622369992
202199
def setup(app):
203-
config = {
204-
# 'url_resolver': lambda url: github_doc_root + url,
205-
'auto_toc_tree_section': 'Contents',
206-
'enable_eval_rst': True,
207-
}
208-
app.add_config_value('recommonmark_config', config, True)
209-
app.add_transform(AutoStructify)
210-
211-
# from m2r to make `mdinclude` work
212-
app.add_config_value('no_underscore_emphasis', False, 'env')
213-
app.add_config_value('m2r_parse_relative_links', False, 'env')
214-
app.add_config_value('m2r_anonymous_references', False, 'env')
215-
app.add_config_value('m2r_disable_inline_math', False, 'env')
216-
app.add_directive('mdinclude', MdInclude)
200+
217201
app.add_css_file('custom.css')
218202

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

readthedocs.yaml

Lines changed: 7 additions & 3 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,13 +21,11 @@ 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: .
2429
extra_requirements:
2530
- docs
26-
system_packages: true
2731

setup.cfg

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ install_requires =
3737
[options.extras_require]
3838
docs =
3939
PyQt5
40-
Sphinx==4.4.0
41-
sphinx-rtd-theme==0.5.2
42-
recommonmark==0.6.0
43-
m2r==0.2.1
44-
mistune<2.0.0
40+
Sphinx==7.2.6
41+
sphinx-rtd-theme==2.0.0
42+
myst_parser==2.0.0

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