docs/documentation_build_instructions.md
NOTE: Instructions were tested inside container based on Ubuntu 22.04 docker image.
$ git clone <openvino_repository_url> <repository_path>
$ cd <repository_path>
$ git submodule update --init --recursive
install_build_dependencies.sh script located in OpenVINO root directory$ chmod +x install_build_dependencies.sh
$ ./install_build_dependencies.sh
$ apt install -y doxygen graphviz texlive
$ python3 -m venv env
$ source env/bin/activate
(env) $ pip install --upgrade setuptools pip
(env) $ pip install -r docs/requirements.txt
(env) $ python -m pip install docs/openvino_sphinx_theme
(env) $ pip install docs/openvino_custom_sphinx_sitemap
(env) $ mkdir build && cd build
(env) $ cmake .. -DENABLE_DOCS=ON
(env) $ cmake --build . --target sphinx_docs
Depending on the needs, following variables can be added to first cmake call:
-DENABLE_CPP_API=ON-DENABLE_PYTHON_API=ON-DENABLE_GENAI_API=ON-DENABLE_NOTEBOOKS=ON-DENABLE_OVMS=ON -DOVMS_DOCS_DIR=<path_to_OVMS_repo>Note: When building the Python API documentation, the OpenVINO package version specified in conf.py is automatically downloaded using the installation script.
If you need a specific version or want to use an already installed OpenVINO package, modify these files accordingly.