Skip to content

GH-46956: [Docs][CI] Enable version switcher in local and PR preview build#46957

Merged
kou merged 3 commits into
apache:mainfrom
AlenkaF:gh-46956-docs-dev-build
May 23, 2026
Merged

GH-46956: [Docs][CI] Enable version switcher in local and PR preview build#46957
kou merged 3 commits into
apache:mainfrom
AlenkaF:gh-46956-docs-dev-build

Conversation

@AlenkaF

@AlenkaF AlenkaF commented Jul 1, 2025

Copy link
Copy Markdown
Member

Rationale for this change

Currently, the version switcher is not functional in local builds or in PR preview docs via crossbow, since it relies on the versions.json file from the arrow site.

This makes it difficult to test changes to the switcher configuration or verify that nothing breaks with new theme updates.

What changes are included in this PR?

The version switcher is enabled in a dev setup by:

  • Using online versions.json file when building locally or in PR preview
  • Falling back to the arrow-site JSON otherwise

Are these changes tested?

Yes, preview-docs build.

Are there any user-facing changes?

No, only local testing is simplified.

Comment thread docs/source/conf.py Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the local relative path here doesn't work as expected, so the online https:// URL is used for now.

@AlenkaF

AlenkaF commented Jul 1, 2025

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit preview-docs

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jul 1, 2025
@github-actions

github-actions Bot commented Jul 1, 2025

Copy link
Copy Markdown

Revision: 890cb6ea67ca7368399501061c659a519d28cbb8

Submitted crossbow builds: ursacomputing/crossbow @ actions-119dd58bd4

Task Status
preview-docs GitHub Actions

@AlenkaF AlenkaF force-pushed the gh-46956-docs-dev-build branch from 890cb6e to 995e1ca Compare September 9, 2025 07:36
@AlenkaF AlenkaF marked this pull request as draft September 9, 2025 07:42
@AlenkaF

AlenkaF commented Sep 9, 2025

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit preview-docs

@github-actions

github-actions Bot commented Sep 9, 2025

Copy link
Copy Markdown

Revision: 69bc2a9

Submitted crossbow builds: ursacomputing/crossbow @ actions-b39dd3f51f

Task Status
preview-docs GitHub Actions

@AlenkaF AlenkaF force-pushed the gh-46956-docs-dev-build branch from 69bc2a9 to 6e9df36 Compare May 22, 2026 11:01
@AlenkaF

AlenkaF commented May 22, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit preview-docs

@github-actions

Copy link
Copy Markdown

Revision: 6e9df36

Submitted crossbow builds: ursacomputing/crossbow @ actions-7daf943a1f

Task Status
preview-docs GitHub Actions

@AlenkaF AlenkaF force-pushed the gh-46956-docs-dev-build branch from 6e9df36 to 66d4611 Compare May 22, 2026 16:21
@AlenkaF AlenkaF marked this pull request as ready for review May 22, 2026 16:22
@AlenkaF

AlenkaF commented May 22, 2026

Copy link
Copy Markdown
Member Author

OK, I think the last solution works (and is simpler).

Here is the crossbow preview from this PR (https://s3.amazonaws.com/arrow-data/pr_docs/46957/index.html):

Screenshot 2026-05-22 at 18 13 57

and here is the preview from a different PR (https://s3.amazonaws.com/arrow-data/pr_docs/49947/index.html):

Screenshot 2026-05-22 at 18 14 25

where a version switcher is not being displayed. This is a small change but will make local dev experience nicer. cc @kou in case you have some bandwidth to review this.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kou kou merged commit d40c02e into apache:main May 23, 2026
12 checks passed
@kou kou removed the awaiting committer review Awaiting committer review label May 23, 2026
@github-actions github-actions Bot added the awaiting merge Awaiting merge label May 23, 2026
@kou

kou commented May 23, 2026

Copy link
Copy Markdown
Member

Ah, version switcher can be displayed but links to https://arrow.apache.org/docs/ .
("25.0 (dev)" links to https://arrow.apache.org/docs/dev/index.html not https://s3.amazonaws.com/arrow-data/pr_docs/46957/index.html .)

Version switcher may not provide full features in preview but we can check what displayed now.

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit d40c02e.

There weren't enough matching historic benchmark results to make a call on whether there were regressions.

The full Conbench report has more details.

@AlenkaF

AlenkaF commented May 25, 2026

Copy link
Copy Markdown
Member Author

Version switcher may not provide full features in preview but we can check what displayed now.

Yes, correct. To make all the links point to the working version (dev folders) might be possible with providing a dev version of the versions.json list. I guess we would need to amend it automatically via the preview CI job or locally somehow. Will check what are the possibilities and if it is worth it.

@AlenkaF AlenkaF deleted the gh-46956-docs-dev-build branch May 25, 2026 07:25
Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
…eview build (apache#46957)

### Rationale for this change
Currently, the version switcher is not functional in local builds or in PR preview docs via crossbow, since it relies on the versions.json file from the arrow site.

This makes it difficult to test changes to the switcher configuration or verify that nothing breaks with new theme updates.

### What changes are included in this PR?
The version switcher is enabled in a dev setup by:

- Using online versions.json file when building locally or in PR preview
- Falling back to the arrow-site JSON otherwise

### Are these changes tested?
Yes, preview-docs build.

### Are there any user-facing changes?
No, only local testing is simplified.

* GitHub Issue: apache#46956

Authored-by: AlenkaF <frim.alenka@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants