Skip to content

Commit 9818810

Browse files
authored
Merge pull request #90 from epics-containers/md
Latest updates for changeover to copier templates
2 parents 1f3ce58 + 1dc214c commit 9818810

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4285
-4587
lines changed

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ author_email: [email protected]
55
author_name: Giles Knap
66
component_owner: group:default/sscc
77
description: Documentation for the epics-containers framework
8-
distribution_name: epic-containers
8+
distribution_name: epics-containers
99
docker: false
1010
docs_type: sphinx
1111
git_platform: github.com
1212
github_org: epics-containers
1313
package_name: epics-containers
14-
repo_name: epic-containers.github.io
14+
repo_name: epics-containers.github.io
1515
type_checker: mypy

.github/CONTRIBUTING.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
# Contribute to the project
1+
# Contributing to the project
22

33
Contributions and issues are most welcome! All issues and pull requests are
4-
handled through [GitHub](https://github.com/epics-containers/epic-containers.github.io/issues). Also, please check for any existing issues before
4+
handled through [GitHub]. Also, please check for any existing issues before
55
filing a new one. If you have a great idea but it involves big changes, please
66
file a ticket before making a pull request! We want to make sure you don't spend
77
your time coding something that might not fit the scope of the project.
88

99
## Issue or Discussion?
1010

11-
Github also offers [discussions](https://github.com/epics-containers/epic-containers.github.io/discussions) as a place to ask questions and share ideas. If
11+
Github also offers [discussions] as a place to ask questions and share ideas. If
1212
your issue is open ended and it is not obvious when it can be "closed", please
1313
raise it as a discussion instead.
1414

15-
## Code Coverage
15+
## Developer guide
1616

17-
While 100% code coverage does not make a library bug-free, it significantly
18-
reduces the number of easily caught bugs! Please make sure coverage remains the
19-
same or is improved by a pull request!
17+
The [Developer Guide] contains information on setting up a development
18+
environment, building docs and what standards the documentation
19+
should follow.
2020

21-
## Developer Information
22-
23-
It is recommended that developers use a [vscode devcontainer](https://code.visualstudio.com/docs/devcontainers/containers). This repository contains configuration to set up a containerized development environment that suits its own needs.
24-
25-
This project was created using the [Diamond Light Source Copier Template](https://github.com/DiamondLightSource/python-copier-template) for Python projects.
26-
27-
For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/1.3.0/how-to.html).
21+
[developer guide]: https://epics-containers.github.io/main/developer/how-to/contribute.html
22+
[discussions]: https://github.com/epics-containers/epics-containers.github.io/discussions
23+
[github]: https://github.com/epics-containers/epics-containers.github.io/issues

.github/CONTRIBUTING.rst

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ lockfiles/
6868

6969
# ruff cache
7070
.ruff_cache/
71+
72+
# workspace files
73+
**/*.code-workspace

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![CI](https://github.com/epics-containers/epic-containers.github.io/actions/workflows/ci.yml/badge.svg)](https://github.com/epics-containers/epic-containers-github-io/actions/workflows/ci.yml)
1+
[![CI](https://github.com/epics-containers/epics-containers.github.io/actions/workflows/ci.yml/badge.svg)](https://github.com/epics-containers/epics-containers.github.io/actions/workflows/ci.yml)
22
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
33

44

@@ -14,15 +14,13 @@ and the [Getting Started Guide](https://epics-containers.github.io/main/user/tut
1414
Useful Links
1515
============
1616

17-
Please contribute with comments and suggestions in the wiki or issues pages:
18-
1917
| Item | Link
2018
| -------------- | ---------------------
21-
| Documentation | https://epics-containers.github.io
22-
| Wiki | https://github.com/epics-containers/epics-containers.github.io/wiki
23-
| Issues | https://github.com/epics-containers/epics-containers.github.io/issues
24-
| Docs Source | https://github.com/epics-containers/epics-containers.github.io
25-
| Organization | https://github.com/epics-containers
19+
| Documentation | <https://epics-containers.github.io>
20+
| Wiki | <https://github.com/epics-containers/epics-containers.github.io/wiki>
21+
| Issues | <https://github.com/epics-containers/epics-containers.github.io/issues>
22+
| Docs Source | <https://github.com/epics-containers/epics-containers.github.io>
23+
| Organization | <https://github.com/epics-containers>
2624

2725

2826

catalog-info.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: backstage.io/v1alpha1
22
kind: Component
33
metadata:
4-
name: epic-containers
5-
title: epic-containers.github.io
4+
name: epics-containers
5+
title: epics-containers.github.io
66
description: Documentation for the epics-containers framework
77
spec:
88
type: documentation
99
lifecycle: experimental
10-
owner: group:default/sscc
10+
owner: group:default/sscc

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
version = "1.0"
1515

1616
# General information about the project.
17-
project = "epic-containers.github.io"
17+
project = "epics-containers"
1818

1919
extensions = [
2020
# Use this for generating API docs
@@ -106,7 +106,7 @@
106106
# a list of builtin themes.
107107
#
108108
html_theme = "pydata_sphinx_theme"
109-
github_repo = "epic-containers.github.io"
109+
github_repo = "epics-containers.github.io"
110110
github_user = "epics-containers"
111111
switcher_json = f"https://{github_user}.github.io/{github_repo}/switcher.json"
112112
switcher_exists = requests.get(switcher_json).ok
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# 3. Use of substitution files to generate EPICS Databases
2+
3+
Date: 2023-11-30
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
There are two proposals for how EPICS Databases should be generated:
12+
13+
1. At IOC startup `ibek` should generate a substitution file that describes the
14+
required Databases.
15+
16+
The IOC instance yaml combined with the definitions from support module yaml
17+
controls what the generated substitution file will look like.
18+
19+
`ibek` will then execute `msi` to generate the Databases from the
20+
substitution file.
21+
22+
2. The dbLoadRecord calls in the startup script will pass all macro substitutions
23+
in-line. Removing the need for a substitution file.
24+
25+
## Decision
26+
27+
Proposal 1 is accepted.
28+
29+
Some template files such as those in the `pmac` support module use the
30+
following pattern:
31+
32+
```
33+
substitute "P=$(PMAC):, M=CS$(CS):M1, ADDR=1, DESC=CS Motor A"
34+
include "pmacDirectMotor.template"
35+
```
36+
37+
This pattern is supported by msi but not by the EPICS dbLoadRecord command which
38+
does not recognise the `substitute` command.
39+
40+
## Consequences
41+
42+
An extra file `ioc.subst` is seen in the runtime directory. In reality this
43+
is easier to read than a full Database file. So can be useful for debugging.
44+
45+
Finally those developers who are unable to use `ibek yaml` for some reason can
46+
supply their own substitution file and ibek will expand it at runtime. This is
47+
much more compact that supplying a full Database file and important due to the
48+
1MB limit on K8S ConfigMaps.

docs/explanations/decisions/0003-use-substitution-files.rst

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
4. How to configure autosave for IOCs
2-
=====================================
1+
# 4. How to configure autosave for IOCs
32

43
Date: 2023-11-30
54

6-
Status
7-
------
5+
## Status
86

97
Accepted
108

11-
Context
12-
-------
9+
## Context
1310

1411
There is a choice of supplying the list of PVs to autosave by:
1512

1613
- adding info tags to the Database Templates
1714
- supplying a raw req file with list of PVs to autosave
1815

19-
Decision
20-
--------
16+
## Decision
2117

2218
We will go with req files for the following reasons:
2319

24-
- https://epics.anl.gov/tech-talk/2019/msg01600.php
20+
- <https://epics.anl.gov/tech-talk/2019/msg01600.php>
2521
- adding info tags would require upstream changes to most support modules
2622
- default req files are already supplied in many support modules
2723
- req files are in common use and many facilities may already have their own
@@ -38,8 +34,6 @@ Then override files can exist at the beamline level and / or at the IOC
3834
instance level. These will simply take the form of a req file with the same
3935
name as the one it is overriding.
4036

41-
Consequences
42-
------------
37+
## Consequences
4338

4439
Everything is nice and simple.
45-

0 commit comments

Comments
 (0)