Skip to content

Commit

Permalink
docs: Update API reference and cheat sheet (#3564)
Browse files Browse the repository at this point in the history
* docs: Update API reference and cheat sheet

* fix: tinytex issues

* Use quarto

* Use quarto 1

* Use quarto 2

* Use quarto 3

---------

Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
2 people authored and mkundu1 committed Dec 13, 2024
1 parent 2e41f58 commit 323931c
Show file tree
Hide file tree
Showing 13 changed files with 174 additions and 224 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@ jobs:
restore-keys: |
Python-${{ runner.os }}-${{ matrix.python-version }}
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Check Quarto Version
shell: bash
run: |
quarto --version
- name: Verify tinytex is installed
run: |
quarto install tinytex --no-prompt --update-path
- name: "Install Poppler for PDF to PNG conversion"
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
- name: Install pyfluent
run: make install

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/doc-build-dev-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@ jobs:
sudo apt update
sudo apt-get install pandoc libegl1 make xvfb libfontconfig1 libxrender1 libxkbcommon-x11-0 -y
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Check Quarto Version
shell: bash
run: |
quarto --version
- name: "Install Poppler for PDF to PNG conversion"
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
- name: Install pyfluent
run: make install

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/doc-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ jobs:
sudo apt update
sudo apt-get install pandoc libegl1 make xvfb libfontconfig1 libxrender1 libxkbcommon-x11-0 -y
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Check Quarto Version
shell: bash
run: |
quarto --version
- name: "Install Poppler for PDF to PNG conversion"
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
- name: Install pyfluent
run: make install

Expand Down
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
Loading

0 comments on commit 323931c

Please sign in to comment.