Merge ~jugmac00/launchpad-buildd:introduce-diataxis-framework into launchpad-buildd:master

Proposed by Jürgen Gmach
Status: Merged
Approved by: Jürgen Gmach
Approved revision: c6b33c49a5fb5a1ef7621d24bbee95e2fc73afdf
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~jugmac00/launchpad-buildd:introduce-diataxis-framework
Merge into: launchpad-buildd:master
Diff against target: 158 lines (+85/-17)
6 files modified
docs/how-to/building.rst (+2/-2)
docs/how-to/changelog_entry.rst (+20/-0)
docs/how-to/deployment.rst (+29/-0)
docs/how-to/developing.rst (+2/-12)
docs/how-to/qa.rst (+11/-0)
docs/index.rst (+21/-3)
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
Review via email: mp+415359@code.launchpad.net

Commit message

Introduce the Diátaxis documentation framework

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/docs/deployment.rst b/docs/explanation/deployment.rst
2similarity index 100%
3rename from docs/deployment.rst
4rename to docs/explanation/deployment.rst
5diff --git a/docs/building.rst b/docs/how-to/building.rst
6similarity index 85%
7rename from docs/building.rst
8rename to docs/how-to/building.rst
9index 4893bb8..280b2b7 100644
10--- a/docs/building.rst
11+++ b/docs/how-to/building.rst
12@@ -1,5 +1,5 @@
13-Building the project
14-********************
15+How to build the project
16+************************
17
18 In order to build the package you need ``dpkg-dev`` and ``fakeroot``.
19
20diff --git a/docs/how-to/changelog_entry.rst b/docs/how-to/changelog_entry.rst
21new file mode 100644
22index 0000000..ac00da1
23--- /dev/null
24+++ b/docs/how-to/changelog_entry.rst
25@@ -0,0 +1,20 @@
26+
27+How to create a changelog entry
28+*******************************
29+
30+Prerequisites
31+-------------
32+
33+.. code:: bash
34+
35+ sudo apt install devscripts
36+
37+Create the changelog entry
38+--------------------------
39+
40+In order to create a changelog entry in ``debian/changelog``,
41+you need to run the following command:
42+
43+.. code:: bash
44+
45+ dch -U
46diff --git a/docs/how-to/deployment.rst b/docs/how-to/deployment.rst
47new file mode 100644
48index 0000000..a52be76
49--- /dev/null
50+++ b/docs/how-to/deployment.rst
51@@ -0,0 +1,29 @@
52+How to deploy launchpad-buildd
53+******************************
54+
55+The following steps need to be performed before `Upgrading the builders
56+<https://wiki.canonical.com/InformationInfrastructure/ISO/BuildInfrastructure/BuilddFixing>`_.
57+
58+1. Ensure everything has been merged to master.
59+
60+2. Create a new release branch, based on master.
61+
62+3. Run ``DEBEMAIL="<email address>" DEBFULLNAME="<name>" dch -rD bionic``.
63+ The later recipe build will prepend the correct preamble for each Ubuntu release.
64+
65+4. Commit and push this branch, open a MergeProposal for review.
66+
67+5. Once the release branch has merged to master,
68+ tag the release commit and check https://code.launchpad.net/~launchpad/+recipe/launchpad-buildd-daily
69+ for the recipe build to happen.
70+ You can start a build if required.
71+
72+6. Upgrade the dogfood builders
73+ (you may need someone on the LP team with permissions to help with this;
74+ see `documentation <https://wiki.canonical.com/InformationInfrastructure/ISO/BuildInfrastructure/BuilddFixing#Upgrading_launchpad-buildd_in_scalingstack>`_).
75+
76+7. Perform QA
77+
78+8. File an upgrade RT (`sample <https://portal.admin.canonical.com/C135751>`_),
79+ noting the version number and possibly multiple suites/releases
80+ (`IS procedure <https://wiki.canonical.com/InformationInfrastructure/ISO/BuildInfrastructure/BuilddFixing>`_).
81diff --git a/docs/developing.rst b/docs/how-to/developing.rst
82similarity index 78%
83rename from docs/developing.rst
84rename to docs/how-to/developing.rst
85index 1db8095..895d0a7 100644
86--- a/docs/developing.rst
87+++ b/docs/how-to/developing.rst
88@@ -1,5 +1,5 @@
89-Developing
90-**********
91+How to set up a development environment
92+***************************************
93
94 First of all, it is recommended that you create an lxc container, since the
95 following steps will make changes in your system. And since some build types
96@@ -29,13 +29,3 @@ test suite both in python2 and python3.
97 More information on how to integrate it with Launchpad can be found here:
98 https://dev.launchpad.net/Soyuz/HowToDevelopWithBuildd
99
100-
101-Creating a changelog entry
102---------------------------
103-
104-In order to create a changelog entry in ``debian/changelog``,
105-you need to run ``dch`` from the ``devscripts`` package.
106-
107-.. code:: bash
108-
109- dch -U
110diff --git a/docs/how-to/qa.rst b/docs/how-to/qa.rst
111new file mode 100644
112index 0000000..e226d9a
113--- /dev/null
114+++ b/docs/how-to/qa.rst
115@@ -0,0 +1,11 @@
116+How to perform QA
117+*****************
118+
119+Depending on the applied changes,
120+you may need to perform the following build types:
121+
122+1. `TranslationTemplates <https://dev.launchpad.net/Translations/GenerateTemplatesOnTestServers>`_
123+2. Source Package Recipe Build
124+3. OCI Image Build
125+4. Snap Build
126+5. Binary Package Build
127diff --git a/docs/index.rst b/docs/index.rst
128index 427c800..f8ae1de 100644
129--- a/docs/index.rst
130+++ b/docs/index.rst
131@@ -20,6 +20,24 @@ See https://dev.launchpad.net/ for more context.
132 :maxdepth: 2
133
134 self
135- developing
136- building
137- deployment
138+
139+How-to guides
140+-------------
141+
142+.. toctree::
143+ :maxdepth: 1
144+
145+ how-to/developing
146+ how-to/changelog_entry
147+ how-to/building
148+ how-to/deployment
149+ how-to/qa
150+
151+
152+Explanation
153+-----------
154+
155+.. toctree::
156+ :maxdepth: 1
157+
158+ explanation/deployment

Subscribers

People subscribed via source and target branches