You need to have an environment with sphinx, pybind and c++ installed
- generate the .so with pybind The pybind11 folder contains the small example from pybind documentation.
Go in the pybind11 folder and play the following command:
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) example.cpp -o example$(python3-config --extension-suffix)
-
Copy the generated .so in the doc folder
-
Go in doc folder and play
sphinx-build . ../build