Skip to content

Commit

Permalink
Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ajain-work committed May 26, 2022
1 parent e6dcaf8 commit e8cebf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@python settings_rstgen.py
# @python settings_rstgen.py
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# customized clean due to examples gallery
Expand Down
7 changes: 3 additions & 4 deletions doc/settings_rstgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import os


from ansys.fluent.core.solver import settings

parents_dict = {}
rst_list = []
Expand Down Expand Up @@ -198,7 +198,6 @@ def _populate_rst_from_settings(rst_dir, cls):


if __name__ == "__main__":
#from ansys.fluent.core.solver import settings
print("Generating rst files for settings API classes")
dirname = os.path.dirname(__file__)
rst_dir = os.path.normpath(
Expand All @@ -215,5 +214,5 @@ def _populate_rst_from_settings(rst_dir, cls):
if not os.path.exists(rst_dir):
os.makedirs(rst_dir)

#_populate_parents_list(settings.root)
#_populate_rst_from_settings(rst_dir, settings.root)
_populate_parents_list(settings.root)
_populate_rst_from_settings(rst_dir, settings.root)

0 comments on commit e8cebf9

Please sign in to comment.