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 ef926b1 commit 0ac8a56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sphinx_needs/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from sphinx_needs.config import NeedsSphinxConfig
from sphinx_needs.data import NeedsInfoType, SphinxNeedsData
from sphinx_needs.filter_common import filter_needs
from sphinx_needs.logging import get_logger
from sphinx_needs.needsfile import NeedsList
from sphinx_needs.utils import unwrap
Expand Down Expand Up @@ -46,6 +45,8 @@ def finish(self) -> None:
# This is needed as needs could have been removed from documentation and if this is the case,
# removed needs would stay in needs_list, if list gets not cleaned.
needs_list.wipe_version(version)
#
from sphinx_needs.filter_common import filter_needs

filter_string = needs_config.builder_filter
filtered_needs: List[NeedsInfoType] = filter_needs(self.app, data.get_or_create_needs().values(), filter_string)
Expand Down Expand Up @@ -180,6 +181,8 @@ def finish(self) -> None:
version = getattr(env.config, "version", "unset")
needs_config = NeedsSphinxConfig(env.config)
filter_string = needs_config.builder_filter
from sphinx_needs.filter_common import filter_needs

filtered_needs = filter_needs(self.app, needs, filter_string)
needs_build_json_per_id_path = needs_config.build_json_per_id_path
needs_dir = os.path.join(self.outdir, needs_build_json_per_id_path)
Expand Down

0 comments on commit 0ac8a56

Please sign in to comment.