Skip to content

Commit ac701ff

Browse files
authored
Merge pull request #157 from robotpy/rtd
Update documentation
2 parents 72c4f8d + eb15597 commit ac701ff

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

.readthedocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: docs/conf.py
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.11"
10+
11+
python:
12+
install:
13+
- requirements: docs/requirements.txt
14+
- method: pip
15+
path: .

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

1717
import sphinx_rtd_theme
18+
import importlib.metadata
1819

1920

2021
# -- Project information -----------------------------------------------------
@@ -24,7 +25,7 @@
2425
author = "Benjamin Fogle"
2526

2627
# The full version, including alpha/beta/rc tags
27-
release = "0.7"
28+
release = importlib.metadata.distribution("crossenv").version
2829

2930

3031
# -- General configuration ---------------------------------------------------
@@ -49,9 +50,8 @@
4950
# a list of builtin themes.
5051
#
5152
html_theme = "sphinx_rtd_theme"
52-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
5353

5454
# Add any paths that contain custom static files (such as style sheets) here,
5555
# relative to this directory. They are copied after the builtin static files,
5656
# so a file named "default.css" will overwrite the builtin "default.css".
57-
html_static_path = ["_static"]
57+
html_static_path = []

docs/quickstart.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Cross compiling can be challenging, and crossenv is focused only on one
55
particular piece. As such, this section is not a complete guide.
66

7+
.. seealso:: For CI purposes the crossenv project builds several docker images
8+
that contain appropriately configured build and host pythons for
9+
cross compilation. You may find these to be a useful starting
10+
point.
11+
12+
https://github.com/robotpy/crossenv-ci-images
13+
714
Build build-python
815
------------------
916

@@ -31,9 +38,10 @@ builds may require more. It depends very much on your specific requirements.)
3138
Build or obtain host-python
3239
---------------------------
3340

34-
In this quick start we assume you are building host-python yourself. In other
35-
cases you may be targeting a pre-built system image. A pre-built image has it's
36-
own challenges, which are covered elsewhere.
41+
In this quick start we assume you are building host-python yourself. It is not
42+
a requirement to use the actual python that is on the target host -- and in fact
43+
we don't recommend it! The primary requirement is that the version must match the
44+
version of build-python.
3745

3846
You will need to build any host dependencies beforehand. So, for example, if
3947
you want host-python to be able to communicate over a network, you may need to

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Sphinx==2.4.3
2-
sphinx_rtd_theme
1+
sphinx >= 3.0
2+
sphinx-rtd-theme

0 commit comments

Comments
 (0)