Skip to content

Commit a7f8095

Browse files
Initial scaffold
Signed-off-by: Ashwin Vaidya <[email protected]>
1 parent 16818b0 commit a7f8095

File tree

7 files changed

+2727
-0
lines changed

7 files changed

+2727
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,8 @@ dmypy.json
135135

136136
# Pyre type checker
137137
.pyre/
138+
139+
# Sphinx documentation
140+
docs/build/
141+
docs/build_cpp/
142+
docs/source/_build/

Doxyfile

Lines changed: 2579 additions & 0 deletions
Large diffs are not rendered by default.

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

docs/requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
myst-parser
2+
nbsphinx
3+
pandoc
4+
sphinx
5+
sphinx_autodoc_typehints
6+
sphinx_book_theme
7+
sphinx-copybutton
8+
sphinx_design
9+
breathe
10+
graphviz

docs/source/conf.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
9+
import sys
10+
from pathlib import Path
11+
12+
# Define the path to your module using Path
13+
module_path = Path(__file__).parent.parent / "model_api" / "python"
14+
15+
# Insert the path to sys.path
16+
sys.path.insert(0, str(module_path.resolve()))
17+
18+
project = 'InferenceSDK'
19+
copyright = '2024, Intel OpenVINO'
20+
author = 'Intel OpenVINO'
21+
release = '2024'
22+
23+
# -- General configuration ---------------------------------------------------
24+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
25+
26+
extensions = [
27+
"breathe",
28+
"sphinx.ext.autodoc",
29+
"sphinx.ext.mathjax",
30+
"sphinx_design",
31+
"myst_parser",
32+
"nbsphinx",
33+
"sphinx.ext.napoleon",
34+
"sphinx_autodoc_typehints",
35+
"sphinx_copybutton",
36+
"sphinx.ext.graphviz"
37+
]
38+
39+
templates_path = ['_templates']
40+
exclude_patterns = []
41+
42+
43+
44+
# -- Options for HTML output -------------------------------------------------
45+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
46+
47+
html_theme = "sphinx_book_theme"
48+
html_static_path = ['_static']
49+
html_theme_options = {
50+
"logo": {
51+
"text": "InferenceSDK",
52+
},
53+
}
54+
55+
breathe_projects = {"InferenceSDK": Path(__file__).parent.parent/"build_cpp"/ "xml"}
56+
breathe_default_project = "InferenceSDK"

docs/source/index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# InferenceSDK Documentation
2+
3+
```{attention}
4+
WIP
5+
```
6+
7+
```{eval-rst}
8+
.. doxygenindex::
9+
:project: InferenceSDK
10+
:path: ...
11+
:outline:
12+
:no-link:
13+
:allow-dot-graphs:
14+
```
15+
16+
```{eval-rst}
17+
.. automodule:: model_api.models
18+
:members:
19+
:undoc-members:
20+
:show-inheritance:
21+
22+
```

0 commit comments

Comments
 (0)