Skip to content

Commit

Permalink
Add C++ docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Sep 4, 2024
1 parent 0d1a6d0 commit d40b458
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
paths-ignore:
- "tests/**"
- "third_party/**"
- "README.md"
- "*.md"
branches:
- main
push:
paths-ignore:
- "tests/**"
- "third_party/**"
- "README.md"
- "*.md"
branches:
- main

Expand All @@ -26,9 +26,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.10" ]
runs-on: "${{ matrix.os }}"
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
Expand All @@ -52,6 +51,8 @@ jobs:
- name: Build docs
run: |
set -x
sudo apt update && sudo apt install -yqq doxygen
conda install -c file://${HOME}/package/ spdl
conda install -c conda-forge 'ffmpeg==6'
pip install -r docs/requirements.txt
Expand Down
3 changes: 2 additions & 1 deletion docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
set -eux

cd "$(dirname "$0")"
rm -rf _build source/generated

find source/generated ! -name 'libspdl_*.rst' -type f -exec rm -f {} +

mkdir -p _build/breathe/doxygen/libspdl/xml/

Expand Down
5 changes: 2 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
furo==2024.7.18
sphinx==7.4.7
sphinxcontrib-mermaid==0.9.2
#
# C++
# breathe
# exhale
breathe
exhale
4 changes: 0 additions & 4 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ API Reference
spdl.io
spdl.dataloader
spdl.utils

.. toctree::

generated/libspdl/root
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"sphinx.ext.linkcode",
"sphinx.ext.napoleon",
"sphinxcontrib.mermaid",
# "breathe",
# "exhale",
"breathe",
"exhale",
]
autosummary_generate = True
autosummary_imported_members = True
Expand Down
9 changes: 9 additions & 0 deletions docs/source/cpp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
API References (C++)
====================

.. toctree::
:caption: API References (C++)

Class List <generated/libspdl/libspdl_class>
File List <generated/libspdl/libspdl_file>
API <generated/libspdl/libspdl_api>
1 change: 1 addition & 0 deletions docs/source/generated/libspdl/libspdl_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: unabridged_api.rst.include
1 change: 1 addition & 0 deletions docs/source/generated/libspdl/libspdl_class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: class_view_hierarchy.rst.include
1 change: 1 addition & 0 deletions docs/source/generated/libspdl/libspdl_file.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: file_view_hierarchy.rst.include
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ SPDL (Scalable and Performant Data Loading)
:caption: API References

API Reference <api>
API Reference (C++) <cpp>
API Reference (Meta) <fb/api>
API Index <genindex>

Expand Down

0 comments on commit d40b458

Please sign in to comment.