diff --git a/books/beaglebone-cookbook/11misc/misc.rst b/books/beaglebone-cookbook/11misc/misc.rst index a0f1f931814990d169a3a4422943a7b5a17bef8d..92532299ba44d22ecfe92b40cb792f31c4426911 100644 --- a/books/beaglebone-cookbook/11misc/misc.rst +++ b/books/beaglebone-cookbook/11misc/misc.rst @@ -735,9 +735,7 @@ some 6G bytes. imagemagick-6.q16 librsvg2-bin webp \ texlive-full texlive-latex-extra texlive-fonts-extra \ fonts-freefont-otf fonts-dejavu fonts-dejavu-extra fonts-freefont-ttf - bone$ python3 -m venv .venv - bone$ source .venv/bin/activate - bone$ pip install -r requirements.txt + bone$ ./venv-build-env.sh These instructions came from `lorforlinux <https://beagleboard.slack.com/archives/C8S7EKZC2/p1684940872699269>`_ diff --git a/conf.py b/conf.py index 927f3a5980f9c0561f00bb0d82614f4740759aec..7a3813fa6533df3929629d10ee45545555202161 100644 --- a/conf.py +++ b/conf.py @@ -40,6 +40,7 @@ extensions = [ "sphinx.ext.imgconverter", "sphinx.ext.graphviz", "sphinx.ext.todo", + "sphinx.ext.autodoc", "sphinx_tabs.tabs", "breathe", "sphinx_copybutton", diff --git a/venv-build-env.sh b/venv-build-env.sh index bcf495a0efcbcca3356069b1caf2b259e6aa189d..5993ce8fe0f73655fd882f6bd5a612b3c5867767 100755 --- a/venv-build-env.sh +++ b/venv-build-env.sh @@ -1,11 +1,8 @@ #!/bin/sh # Source this script like `. ./venv-build-env.sh` -if [ ! -e ./sphinx-env ]; then - python3 -m venv sphinx-env +if [ ! -e ./.venv ]; then + python3 -m venv .venv fi -source ./sphinx-env/bin/activate -python3 -m pip install --upgrade pip -python3 -m pip install sphinx==5.3.0 sphinx-rtd-theme sphinx_design sphinx-tabs sphinxcontrib.svg2pdfconverter sphinx-reredirects -python3 -m pip install sphinxcontrib-images sphinx-copybutton -python3 -m pip install breathe exhale -python3 -m pip install graphviz +source ./.venv/bin/activate +pip install --upgrade pip +pip install -r requirements.txt