Skip to content

Commit

Permalink
[TASK] Clarify release and version (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf authored Jul 28, 2024
1 parent 74a1d9f commit 7e66d5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
31 changes: 11 additions & 20 deletions Documentation/Reference/GuidesXml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ of a manual.
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.phpdoc.org/guides ../vendor/phpdocumentor/guides-cli/resources/schema/guides.xsd"
>
<project title="News system" release="main (development)" version="main (development)"
copyright="since 2010 by Georg Ringer &amp; Contributors"/>
<project title="News system"
version="local"
copyright="since 2010 by Georg Ringer &amp; Contributors"
/>
</guides>
.. _settings-guides-version-and-release:
Expand All @@ -175,28 +177,17 @@ of a manual.
:type: string

When documentation is rendered in the GitHub action for deployment onto
https://docs.typo3.org the version is set automatically to the extension's
https://docs.typo3.org **the version is set automatically** to the extension's
version derived from the Git tag. Setting the version in the
:file:`guides.xml` only affects local rendering.

The attributes *version* and *release* both contain the version of the manual
and mostly correspond to the version of the TYPO3 LTS or TYPO3 extension to
which the documentation refers.

The version is shown below the title in the theme's release switch and in the
title meta tag, the release is not shown currently - but it should be
kept anyway to satisfy internal requirements.

version
The major project version, used as the replacement for :rst:`|version|`.
For example this may be something like 12.4.

release
The full project version, used as the replacement for :rst:`|release|`
For example 12.4.15-dev.
.. confval:: release
:name: guides-project-release
:type: string

If you do not need the separation provided between version and release,
just set them both to the same value.
You can set the `release` property to the release number of your
document and output this value using :rst:`|release|` within
your text if you desire to. Usually it is not used.

.. _settings-guides-copyright:

Expand Down
6 changes: 4 additions & 2 deletions Documentation/Reference/_guides-simple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
typo3-core-preferred="11.5"
interlink-shortcode="georgringer/news"
/>
<project title="News system" release="main (development)" version="main (development)"
copyright="since 2010 by Georg Ringer &amp; Contributors"/>
<project title="News system"
version="local"
copyright="since 2010 by Georg Ringer &amp; Contributors"
/>
<inventory id="t3extbasebook" url="https://docs.typo3.org/m/typo3/book-extbasefluid/10.4/en-us/"/>
</guides>

0 comments on commit 7e66d5c

Please sign in to comment.