Skip to content

Commit 4025408

Browse files
authored
override haystack doc version (#3)
* override haystack doc version * bump version
1 parent bf89ecd commit 4025408

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2024-present Massimiliano Pippi <[email protected]>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
__version__ = "0.2.0"
4+
__version__ = "0.3.0"

src/haystack_pydoc_tools/renderers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ReadmeRenderer(Renderer):
5959

6060
def init(self, context: Context) -> None:
6161
self.markdown.init(context)
62-
self.version = self._doc_version()
62+
self.version = os.environ.get("PYDOC_TOOLS_HAYSTACK_DOC_VERSION", self._doc_version())
6363
self.categories = self._readme_categories(self.version)
6464

6565
def _doc_version(self) -> str:

0 commit comments

Comments
 (0)