Skip to content

Commit

Permalink
docs: Update API reference and cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Dec 11, 2024
1 parent 2e41f58 commit 2b2f215
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api_rstgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def _generate_api_source_rst_files(folder: str, files: list):
f".. automodule:: ansys.fluent.core.{folder}.{file}\n"
)
else:
rst.write(f"ansys.fluent.core.{file}\n")
rst.write(f'{"="*(len(f"ansys.fluent.core.{file}"))}\n\n')
rst.write(f"{file}\n")
rst.write(f'{"="*(len(f"{file}"))}\n\n')
rst.write(f".. automodule:: ansys.fluent.core.{file}\n")
if "root" not in file:
_write_common_rst_members(rst_file=rst)
Expand All @@ -191,8 +191,8 @@ def _generate_api_index_rst_files():
file = _get_file_path(folder, "index")
with open(file, "w", encoding="utf8") as index:
index.write(f".. _ref_{folder}:\n\n")
index.write(f"ansys.fluent.core.{folder}\n")
index.write(f'{"="*(len(f"ansys.fluent.core.{folder}"))}\n\n')
index.write(f"{folder}\n")
index.write(f'{"="*(len(f"{folder}"))}\n\n')
index.write(f".. automodule:: ansys.fluent.core.{folder}\n")
_write_common_rst_members(rst_file=index)
index.write(".. toctree::\n")
Expand Down
1 change: 1 addition & 0 deletions doc/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ full guidelines on their use.
.. toctree::
:maxdepth: 2
:hidden:
:caption: ansys.fluent.core

filereader/index
launcher/index
Expand Down

0 comments on commit 2b2f215

Please sign in to comment.