Skip to content

Commit

Permalink
update version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatnamnguyengtvthcm committed Aug 30, 2023
1 parent 0ac8a56 commit 3a10072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def custom_defined_func():
needs_build_json = True

# build needs_json for every needs-id to make detail panel
needs_build_json_per_id = False
needs_build_json_per_id = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
3 changes: 2 additions & 1 deletion sphinx_needs/needsfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ def wipe_version(self, version: str) -> None:
if version in self.needs_list["versions"]:
del self.needs_list["versions"][version]

def write_json(self, needs_file: str = "needs.json", needs_path=None) -> None:
def write_json(self, needs_file: str = "needs.json", needs_path: str = "") -> None:
# We need to rewrite some data, because this kind of data gets overwritten during needs.json import.
self.needs_list["created"] = datetime.now().isoformat()
self.needs_list["current_version"] = self.current_version
self.needs_list["project"] = self.project
print(f"tye:{type(needs_path)}")
if needs_path:
needs_dir = needs_path
else:
Expand Down

0 comments on commit 3a10072

Please sign in to comment.