-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable autodoc & sphinx-apidoc for nv-ingest, nv-ingest-api, and nv-i…
…ngest-client (#477)
- Loading branch information
Showing
11 changed files
with
71 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. | ||
# All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Define paths | ||
SPHINX_BUILD_DIR=sphinx_docs/build | ||
SPHINX_SOURCE_DIR=sphinx_docs/source | ||
SPHINX_OUTPUT_DIR=docs/user-guide/developer-guide/api-docs | ||
|
||
# Default target | ||
.PHONY: all | ||
all: docs | ||
|
||
# Run apidoc against nv-ingest, nv-ingest-api, and nv-ingest-client codebase | ||
.PHONY: sphinx-apidoc | ||
sphinx-apidoc: | ||
@echo "🏃 Running sphinx-apidoc against nv-ingest" | ||
sphinx-apidoc -o sphinx_docs/source/nv-ingest ../src/nv_ingest | ||
|
||
@echo "🏃 Running sphinx-apidoc against nv-ingest-api" | ||
sphinx-apidoc -o sphinx_docs/source/nv-ingest-api ../api/src/nv_ingest_api | ||
|
||
@echo "🏃 Running sphinx-apidoc against nv-ingest-client" | ||
sphinx-apidoc -o sphinx_docs/source/nv-ingest-client ../client/src/nv_ingest_client | ||
|
||
# Build Sphinx documentation | ||
.PHONY: sphinx | ||
sphinx: | ||
@echo "📖 Building Sphinx documentation..." | ||
sphinx-build -b html $(SPHINX_SOURCE_DIR) $(SPHINX_BUILD_DIR)/html | ||
|
||
# Copy Sphinx HTML output to the final location | ||
.PHONY: copy-sphinx | ||
copy-sphinx: sphinx | ||
@echo "📂 Copying Sphinx docs to $(SPHINX_OUTPUT_DIR)..." | ||
mkdir -p $(SPHINX_OUTPUT_DIR) | ||
cp -r $(SPHINX_BUILD_DIR)/html/* $(SPHINX_OUTPUT_DIR)/ | ||
|
||
# Run MkDocs to build final documentation | ||
.PHONY: mkdocs | ||
mkdocs: | ||
@echo "📚 Building MkDocs site..." | ||
mkdocs build | ||
|
||
# Full docs pipeline | ||
.PHONY: docs | ||
docs: sphinx-apidoc sphinx copy-sphinx mkdocs | ||
@echo "✅ Documentation build complete!" | ||
|
||
# Clean up built docs | ||
.PHONY: clean | ||
clean: | ||
@echo "🧹 Cleaning up built documentation..." | ||
rm -rf $(SPHINX_BUILD_DIR) $(SPHINX_OUTPUT_DIR) site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
NV-Ingest documentation | ||
======================= | ||
=============== | ||
API reference | ||
=============== | ||
|
||
Add a welcome message here ..... | ||
Provides API references for the `nv-ingest-api`, `nv-ingest-client`, and `nv-ingest` modules. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
:maxdepth: 2 | ||
:caption: NV-Ingest Packages | ||
|
||
user_guide/index | ||
nv-ingest-api/modules.rst | ||
nv-ingest-client/modules.rst | ||
nv-ingest/modules.rst |
58 changes: 0 additions & 58 deletions
58
...cs/api/api/nv_ingest_api.primitives.control_message_task.ControlMessageTask.rst
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
docs/sphinx_docs/source/user_guide/api_docs/api/primitives.rst
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.