Skip to content
Snippets Groups Projects
Verified Commit b39d6c5f authored by Lars Bilke's avatar Lars Bilke
Browse files

[doxygen] Implemented release branch docs.

Will be available at e.g. https://doxygen.opengeosys.org/v6.3.3
parent b0b170f7
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@
* You will find the Doxygen documentation for the development branch at
* https://doxygen.opengeosys.org.
*
* The documenation for the latest OGS release is
* https://doxygen.opengeosys.org/release.
* The documentation for OGS releases can be found here:
*
* - https://doxygen.opengeosys.org/v6.3.3
*
* \section useful_links Useful links
* - OGS home page: https://opengeosys.org/
......
......@@ -19,7 +19,7 @@ waste deposition. OGS is comprised of the THMC-simulator (simply referred to as
- Good starting point for users as well as for developers is the [documentation][documentation]
- Check your code against our [styleguide](http://ufz.github.io/styleguide/cppguide.xml)
- Have a look at the [source code documentation for the nightly build][docs-nightly] or [for the latest release][docs-release]
- Have a look at the [source code documentation for the current master-branch build][docs-master] or [for the latest release][docs-release]
## License ##
......@@ -28,6 +28,6 @@ OpenGeoSys is distributed under the Modified BSD License. See the
[ogs]: https://www.opengeosys.org
[documentation]: https://www.opengeosys.org/docs/
[docs-nightly]: https://doxygen.opengeosys.org/
[docs-release]: https://doxygen.opengeosys.org/release
[docs-master]: https://doxygen.opengeosys.org/
[docs-release]: https://doxygen.opengeosys.org/v6.3.3
[license-source]: https://github.com/ufz/ogs/blob/master/LICENSE.txt
......@@ -15,6 +15,7 @@ build docs:
script:
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_BUILD_PROCESSES=GroundwaterFlow
- cmake --build . --target doc > >(tee make-docs.output)
- cp ../scripts/doc/_redirects docs
artifacts:
expose_as: 'Doxygen'
paths:
......@@ -44,9 +45,19 @@ deploy doxygen:
tags: [ docker ]
image: $WEB_IMAGE
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
ON_MASTER: "true"
- if: $CI_COMMIT_BRANCH =~ /^v[0-9]\.[0-9]\.[0-9]/
dependencies: [meta_container, "build docs"]
variables:
GIT_STRATEGY: none
script:
- netlify deploy --prod --dir=build/docs --site=$DOXYGEN_NETLIFY_SITE_ID
# ${CI_COMMIT_BRANCH//./-} replaces dots with hyphens
- |
if [ "$ON_MASTER" == "true" ]; then
netlify deploy --prod --dir=build/docs --site=$DOXYGEN_NETLIFY_SITE_ID
else
netlify link --name ogs-doxygen-${CI_COMMIT_BRANCH//./-}
netlify deploy --prod --dir=build/docs
fi
/v6.3.3/* https://ogs-doxygen-v6-3-3.netlify.app/:splat 200!
......@@ -14,6 +14,9 @@ weight = 1051
- Update [merge request template](https://gitlab.opengeosys.org/ogs/ogs/edit) to point to a new changelog wiki page
- Update `CHANGELOG.md` to point to new GitLab release
- Create new web release page with generated artifact names and changelog (convert MR ids to urls: replace `!([0-9][0-9][0-9][0-9])` with `[!$1](https://gitlab.opengeosys.org/ogs/ogs/-/merge_requests/$1)` and `#([0-9][0-9][0-9][0-9])` with `[#$1](https://gitlab.opengeosys.org/ogs/ogs/-/issues/$1)`)
- Add a link to the (upcoming) Doxygen documentation for this tag in `Documentation/mainpage.dox.in` (with `v`-prefix)
- Update `[docs-release]`-link in `README.md` to the new tag (with `v`-prefix)
- Add a redirect in `scripts/doc/_redirects`
- Create a tag and push
- A new release is automatically created on GitLab
- Fill in the release notes from the Wiki
......@@ -21,4 +24,10 @@ weight = 1051
- Create a release on GitHub mirror (`ufz/ogs`)
- Check if a [Zenodo release](https://zenodo.org/account/settings/github/repository/ufz/ogs#) is automatically issued
- Issue a scan on [Software Heritage Archive](https://archive.softwareheritage.org/browse/origin/directory/?origin_url=https://gitlab.opengeosys.org/ogs/ogs.git)
- Create bugfix branch
- Create new netlify site (in an empty directory)
- `netlify init`
- `# [ENTER]`
- `# ogs-doxygen-v6-3-3`
- Create branch from `master` with name `v[TAG]` and push
- Create a discourse announcement post
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment