Skip to content

Commit d357bde

Browse files
linawolffroemken
andauthored
[TASK] Add information on how to render the Changelog (#347)
* [TASK] Add information on how to render the Changelog So ppl dont need to go looking for it. * Update Documentation/AddingDocumentation/Index.rst * Update Documentation/AddingDocumentation/Index.rst * Update Documentation/AddingDocumentation/Index.rst * Update Documentation/AddingDocumentation/Index.rst Co-authored-by: Stefan Frömken <[email protected]> --------- Co-authored-by: Stefan Frömken <[email protected]>
1 parent ef0d914 commit d357bde

File tree

2 files changed

+98
-80
lines changed

2 files changed

+98
-80
lines changed
Lines changed: 95 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,81 @@
1-
.. include:: /Includes.rst.txt
1+
.. include:: /Includes.rst.txt
22

3-
.. index::
4-
single: Documentation Contribution; Adding Documentation
3+
.. index::
4+
single: Documentation Contribution; Adding Documentation
55

6-
.. _Bugfixing-Adding-documentation:
7-
.. _Adding-documentation:
6+
.. _Bugfixing-Adding-documentation:
7+
.. _Adding-documentation:
88

99
=================
1010
Add Documentation
1111
=================
1212

1313
**Quick links:**
1414

15-
- :ref:`h2document:Formatting-with-reST`
16-
- :ref:`h2document:format-rest-cgl`
17-
- :ref:`h2document:rest-cheat-sheet`
18-
- :ref:`h2document:render-documentation-with-docker`
15+
* :ref:`h2document:Formatting-with-reST`
16+
* :ref:`h2document:format-rest-cgl`
17+
* :ref:`h2document:rest-cheat-sheet`
18+
* :ref:`h2document:render-documentation-with-docker`
1919

2020

21-
The documentation `Changelog <https://docs.typo3.org/typo3cms/extensions/core/latest/>`__
21+
The documentation :doc:`TYPO3 Core Changelog <changelog:Index#typo3-core-changelog>`
2222
and documentation for
23-
`system extensions <https://docs.typo3.org/typo3cms/SystemExtensions/Index.html>`__
24-
is maintained in the core.
23+
:ref:`System Extensions <t3docs:System-Extensions>`
24+
is maintained in the Core.
2525

26-
.. index::
27-
single: Documentation Contribution Workflow; Add Changelog
28-
single: Changelog; Add Entries
26+
.. index::
27+
single: Documentation Contribution Workflow; Add Changelog
28+
single: Changelog; Add Entries
2929

30-
.. _changelog:
30+
.. _changelog:
3131

3232
Changelog
3333
=========
3434

3535
Some patches require a :file:`.rst` (reStructuredText) Changelog file describing the change.
3636
Not all patches
3737
need an entry in the Changelog. Check the list below. Also see the current
38-
`Changelog <https://docs.typo3.org/typo3cms/extensions/core/latest/>`__
38+
:doc:`TYPO3 Core Changelog <changelog:Index#typo3-core-changelog>`
3939
for some examples.
4040

4141
Every file may optionally contain tags, but it must contain at least a
4242
`NotScanned`, `PartiallyScanned` or `FullyScanned` tag for the extension scanner.
4343
See :ref:`t3coreapi:extension-scanner` in TYPO3 Explained for more
4444
information.
4545

46-
.. index::
47-
single: Tools; reST File Generator
48-
single: Changelog; Generate new Entries
49-
single: Documentation Contribution Workflow; Generating reST Files
46+
.. _render-the-changelog:
5047

51-
.. _rest-file-generator:
48+
Render the Changelog locally
49+
----------------------------
50+
51+
If you have `Docker <https://www.docker.com>`__ or `Podman <https://podman.io/>`__
52+
installed you can try out the rendering of the changelog locally:
53+
54+
.. tabs::
55+
56+
.. group-tab:: Docker
57+
58+
.. code-block:: bash
59+
60+
cd typo3/sysext/core
61+
docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
62+
xdg-open "Documentation-GENERATED-temp/Index.html"
63+
64+
.. group-tab:: Podman
65+
66+
.. code-block:: bash
67+
68+
cd typo3/sysext/core
69+
docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
70+
xdg-open "Documentation-GENERATED-temp/Index.html"
71+
72+
73+
.. index::
74+
single: Tools; reST File Generator
75+
single: Changelog; Generate new Entries
76+
single: Documentation Contribution Workflow; Generating reST Files
77+
78+
.. _rest-file-generator:
5279

5380
Forger reST Helper
5481
------------------
@@ -76,10 +103,10 @@ need to go into :file:`typo3/sysext/core/Documentation/Changelog/<release>/`.
76103

77104
Choose one which fits your patch:
78105

79-
.. index::
80-
single: Documentation Contribution Workflow; Breaking Changes
106+
.. index::
107+
single: Documentation Contribution Workflow; Breaking Changes
81108

82-
.. _documenting-changelog-breaking-changes:
109+
.. _documenting-changelog-breaking-changes:
83110

84111
Breaking Changes
85112
~~~~~~~~~~~~~~~~
@@ -89,21 +116,21 @@ that may break extensions if they use this part.
89116

90117
**Mandatory sections:**
91118

92-
#. **Description** - why things had to break backwards compatibility.
119+
#. **Description** - why things had to break backwards compatibility.
93120

94-
#. **Impact** - how will the change affect your installation.
121+
#. **Impact** - how will the change affect your installation.
95122

96-
#. **Affected Installations** - describe scenarios under which circumstances
97-
a TYPO3 install will be affected by this change.
123+
#. **Affected Installations** - describe scenarios under which circumstances
124+
a TYPO3 install will be affected by this change.
98125

99-
#. **Migration** - provide instructions what needs to be done to get things
100-
working again. Explicitly mention if no migration is possible.
126+
#. **Migration** - provide instructions what needs to be done to get things
127+
working again. Explicitly mention if no migration is possible.
101128

102129

103-
.. index::
104-
single: Documentation Contribution Workflow; Deprecations
130+
.. index::
131+
single: Documentation Contribution Workflow; Deprecations
105132

106-
.. _documenting-changelog-deprecations:
133+
.. _documenting-changelog-deprecations:
107134

108135
Deprecations
109136
~~~~~~~~~~~~
@@ -113,21 +140,21 @@ for a planned removal. See more information: :ref:`Deprecations <deprecations>`
113140

114141
**Mandatory sections:**
115142

116-
#. **Description** - why things had to be deprecated.
143+
#. **Description** - why things had to be deprecated.
117144

118-
#. **Impact** - how will the change affect your installation.
145+
#. **Impact** - how will the change affect your installation.
119146

120-
#. **Affected Installations** - describe scenarios under which circumstances
121-
an TYPO3 install will be affected by this change.
147+
#. **Affected Installations** - describe scenarios under which circumstances
148+
a TYPO3 install will be affected by this change.
122149

123-
#. **Migration** - provide instructions what needs to be done to get things
124-
working again. Explicitly mention if no migration is possible.
150+
#. **Migration** - provide instructions what needs to be done to get things
151+
working again. Explicitly mention if no migration is possible.
125152

126153

127-
.. index::
154+
.. index::
128155
single: Documentation Contribution Workflow; Features
129156

130-
.. _documenting-changelog-features:
157+
.. _documenting-changelog-features:
131158

132159
Features
133160
~~~~~~~~
@@ -136,15 +163,15 @@ A patch adds new functionality.
136163

137164
**Mandatory sections:**
138165

139-
#. **Description** - what can the new feature do.
166+
#. **Description** - what can the new feature do.
140167

141-
#. **Impact** - how users are affected by this new feature.
168+
#. **Impact** - how users are affected by this new feature.
142169

143170

144-
.. index::
171+
.. index::
145172
single: Documentation Contribution Workflow; Important Information
146173

147-
.. _documenting-changelog-important-information:
174+
.. _documenting-changelog-important-information:
148175

149176
Important Information
150177
~~~~~~~~~~~~~~~~~~~~~
@@ -154,12 +181,12 @@ important enough to require a Changelog entry.
154181

155182
#. **Description** - describe what is so important it needed an rst snippet
156183

157-
.. index::
158-
single: Documentation Contribution Workflow; Checking reST Files
159-
single: Tools; Checking reST Files
160-
single: Changelog; Checking
184+
.. index::
185+
single: Documentation Contribution Workflow; Checking reST Files
186+
single: Tools; Checking reST Files
187+
single: Changelog; Checking
161188

162-
.. _changelog-check-rst:
189+
.. _changelog-check-rst:
163190

164191
Check Your `rst` File
165192
---------------------
@@ -168,40 +195,27 @@ When your change is finished, you can run the following script to check that
168195
your rst file is ok. The script will check all files in
169196
:file:`typo3/sysext/core/Documentation/Changelog`:
170197

171-
.. code-block:: shell
172-
:caption: shell command
198+
.. code-block:: shell
199+
:caption: shell command
173200
174-
Build/Scripts/validateRstFiles.php
201+
Build/Scripts/validateRstFiles.php
175202
176203
This script will check if the .rst files contain all mandatory tags that
177204
are required for the Changelog. It will **not** do a reST syntax check.
178205

179206
In order to make sure that your file contains no syntax errors and will
180207
be rendered correctly, do one or more of the following:
181208

182-
* Check out :ref:`h2document:format-rest-cgl`.
183-
* Use an editor or IDE that properly supports reST and shows errors
184-
* Render the Changelog locally with docker as explained in the next section
185-
186-
.. index::
187-
single: Documentation Contribution Workflow; Rendering Changelog
188-
single: Tools; Rendering Changelog
189-
single: Changelog; Rendering
190-
191-
.. _render-the-changelog:
192-
193-
Render the Changelog
194-
--------------------
195-
196-
If you wish to render the Changelog locally, you can use docker as described
197-
in :ref:`h2document:render-documentation-with-docker`.
198-
199-
.. important::
209+
* Check out :ref:`h2document:format-rest-cgl`.
210+
* :ref:`Render the Changelog locally <render-the-changelog>` with Docker or
211+
Podman and resolve all warnings.
200212

201-
If you switch branches, you should rebuild everything. You can simply remove the folder
202-
:file:`Documentation-GENERATED-temp/Cache` and all its contents.
213+
.. index::
214+
single: Documentation Contribution Workflow; Rendering Changelog
215+
single: Tools; Rendering Changelog
216+
single: Changelog; Rendering
203217

204-
.. _documentation-main:
218+
.. _documentation-main:
205219

206220
Policy for Changing the Main Documentation
207221
==========================================
@@ -211,10 +225,10 @@ Once a new TYPO3 release comes out, the main documentation (e.g. :ref:`t3coreapi
211225

212226
The procedure is documented in :ref:`h2document:update-docs`.
213227

214-
.. index::
215-
single: Documentation Contribution Workflow; Documenting System Extensions
228+
.. index::
229+
single: Documentation Contribution Workflow; Documenting System Extensions
216230

217-
.. _documenting-system-extensions:
231+
.. _documenting-system-extensions:
218232

219233
Document System Extensions
220234
==========================
@@ -241,5 +255,6 @@ locally with docker to test your changes as described in
241255
More Information
242256
================
243257

244-
* See `Documenting Changes <https://docs.typo3.org/typo3cms/extensions/core/latest/Changelog/Howto.html>`__ for more information on the Changelog
245-
* See :ref:`extension-scanner` in TYPO3 Explained
258+
* See :doc:`Documenting Changes <changelog:Changelog/Howto#documenting-changes>`
259+
for more information on the Changelog
260+
* See :ref:`extension-scanner` in TYPO3 Explained

Documentation/Quickstart/6-Patch.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Now with this example in mind, we have two modified files that we want to commit
7878
Please ensure to only add files related to your change to the stage,
7979
and discard unrelated files if reasonable.
8080

81+
If your change is a breaking, a feature or deprecation, add a
82+
:ref:`Changelog entry <changelog>`.
83+
8184
4. Commit the files
8285

8386
.. code:: bash

0 commit comments

Comments
 (0)