forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: forward-ports from 3.x #256
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8659c15
Pin specific version of Jinja2
avelanarius f8c3c9d
docs: update theme 1.2
dgarcia360 d92e6df
Add Java Driver 4.x branches to documentation
avelanarius f4d4d79
docs: update theme 1.3
dgarcia360 79eccb7
fix: redirection to api reference
dgarcia360 680de75
Add license notice
dgarcia360 1e2ed28
Add java-driver.docs.scylladb.com replacements
avelanarius d8345c1
Fix java-driver.docs.scylladb.com replacement
avelanarius b0a57a5
Add 4.14.1.x and 4.15.0.x to generated docs
avelanarius 235c6ac
docs: update theme
dgarcia360 208efa6
docs: update conf.py
dgarcia360 63ee0f9
docs: update theme 1.5
dgarcia360 dd8c03b
docs: update theme 1.6
dgarcia360 963151e
docs: wrap long line for better readability
tchaikov 1010682
docs: update workflows
dgarcia360 9b7c7f7
docs: add myst parser
dgarcia360 eb97246
docs: triggered when on push to scylla-3.x
tchaikov db334b9
docs: update theme
dgarcia360 04d1a58
docs: suppress warning from autosectionlabel
tchaikov 3311fc8
manual: correct the codeblock directive
tchaikov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Docs / Publish" | ||
# For more information, | ||
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows | ||
|
||
on: | ||
push: | ||
branches: | ||
- scylla-3.x | ||
- 'branch-**' | ||
paths: | ||
- 'docs/**' | ||
- 'faq/**' | ||
- 'manual/**' | ||
- 'changelog/**' | ||
- 'upgrade_guide/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.repository.default_branch }} | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- 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 | ||
- name: Deploy docs to GitHub Pages | ||
run: ./docs/_utils/deploy.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Docs / Build PR" | ||
# For more information, | ||
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- scylla-4.x | ||
paths: | ||
- 'docs/**' | ||
- 'faq/**' | ||
- 'manual/**' | ||
- 'changelog/**' | ||
- 'upgrade_guide/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Set up env | ||
run: make -C docs setupenv | ||
- name: Build docs | ||
run: make -C docs test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Building the docs | ||
|
||
## Prerequisites | ||
|
||
To build the documentation of this project, you need a UNIX-based operating system. Windows is not fully supported as it does not support symlinks. | ||
|
||
You also need the following software installed to generate the reference documentation of the driver: | ||
|
||
- Java JDK 8 or higher | ||
- Maven | ||
|
||
Once you have installed the above software, you can build and preview the documentation by following the steps outlined in the `Quickstart guide <https://sphinx-theme.scylladb.com/stable/getting-started/quickstart.html>`_. | ||
|
||
## Custom commands | ||
|
||
To generate the reference documentation of the driver, run the command `make javadoc`. This command generates the reference documentation using the Javadoc tool in the `_build/dirhtml/<VERSION>/api` directory. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,105 @@ | ||
# You can set these variables from the command line. | ||
POETRY = $(HOME)/.poetry/bin/poetry | ||
SPHINXOPTS = | ||
POETRY = poetry | ||
SPHINXOPTS = -j auto | ||
SPHINXBUILD = $(POETRY) run sphinx-build | ||
PAPER = | ||
BUILDDIR = _build | ||
SOURCE_DIR = _source | ||
SOURCEDIR = _source | ||
|
||
# Internal variables. | ||
# Internal variables | ||
PAPEROPT_a4 = -D latex_paper_size=a4 | ||
PAPEROPT_letter = -D latex_paper_size=letter | ||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE_DIR) | ||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR) | ||
TESTSPHINXOPTS = $(ALLSPHINXOPTS) -W --keep-going | ||
|
||
# the i18n builder cannot share the environment and doctrees with the others | ||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR) | ||
|
||
.PHONY: all | ||
all: dirhtml | ||
|
||
# Setup commands | ||
.PHONY: setupenv | ||
setupenv: | ||
pip install -q poetry | ||
|
||
.PHONY: setup | ||
setup: | ||
$(POETRY) install | ||
$(POETRY) update | ||
@if [ ! -d "$(SOURCEDIR)" ]; then mkdir -p "$(SOURCEDIR)"; fi | ||
cp -RL source/* $(SOURCEDIR) | ||
cd $(SOURCEDIR) && find . -name README.md -execdir mv '{}' index.md ';' | ||
|
||
# Clean commands | ||
.PHONY: pristine | ||
pristine: clean | ||
git clean -dfX | ||
|
||
.PHONY: setup | ||
setup: | ||
./_utils/setup.sh | ||
cp -TLr source $(SOURCE_DIR) | ||
cd $(SOURCE_DIR) && find . -name README.md -execdir mv '{}' index.md ';' | ||
.PHONY: clean | ||
clean: | ||
rm -rf $(BUILDDIR)/* | ||
rm -rf $(SOURCE_DIR)/* | ||
|
||
.PHONY: preview | ||
preview: setup | ||
cd .. && ./docs/_utils/javadoc.sh | ||
$(POETRY) run sphinx-autobuild -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml --port 5500 | ||
rm -rf $(SOURCEDIR)/* | ||
rm -f poetry.lock | ||
|
||
# Generate output commands | ||
.PHONY: dirhtml | ||
dirhtml: setup | ||
@$(javadoc) | ||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||
|
||
.PHONY: singlehtml | ||
singlehtml: setup | ||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml | ||
.PHONY: javadoc | ||
javadoc: setup | ||
cd .. && ./docs/_utils/javadoc.sh | ||
@echo | ||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." | ||
|
||
.PHONY: multiversion | ||
multiversion: setup | ||
$(POETRY) run ./_utils/multiversion.sh | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||
|
||
.PHONY: epub | ||
epub: setup | ||
epub: setup | ||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub | ||
@echo | ||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub." | ||
|
||
.PHONY: epub3 | ||
epub3: setup | ||
epub3:setup | ||
$(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3 | ||
@echo | ||
@echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3." | ||
|
||
.PHONY: dummy | ||
dummy: setup | ||
dummy: setup | ||
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy | ||
@echo | ||
@echo "Build finished. Dummy builder generates no files." | ||
|
||
.PHONY: linkcheck | ||
linkcheck: setup | ||
$(SPHINXBUILD) -b linkcheck $(SOURCE_DIR) $(BUILDDIR)/linkcheck | ||
|
||
.PHONY: multiversion | ||
multiversion: setup | ||
@mkdir -p $(HOME)/.cache/pypoetry/virtualenvs | ||
$(POETRY) run ./_utils/multiversion.sh | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||
# Preview commands | ||
.PHONY: preview | ||
preview: setup | ||
$(POETRY) run sphinx-autobuild -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml --port 5500 --re-ignore 'api/*' | ||
|
||
.PHONY: multiversionpreview | ||
multiversionpreview: multiversion | ||
$(POETRY) run python3 -m http.server 5500 --directory $(BUILDDIR)/dirhtml | ||
$(POETRY) run python -m http.server 5500 --directory $(BUILDDIR)/dirhtml | ||
|
||
.PHONY: redirects | ||
redirects: setup | ||
$(POETRY) run redirects-cli fromfile --yaml-file _utils/redirects.yaml --output-dir $(BUILDDIR)/dirhtml | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||
|
||
# Test commands | ||
.PHONY: test | ||
test: setup | ||
$(SPHINXBUILD) -b dirhtml $(TESTSPHINXOPTS) $(BUILDDIR)/dirhtml | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." | ||
|
||
.PHONY: linkcheck | ||
linkcheck: setup | ||
$(SPHINXBUILD) -b linkcheck $(SOURCEDIR) $(BUILDDIR)/linkcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#! /bin/bash | ||
|
||
cd .. && sphinx-multiversion docs/source docs/_build/dirhtml \ | ||
--pre-build './docs/_utils/javadoc.sh' \ | ||
--pre-build "find . -mindepth 2 -name README.md -execdir mv '{}' index.md ';'" | ||
--pre-build "find . -mindepth 2 -name README.md -execdir mv '{}' index.md ';'" \ | ||
--post-build './docs/_utils/javadoc.sh' |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="notice"> | ||
<p>ScyllaDB Java Driver is available under the <a href="https://www.apache.org/licenses/LICENSE-2.0.html">Apache v2 License</a>. | ||
ScyllaDB Java Driver is a fork of <a href="https://github.com/datastax/java-driver">DataStax Java Driver</a>. | ||
See Copyright <a href="https://java-driver.docs.scylladb.com/stable/#license">here</a>.</p> | ||
</div> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels wrong. Wouldn't that never fire?