Skip to content

Commit

Permalink
override haystack doc version (#3)
Browse files Browse the repository at this point in the history
* override haystack doc version

* bump version
  • Loading branch information
masci authored May 6, 2024
1 parent bf89ecd commit 4025408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/haystack_pydoc_tools/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Massimiliano Pippi <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.2.0"
__version__ = "0.3.0"
2 changes: 1 addition & 1 deletion src/haystack_pydoc_tools/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ReadmeRenderer(Renderer):

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

def _doc_version(self) -> str:
Expand Down

0 comments on commit 4025408

Please sign in to comment.