Point website links and docs build to GitHub Pages Update user-facing website references (README.md, CONTRIBUTING.md, CITATION.cff, CMakeLists.txt, and package.xml) from ceres-solver.org to https://ceres-solver.github.io/ceres-solver/ while the domain is unavailable. Update .github/workflows/docs.yml to: - Rewrite the dead ceres-solver.org release tarball link in the 2.2.0 stable installation page to point to GitHub Releases. - Set html_baseurl for both stable and dev builds so Sphinx emits canonical URLs for GitHub Pages. - Remove the unused docs/source/CNAME file (ignored by GitHub Actions Pages deployments). Change-Id: Ia3ab4c3494476297842bd32b3a0e17f78839c2e8
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 72a8c49..dc7f444 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml
@@ -38,13 +38,25 @@ STABLE_TAG=$(git tag --list '[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n1) mkdir -p "${RUNNER_TEMP}/stable-src" git archive "${STABLE_TAG}" | tar -x -C "${RUNNER_TEMP}/stable-src" - cp docs/source/conf.py docs/source/CNAME "${RUNNER_TEMP}/stable-src/docs/source/" + cp docs/source/conf.py "${RUNNER_TEMP}/stable-src/docs/source/" rm -rf "${RUNNER_TEMP}/stable-src/docs/source/_templates" cp -r docs/source/_templates "${RUNNER_TEMP}/stable-src/docs/source/_templates" + python3 -c ' + import pathlib, re, sys + path = pathlib.Path(sys.argv[1]) + text = path.read_text(encoding="utf-8") + text = re.sub( + r"https?://ceres-solver\.org/ceres-solver-[^>\s]+\.tar\.gz", + "https://github.com/ceres-solver/ceres-solver/releases/latest", + text, + ) + path.write_text(text, encoding="utf-8") + ' "${RUNNER_TEMP}/stable-src/docs/source/installation.rst" sphinx-build -D nitpicky=0 \ -A ceres_doc_variant=stable \ -A "stable_version=${STABLE_TAG}" \ -D "html_theme_options.source_branch=${STABLE_TAG}" \ + -D html_baseurl=https://ceres-solver.github.io/ceres-solver/ \ -b html "${RUNNER_TEMP}/stable-src/docs/source" _site - name: Build development (HEAD) documentation @@ -53,6 +65,7 @@ sphinx-build -W -n \ -A ceres_doc_variant=dev \ -A "stable_version=${STABLE_TAG}" \ + -D html_baseurl=https://ceres-solver.github.io/ceres-solver/dev/ \ -b html docs/source _site/dev - name: Upload Pages artifact
diff --git a/CITATION.cff b/CITATION.cff index ff9577d..16a785e 100644 --- a/CITATION.cff +++ b/CITATION.cff
@@ -12,4 +12,4 @@ date-released: 2023-10-13 license: BSD-3-Clause repository-code: https://github.com/ceres-solver/ceres-solver -url: https://ceres-solver.org +url: https://ceres-solver.github.io/ceres-solver/
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7686e90..e054c11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -76,7 +76,7 @@ project(Ceres DESCRIPTION "A large scale non-linear optimization library" - HOMEPAGE_URL http://ceres-solver.org/ + HOMEPAGE_URL https://ceres-solver.github.io/ceres-solver/ LANGUAGES C CXX VERSION ${CERES_VERSION} )
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a03570..e6681ac 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md
@@ -10,5 +10,5 @@ primarily meant for issue tracking. Please see our -[Contributing to Ceres Guide](http://ceres-solver.org/contributing.html) +[Contributing to Ceres Guide](https://ceres-solver.github.io/ceres-solver/contributing.html) for more details.
diff --git a/README.md b/README.md index 7de8f0d..e2d0de4 100644 --- a/README.md +++ b/README.md
@@ -14,5 +14,5 @@ 1. Non-linear Least Squares problems with bounds constraints. 2. General unconstrained optimization problems. -Please see [ceres-solver.org](http://ceres-solver.org/) for more -information. +Please see the [Ceres Solver website](https://ceres-solver.github.io/ceres-solver/) +for more information.
diff --git a/docs/source/CNAME b/docs/source/CNAME deleted file mode 100644 index f7bcb0c..0000000 --- a/docs/source/CNAME +++ /dev/null
@@ -1 +0,0 @@ -ceres-solver.org
diff --git a/docs/source/conf.py b/docs/source/conf.py index 671c2f8..40249e4 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py
@@ -97,7 +97,6 @@ 'ceres_doc_variant': 'dev', 'stable_version': _stable_version, } -html_extra_path = ['CNAME'] html_domain_indices = True html_use_index = True html_split_index = False
diff --git a/package.xml b/package.xml index e94bdb5..41a3c6b 100644 --- a/package.xml +++ b/package.xml
@@ -36,7 +36,7 @@ The Ceres Solver Authors </maintainer> <license>New BSD</license> - <url type="website">http://ceres-solver.org/</url> + <url type="website">https://ceres-solver.github.io/ceres-solver/</url> <buildtool_depend>cmake</buildtool_depend>