Skip to content

Commit 047260f

Browse files
committed
fix documentation version generation
1 parent 13ea9aa commit 047260f

File tree

8 files changed

+79
-312
lines changed

8 files changed

+79
-312
lines changed

Pipfile

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,13 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
# Pinning black stops us having to allow pre-releases globally
8-
black = "==19.10b0"
9-
# Pins to make lockfile usable on multiple Python versions and platforms
10-
mypy = "*"
11-
atomicwrites = "*"
12-
typing-extensions = "*"
13-
importlib-metadata = "*"
14-
# List wheel here to make sure we make the same version to make wheels on gitlab and github CI
15-
wheel = "0.33.1"
16-
# Test and docs dependencies
17-
pytest-cov = "*"
18-
pytest-mypy = "*"
19-
pytest-flake8 = "*"
20-
pytest-black = "*"
21-
flake8-isort = "*"
22-
isort = ">5.0"
23-
sphinx-rtd-theme = "*"
7+
softioc = {editable = true, extras = ["dev"], path = "."}
248

259
[packages]
26-
# All other package requirements from setup.cfg
27-
epics_containers = {path = "."}
10+
softioc = {editable = true, extras = ["useful"], path = "."}
2811

2912
[scripts]
30-
tests = "python -m pytest"
13+
# Do flake8 here so it doesn't happen in the container in CI
14+
tests = "python -m pytest --flake8"
3115
docs = "sphinx-build -EWT --keep-going docs build/html"
32-
build = "python setup.py sdist bdist_wheel"
33-
# Delete any files that git ignore hides from us
34-
gitclean = "git clean -fdX"
16+
gitclean = "git clean -fdX"

Pipfile.lock

Lines changed: 35 additions & 244 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.rst

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ Organization https://github.com/epics-containers
2626
:alt: Apache License
2727

2828

29+
Materials
30+
=========
31+
32+
The following links are to materials presented at the ICALEPCS 2021 Meeting:
33+
34+
- :download:`ICALEPCS 2021 Paper: Kubernetes for EPICS IOCs<images/THBL04.PDF>`
35+
- :download:`ICALEPCS 2021 Talk: Kubernetes for EPICS IOCs<images/THBL04_talk.PDF>`
36+
2937
Overview
3038
========
3139

@@ -39,11 +47,6 @@ management of IOCs.
3947
- CI / CD generates the images, charts from source and delivers them
4048
to **Repositories**
4149

42-
The following links are to materials presented at the ICALEPCS 2021 Meeting:
43-
44-
- :download:`ICALEPCS 2021 Paper: Kubernetes for EPICS IOCs<images/THBL04.PDF>`
45-
- :download:`ICALEPCS 2021 Talk: Kubernetes for EPICS IOCs<images/THBL04_talk.PDF>`
46-
4750
Below we show how these assets combine to create a running IOC on a
4851
Kubernetes worker node.
4952

@@ -68,6 +71,18 @@ Kubernetes worker node.
6871

6972
- https://github.com/epics-containers/bl45p
7073

74+
The Generic IOC container images are built using a hierarchy with the most
75+
common elements shared as shown in the following diagram:
76+
77+
.. image:: images/image-hierarchy.png
78+
:width: 350px
79+
:align: center
80+
81+
EPICS base and essential tools are compiled inside one image; the most commonly
82+
used support modules(primarily Asyn) and the AreaDetector framework
83+
also have their own images. Generic IOC images are then
84+
leaves in the hierarchy and are based upon the appropriate dependencies.
85+
7186
..
7287
Anything below this line is used when viewing README.rst and will be replaced
7388
when included in index.rst

docs/_static/theme_overrides.css

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@
1212
padding: 4px 6px;
1313
}
1414

15-
/* allow us to stop margin after list so we can add to it */
16-
.no-margin-after-ul ul {
17-
margin-bottom: 0 !important;
18-
}
19-
2015
/* Add two-column option */
21-
@media only screen and (min-width: 1000px),
22-
only screen and (min-width: 500px) and (max-width: 768px){
16+
@media only screen and (min-width: 1000px) {
2317
.columns {
24-
padding-left: 5px;
25-
padding-right: 5px;
18+
padding-left: 10px;
19+
padding-right: 10px;
2620
float: left;
2721
width: 50%;
22+
min-height: 145px;
2823
}
2924
}
3025

3126
.endcolumns {
3227
clear: both
33-
}
28+
}

docs/_templates/layout.html

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

docs/conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@
104104
http://www.diamond.ac.uk
105105
"""
106106

107-
# -- Options for HTML output -------------------------------------------------
108-
109-
# The theme to use for HTML and HTML Help pages. See the documentation for
110-
# a list of builtin themes.
111-
#
112-
html_theme = "sphinx_rtd_theme"
107+
# The theme to use for HTML and HTML Help pages. Major themes that come with
108+
# Sphinx are currently "default" and "sphinxdoc".
109+
try:
110+
import sphinx_rtd_theme_github_versions
111+
html_theme = "sphinx_rtd_theme_github_versions"
112+
except ImportError:
113+
html_theme = "default"
113114

114115
# Options for the sphinx rtd theme
115116
html_theme_options = dict(style_nav_header_background="rgb(7, 43, 93)")

images/image-hierarchy.png

134 KB
Loading

setup.cfg

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ classifiers =
1616

1717
[options]
1818
packages = find:
19-
# install_requires =
20-
# numpy
21-
# scipy
2219

2320
# If you want to include data files in packages,
2421
# either define [options.package_data] or
2522
# set this to True and include a MANIFEST.in file.
2623
include_package_data = False
2724

25+
[options.extras_require]
26+
# Dev and docs dependencies
27+
dev =
28+
pytest-cov
29+
pytest-flake8
30+
sphinx-rtd-theme-github-versions; python_version > "3.0"
31+
2832
[options.packages.find]
2933
# Don't include our tests directory in the distribution
3034
exclude = tests

0 commit comments

Comments
 (0)