-
-
Notifications
You must be signed in to change notification settings - Fork 14
Publishing Logic
Updates to the documentation are published automatically when changes are made to the master
branch or a version branch which is a branch named with the version number without the initial 'v' (e.g.: 2.3.2
or 2.5.1
). Publication to a version branch will only happen if the version has already been published on the master
branch. Changes can come from merging a pull request or from a push to the branch. The version number
and versions list
is provided in the conf.py
file in the branch being processed. The cumulative list of published versions
is provided from a persistent information file maintained by the publish.py
script. The version number from conf.py
is validated to ensure that it follows the format v{major}[.{minor}[.{micro}]]
where {major}
, {minor}
and {micro}
are integers containing only digits.
The logic used is:
-
Is this the
master
branch?- Yes: Publish as
latest
and go to Step 2. - No: Go to Step 5.
- Yes: Publish as
-
Is the
version number
valid?- Yes: Go to Step 3.
- No: Quit.
-
Is the
version number
in theversions list
?- Yes: Publish as
version number
and go to Step 4. - No: Quit.
- Yes: Publish as
-
is the
version number
in thepublished versions
list?- Yes: Quit.
- No: Add
version number
topublished versions
, update persistent information file and quit.
-
Is the
version number
valid?- Yes: Go to Step 6.
- No: Quit.
-
Is the branch name the same as the
version number
without the leading 'v'?- Yes: Go to Step 7.
- No: Quit.
-
is the
version number
in thepublished versions
list?- Yes: Publish as
version number
and quit. - No: Quit.
- Yes: Publish as
The MusicBrainz Picard Documentation Project and the Picard User Guide are licensed under CC0 1.0.