Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 50
ref: main
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ build:
os: "ubuntu-22.04"
tools:
python: "3.11"
jobs:
post_checkout:
- git fetch --unshallow || true
Comment on lines +14 to +16
Copy link
Member

@amotl amotl Jun 23, 2025

Choose a reason for hiding this comment

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

It looks like the build is not failing on RTD (is it?), so we don't need this update here, just for GHA?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No it also fails on RTD, so this is needed.

Copy link
Member

Choose a reason for hiding this comment

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

Oh ok. Do you have a sample? Maybe an update of Git on their ends responsible for the regression?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://docs.readthedocs.com/platform/stable/build-customization.html#unshallow-git-clone describes this (in general). I doubt RTD can do anything about this except describe the issue in general?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://app.readthedocs.org/projects/crate-jdbc/builds/28608809/ shows an example of the same build problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://pypi.org/project/sphinx-last-updated-by-git/ describes how to handle this issue if the extension is used.

Copy link
Member

Choose a reason for hiding this comment

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

Wow, thanks.


# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
============================
============================
CrateDB Documentation System
============================

Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from crate.theme.rtd.conf.theme import *

#suppress_warnings = ['git.too_shallow']
Copy link
Member

@amotl amotl Jun 23, 2025

Choose a reason for hiding this comment

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

This one will just apply to the documentation of this tool repository in isolation, nothing else. If we want to roll out a Sphinx setting across all documentation projects, crate-docs-theme is the right place.

Copy link
Member

Choose a reason for hiding this comment

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

I think suppressing warnings should only happen as a very last resort, of course always depending on circumstances.

Copy link
Member

Choose a reason for hiding this comment

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

Let's remove this, merge, and then spread it out to other repositories?

Copy link
Contributor Author

@bmunkholm bmunkholm Jun 24, 2025

Choose a reason for hiding this comment

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

There are still a few open questions:

  1. What depth is needed when fetching?
  2. Do we get any value out of the new sphinx-sitemap? I.e. dates on when a page was updated? Is that for end users or search?
  3. Can we disable this by configuration (assuming we don't need/want it). I remember seeing something, but don't recall exact config option right now...
  4. Will this be fixed in sphinx-sitemap itself?

Therefore itt seems very attractive to be able to fix this temporarily for all docs builds just one place, so I would suggest to pin sphinx-sitemap in crate-docs-theme instead for now.

Copy link
Member

@amotl amotl Jun 25, 2025

Choose a reason for hiding this comment

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

Hi Brian.

It seems very attractive to be able to fix this temporarily for all docs builds just one place, so I would suggest to crate/crate-docs-theme#611 instead for now.

That's absolutely way to go in such a situation, thank you so much.