-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update #342 Sphinx Python Documentation.
Work in progress. This PR adds a new build target named `MaterialXDocsPython`, which generates Python API documentation using Sphinx. The existing developer guide contents are incorporated into the new HTML documentation, which lives side-by-side to the existing Doxygen-generated C++ API documentation. The docstrings of the Python modules were tweaked to describe what the individual modules are responsible for. Signed-off-by: Stefan Habel <[email protected]>
- Loading branch information
1 parent
a62a468
commit 9e4c1ff
Showing
22 changed files
with
470 additions
and
63 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,20 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package(Python3) | ||
if(PYTHON3_FOUND) | ||
get_filename_component(_PYTHON_EXECUTABLE_DIR "${PYTHON_EXECUTABLE}" DIRECTORY) | ||
set( | ||
_SPHINX_SEARCH_PATHS | ||
"${_PYTHON_EXECUTABLE_DIR}" | ||
"${_PYTHON_EXECUTABLE_DIR}/bin" | ||
"${_PYTHON_EXECUTABLE_DIR}/Scripts" | ||
) | ||
endif() | ||
|
||
find_program( | ||
SPHINX_EXECUTABLE | ||
NAMES sphinx-build sphinx-build.exe | ||
HINTS ${_SPHINX_SEARCH_PATHS}) | ||
mark_as_advanced(SPHINX_EXECUTABLE) | ||
|
||
find_package_handle_standard_args(Sphinx DEFAULT_MSG SPHINX_EXECUTABLE) |
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
Oops, something went wrong.