Skip to content

Commit 6e9df36

Browse files
committed
Revert changes and use simpler approach
1 parent 32a9924 commit 6e9df36

3 files changed

Lines changed: 2 additions & 17 deletions

File tree

dev/tasks/docs/github.linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
shell: bash
3434
env:
3535
ARROW_JAVA_SKIP_GIT_PLUGIN: true
36-
DOCS_DEV: "1"
3736
run: |
3837
mkdir -p build
3938
archery docker run \

docs/source/conf.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -328,23 +328,15 @@
328328
# documentation.
329329
#
330330

331-
# To enable the version switcher during a local build, set the
332-
# environment variable DOCS_DEV to "1".
333-
docs_dev = os.environ.get("DOCS_DEV", "0")
334-
print(f"DOCS_DEV : {docs_dev}")
335-
json_url = "/docs/_static/versions.json"
336-
337-
if docs_dev == "1":
338-
json_url = "https://arrow.apache.org/docs/_static/versions.json"
339-
# json_url = "_static/versions.json"
340-
341331
switcher_version = version
342332
if ".dev" in version:
343333
switcher_version = "dev/"
334+
json_url = "https://arrow.apache.org/docs/_static/versions.json"
344335
else:
345336
# If we are not building dev version of the docs, we are building
346337
# docs for the stable version
347338
switcher_version = ""
339+
json_url = "_static/versions.json"
348340

349341
html_theme_options = {
350342
"show_toc_level": 2,

docs/source/developers/documentation.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,6 @@ These two steps are mandatory and must be executed in order.
9292
not sufficiently comprehensive. Portions of the Python API documentation
9393
will also not build without CUDA support having been built.
9494

95-
.. note::
96-
97-
To enable the version switcher in a local documentation build, set the
98-
environment variable ``DOCS_DEV=1`` before building, or run the build
99-
command with it inline, for example: ``DOCS_DEV=1 make html``.
100-
10195
After these steps are completed, the documentation is rendered in HTML
10296
format in ``arrow/docs/_build/html``. In particular, you can point your browser
10397
at ``arrow/docs/_build/html/index.html`` to read the docs and review any changes

0 commit comments

Comments
 (0)