ci: auto-publish Doxygen HTML to Codeberg Pages on main
New .gitea/workflows/doxygen-pages.yml runs on every push to main that touches the public headers, Doxyfile, the markdown-link filter, any doc/**/*.md, README.md, or the workflow itself. It reuses the existing ci-cpp container image and the existing CODEBERG_TOKEN secret already used by mirror-to-codeberg.yml — no new secret setup needed. The job force-pushes an orphan commit to the `pages` branch on codeberg.org/TMoussa/ConformalLabpp, which Codeberg Pages serves from https://tmoussa.codeberg.page/ConformalLabpp/ (verified live). README.md gains a Doxygen badge and a Documentation table row pointing at the Pages URL. locked-vs-flexible.md (the reviewer-facing doc) is updated to mention the Pages URL next to the Doxygen-coverage gap. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
78
.gitea/workflows/doxygen-pages.yml
Normal file
78
.gitea/workflows/doxygen-pages.yml
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
name: Doxygen → Codeberg Pages
|
||||||
|
|
||||||
|
# Auto-publish Doxygen HTML to https://tmoussa.codeberg.page/ConformalLabpp/
|
||||||
|
# every time the public API or docs source changes on main.
|
||||||
|
#
|
||||||
|
# Pattern: mirrors mirror-to-codeberg.yml — reuses the existing
|
||||||
|
# CODEBERG_TOKEN secret + HTTPS push. No new secret setup required.
|
||||||
|
#
|
||||||
|
# Trigger: push to main that touches code/include/**, Doxyfile, the
|
||||||
|
# filter script, doc/**/*.md, README.md, or this workflow file. Also
|
||||||
|
# manually triggerable via workflow_dispatch.
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- "code/include/**"
|
||||||
|
- "Doxyfile"
|
||||||
|
- "scripts/doxygen-md-filter.sh"
|
||||||
|
- "doc/**/*.md"
|
||||||
|
- "README.md"
|
||||||
|
- "CLAUDE.md"
|
||||||
|
- ".gitea/workflows/doxygen-pages.yml"
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: eulernest
|
||||||
|
container:
|
||||||
|
image: git.eulernest.eu/conformallab/ci-cpp:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Configure CMake (Doxygen target only — no compiler needed)
|
||||||
|
run: cmake -S code -B build
|
||||||
|
|
||||||
|
- name: Build Doxygen HTML
|
||||||
|
run: |
|
||||||
|
cmake --build build --target doc
|
||||||
|
test -f doc/doxygen/html/index.html
|
||||||
|
warnings=$(wc -l < doc/doxygen/doxygen-warnings.log)
|
||||||
|
echo "DOC ▸ Doxygen warnings: $warnings"
|
||||||
|
if [ "$warnings" -gt 0 ]; then
|
||||||
|
echo "::warning::Doxygen produced $warnings warning(s) — review doc/doxygen/doxygen-warnings.log"
|
||||||
|
head -30 doc/doxygen/doxygen-warnings.log
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Publish HTML to codeberg pages branch
|
||||||
|
env:
|
||||||
|
CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }}
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
# Build the publish payload in a clean scratch dir so the
|
||||||
|
# orphan branch contains only the Doxygen output (and a
|
||||||
|
# marker README), never any build/source artefacts.
|
||||||
|
publish_dir=$(mktemp -d)
|
||||||
|
cp -r doc/doxygen/html/. "$publish_dir/"
|
||||||
|
|
||||||
|
cat > "$publish_dir/README.txt" <<EOF
|
||||||
|
conformallab++ — Doxygen HTML API documentation.
|
||||||
|
Auto-generated by .gitea/workflows/doxygen-pages.yml from
|
||||||
|
commit ${GITHUB_SHA:-$(git rev-parse HEAD)} on $(date -Iseconds).
|
||||||
|
Source: https://codeberg.org/TMoussa/ConformalLabpp
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cd "$publish_dir"
|
||||||
|
git init -q -b pages
|
||||||
|
git config user.email "ci@eulernest"
|
||||||
|
git config user.name "conformallab CI"
|
||||||
|
git add -A
|
||||||
|
git commit -q -m "Auto-publish: Doxygen HTML for ${GITHUB_SHA:-HEAD}"
|
||||||
|
# Force-push: the pages branch is a publish target, history
|
||||||
|
# is not interesting (we only ever serve the latest snapshot).
|
||||||
|
git push -f \
|
||||||
|
"https://TMoussa:${CODEBERG_TOKEN}@codeberg.org/TMoussa/ConformalLabpp.git" \
|
||||||
|
pages:pages
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
[](https://git.eulernest.eu/conformallab/ConformalLabpp/actions)
|
[](https://git.eulernest.eu/conformallab/ConformalLabpp/actions)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://depositonce.tu-berlin.de/items/8e2988b2-d991-45b5-aad5-9fb7988f3b2f)
|
[](https://depositonce.tu-berlin.de/items/8e2988b2-d991-45b5-aad5-9fb7988f3b2f)
|
||||||
|
[](https://tmoussa.codeberg.page/ConformalLabpp/)
|
||||||
|
|
||||||
C++17 reimplementation of [ConformalLab](https://github.com/varylab/conformallab) —
|
C++17 reimplementation of [ConformalLab](https://github.com/varylab/conformallab) —
|
||||||
Stefan Sechelmann's Java research library for discrete conformal geometry (TU Berlin).
|
Stefan Sechelmann's Java research library for discrete conformal geometry (TU Berlin).
|
||||||
@@ -81,6 +82,7 @@ Layout2D layout = euclidean_layout(mesh, res.x, maps);
|
|||||||
|
|
||||||
| | |
|
| | |
|
||||||
|---|---|
|
|---|---|
|
||||||
|
| **API reference (Doxygen HTML)** — every public class, function and named-parameter helper | https://tmoussa.codeberg.page/ConformalLabpp/ |
|
||||||
| **Getting started** — build modes, single-test invocation, CLI, Docker | [doc/getting-started.md](doc/getting-started.md) |
|
| **Getting started** — build modes, single-test invocation, CLI, Docker | [doc/getting-started.md](doc/getting-started.md) |
|
||||||
| **Pipeline API** — all three geometries, holonomy, serialisation | [doc/api/pipeline.md](doc/api/pipeline.md) |
|
| **Pipeline API** — all three geometries, holonomy, serialisation | [doc/api/pipeline.md](doc/api/pipeline.md) |
|
||||||
| **Public headers** — all public headers with descriptions | [doc/api/headers.md](doc/api/headers.md) |
|
| **Public headers** — all public headers with descriptions | [doc/api/headers.md](doc/api/headers.md) |
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ mechanical next step rather than a missing piece of theory.
|
|||||||
| **`output_uv_map` covers 3 of 5 entries** — Euclidean, Spherical, HyperIdeal are wired to call the appropriate `*_layout()` after Newton. CP-Euclidean (face-based) and Inversive-Distance (vertex-based) entries still require the user to call `*_layout()` by hand. | tutorial + plumbing in place; just needs to be copy-pasted into the two remaining entry headers | ~0.5 day |
|
| **`output_uv_map` covers 3 of 5 entries** — Euclidean, Spherical, HyperIdeal are wired to call the appropriate `*_layout()` after Newton. CP-Euclidean (face-based) and Inversive-Distance (vertex-based) entries still require the user to call `*_layout()` by hand. | tutorial + plumbing in place; just needs to be copy-pasted into the two remaining entry headers | ~0.5 day |
|
||||||
| **Named-parameter chaining: `\|`-operator only, no `.a().b().c()`.** Member-style chaining would need a patch to CGAL's upstream `parameters_interface.h`, which we treat as a read-only vendored dependency. The pipe operator is documented, ADL-discoverable, and equivalent in expressive power. | pipe shipped, member-chain deferred until upstream extension point exists | ~2 days (only if upstream PR is accepted) |
|
| **Named-parameter chaining: `\|`-operator only, no `.a().b().c()`.** Member-style chaining would need a patch to CGAL's upstream `parameters_interface.h`, which we treat as a read-only vendored dependency. The pipe operator is documented, ADL-discoverable, and equivalent in expressive power. | pipe shipped, member-chain deferred until upstream extension point exists | ~2 days (only if upstream PR is accepted) |
|
||||||
| **Phase 9b-analytic: derivation complete, code uses block-FD.** The Schläfli-based analytic HyperIdeal Hessian is fully derived in [`hyperideal-hessian-derivation.md`](../math/hyperideal-hessian-derivation.md) (805 lines, all sign pitfalls covered). The shipped code still uses per-face block-FD (already 96× faster than the legacy full-FD path). | research-ready writeup; implementation gated on the reviewer's view of whether the additional ~6× is worth it | ~2 weeks |
|
| **Phase 9b-analytic: derivation complete, code uses block-FD.** The Schläfli-based analytic HyperIdeal Hessian is fully derived in [`hyperideal-hessian-derivation.md`](../math/hyperideal-hessian-derivation.md) (805 lines, all sign pitfalls covered). The shipped code still uses per-face block-FD (already 96× faster than the legacy full-FD path). | research-ready writeup; implementation gated on the reviewer's view of whether the additional ~6× is worth it | ~2 weeks |
|
||||||
| **Doxygen `WARN_IF_UNDOCUMENTED = NO`.** With `EXTRACT_ALL = YES`, every symbol is in the generated HTML, but symbols without explicit doc comments show only their signature. Public API surface (entry functions, named-parameter helpers, traits typedefs) has hand-written Doxygen; internal helpers vary. | clean (0 warnings) under current policy; not yet enforced "no undocumented symbol" | ~3 days to drive `WARN_IF_UNDOCUMENTED = YES` to zero |
|
| **Doxygen `WARN_IF_UNDOCUMENTED = NO`.** With `EXTRACT_ALL = YES`, every symbol is in the generated HTML — live at <https://tmoussa.codeberg.page/ConformalLabpp/> (auto-published from `main` by `.gitea/workflows/doxygen-pages.yml`) — but symbols without explicit doc comments show only their signature. Public API surface (entry functions, named-parameter helpers, traits typedefs) has hand-written Doxygen; internal helpers vary. | clean (0 warnings) under current policy; not yet enforced "no undocumented symbol"; pursued on a separate branch | ~3 days to drive `WARN_IF_UNDOCUMENTED = YES` to zero |
|
||||||
| **`check-test-counts.sh` not wired into CI.** The script exists, runs locally, and gives the correct answer (23 + 234 = 257 / 0 skipped). CI does not yet fail on a mismatch. | local guard exists, CI integration pending next workflow touch | ~1 hour |
|
| **`check-test-counts.sh` not wired into CI.** The script exists, runs locally, and gives the correct answer (23 + 234 = 257 / 0 skipped). CI does not yet fail on a mismatch. | local guard exists, CI integration pending next workflow touch | ~1 hour |
|
||||||
| **CP-Euclidean and Inversive-Distance research-track entries.** Both ship a working DCE solver, but lack the auxiliary utilities the Euclidean / HyperIdeal entries have (curvature inspection helpers, edge-flip Delaunay maintenance for ID). Out of port scope; listed in [`research-track.md`](../roadmap/research-track.md). | research-track, not blocking | per-utility |
|
| **CP-Euclidean and Inversive-Distance research-track entries.** Both ship a working DCE solver, but lack the auxiliary utilities the Euclidean / HyperIdeal entries have (curvature inspection helpers, edge-flip Delaunay maintenance for ID). Out of port scope; listed in [`research-track.md`](../roadmap/research-track.md). | research-track, not blocking | per-utility |
|
||||||
| **`StereographicUnwrapper`, `CircleDomainUnwrapper`, `CuttingUtility`, `KoebePolyhedron`.** Mentioned in roadmap + research-track docs but not yet ported. Java versions still authoritative. | documented as Phase 11+ / optional | weeks each — explicit "out of port scope unless requested" |
|
| **`StereographicUnwrapper`, `CircleDomainUnwrapper`, `CuttingUtility`, `KoebePolyhedron`.** Mentioned in roadmap + research-track docs but not yet ported. Java versions still authoritative. | documented as Phase 11+ / optional | weeks each — explicit "out of port scope unless requested" |
|
||||||
|
|||||||
Reference in New Issue
Block a user