Skip to content

Commit

Permalink
apacheGH-611: [Docs] Detect version from pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 13, 2025
1 parent 34e2b08 commit 376a737
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,17 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

import pathlib
import re

project = 'arrow-java'
copyright = '2025, Apache Arrow Developers'
author = 'Apache Arrow Developers'
release = '18.1.0'

top_level_pom_xml = pathlib.Path(__file__).parents[2] / "pom.xml"
release = re.findall("^ <version>(.+?)</version>",
top_level_pom_xml.read_text(),
re.MULTILINE)[0]

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down

0 comments on commit 376a737

Please sign in to comment.