Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/docs-pages.yaml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/docs-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: "Docs / Publish"
# For more information,
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows

on:
push:
branches:
- scylla-4.x
- 'scylla-**'
paths:
- 'docs/**'
- 'faq/**'
- 'manual/**'
- 'changelog/**'
- 'upgrade_guide/**'
workflow_dispatch:

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
concurrency:
group: single
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.13'

- name: Set up JDK 8 and 11
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: |
8
11
distribution: 'temurin'

- name: Install uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0

- name: Set up env
run: make -C docs setupenv

- name: Build redirects
run: make -C docs redirects

- name: Build docs
run: make -C docs multiversion

# deploy.sh rebuilds gh-pages from this run's output and force-pushes, so a
# version that built no api/ has its live one deleted rather than left stale.
# Record that before deploying and fail the job after, so the versions that did
# build still publish while the loss is still loud. A total loss stops here
# instead: there would be nothing left to publish.
- name: Check javadoc output
id: javadoc-check
run: ./docs/_utils/check-javadoc-output.sh

- name: Deploy docs to GitHub Pages
run: ./docs/_utils/deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Fail if any version lost content
if: steps.javadoc-check.outputs.not-built != '' || steps.javadoc-check.outputs.missing-api != ''
env:
NOT_BUILT: ${{ steps.javadoc-check.outputs.not-built }}
MISSING_API: ${{ steps.javadoc-check.outputs.missing-api }}
run: |
# A version that never built is gone from the site entirely, which is a
# different loss from one that published without its javadoc.
[ -z "$NOT_BUILT" ] || echo "::error::Not built, now removed from the site entirely: $NOT_BUILT"
[ -z "$MISSING_API" ] || echo "::error::Published without javadoc, their /api/ is now gone from the site: $MISSING_API"
exit 1
2 changes: 1 addition & 1 deletion faq/osgi/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```{eval-rst}
```eval_rst
:orphan:
```
## Frequently Asked Questions - OSGi
Expand Down
2 changes: 1 addition & 1 deletion manual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ simply navigate to each sub-directory.
[NoHostAvailableException]: https://docs.datastax.com/en/drivers/java/3.11/com/datastax/driver/core/exceptions/NoHostAvailableException.html
[LocalDate]: https://docs.datastax.com/en/drivers/java/3.11/com/datastax/driver/core/LocalDate.html

```{eval-rst}
```eval_rst
.. toctree::
:hidden:
:glob:
Expand Down
2 changes: 1 addition & 1 deletion manual/custom_codecs/extras/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```{eval-rst}
```eval_rst
:orphan:
```
## Optional codecs
Expand Down
2 changes: 1 addition & 1 deletion manual/object_mapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ See the child pages for more information:
* [using the mapper](using/)
* [using custom codecs](custom_codecs/)

```{eval-rst}
```eval_rst
.. toctree::
:hidden:
:glob:
Expand Down
2 changes: 1 addition & 1 deletion manual/statements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ wrap your statements in a custom [StatementWrapper] implementation.
[execute]: https://docs.datastax.com/en/drivers/java/3.11/com/datastax/driver/core/Session.html#execute-com.datastax.driver.core.Statement-
[executeAsync]: https://docs.datastax.com/en/drivers/java/3.11/com/datastax/driver/core/Session.html#executeAsync-com.datastax.driver.core.Statement-

```{eval-rst}
```eval_rst
.. toctree::
:hidden:
:glob:
Expand Down
2 changes: 1 addition & 1 deletion upgrade_guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ exhaustive list of new features in 2.0.
(`ResultSet#getAvailableWithoutFetching` and `ResultSet#isFullyFetched`)
as well as a mean to force the pre-fetching of the next page (`ResultSet#fetchMoreResults`).

```{eval-rst}
```eval_rst
.. toctree::
:hidden:
:glob:
Expand Down
2 changes: 1 addition & 1 deletion upgrade_guide/migrating_from_astyanax/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See the child pages for more information:
* [Migrating Astyanax configurations to ScyllaDB Java driver configurations](configuration/)
* [Querying and retrieving results comparisons.](queries_and_results/)

```{eval-rst}
```eval_rst
.. toctree::
:hidden:
:glob:
Expand Down
Loading