Skip to content

Commit 56957ca

Browse files
authored
Merge pull request #30 from epics-containers/dev
updating templated projects
2 parents 3685563 + af57ab8 commit 56957ca

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

docs/user/how-to/update_templated.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Updating Template Based Projects
2+
================================
3+
4+
The tutorials use two template projects as follows:
5+
6+
.. list-table:: Template Projects
7+
:widths: 30 70
8+
:header-rows: 1
9+
10+
* - Template Project
11+
- Purpose
12+
* - ioc-template
13+
- create a new generic IOC container project
14+
* - blxxi-template
15+
- create a new IOC Instance Domain project
16+
17+
The instructions for for making these project used a clone of
18+
the template. The reason for this is that the template projects
19+
may be updated in future to add new features or fix bugs.
20+
21+
Occasionally it may be useful to update your project to use the
22+
latest version of the template. Because your project contains
23+
commits from the original template this can easily be done using
24+
git.
25+
26+
For an ioc-template based project:
27+
28+
.. code-block:: bash
29+
30+
cd ioc-my-ioc-template-based-project
31+
git pull [email protected]:epics-containers/ioc-template.git
32+
33+
For an blxxi-template based project:
34+
35+
.. code-block:: bash
36+
37+
cd ioc-my-ioc-template-based-project
38+
git pull [email protected]:epics-containers/ioc-template.git.git
39+
40+
The pull command will merge any changes from the template into your
41+
project. You may need to resolve any conflicts.
42+
43+
44+

docs/user/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ side-bar.
4141
how-to/contributing
4242
how-to/own_tools
4343
how-to/useful_k8s
44+
how-to/update_templated
4445

4546
+++
4647

docs/user/tutorials/create_beamline.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ repo in the future.
119119
120120
.. figure:: ../images/create_repo.png
121121

122+
Note that creating your project in this way means it is possible to
123+
synchronize changes from the original blxxi-template project.
124+
See `../how-to/update_templated`.
125+
122126

123127
Make a Release of Example Beamline bl01t
124128
----------------------------------------

docs/user/tutorials/generic_ioc.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ using an ``ec`` command.
5353
git remote add origin [email protected]:<YOUR USER NAME>/ioc-adurl.git
5454
git push --set-upstream origin main
5555
56+
Note that creating your project in this way means it is possible to
57+
synchronize changes from the original ioc-template project.
58+
See `../how-to/update_templated`.
59+
5660
Prepare the New Repo for Development
5761
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5862

0 commit comments

Comments
 (0)