We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34e2b08 commit cb52f73Copy full SHA for cb52f73
docs/source/conf.py
@@ -23,10 +23,17 @@
23
# -- Project information -----------------------------------------------------
24
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
25
26
+import pathlib
27
+import xml.etree.ElementTree as ET
28
+
29
project = 'arrow-java'
30
copyright = '2025, Apache Arrow Developers'
31
author = 'Apache Arrow Developers'
-release = '18.1.0'
32
33
+top_level_pom_xml = pathlib.Path(__file__).parents[2] / "pom.xml"
34
+tree = ET.parse(top_level_pom_xml)
35
+ns = {"maven": "http://maven.apache.org/POM/4.0.0"}
36
+release = tree.getroot().find("maven:version", ns).text
37
38
# -- General configuration ---------------------------------------------------
39
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
0 commit comments