From 6685fe1690da024f9b79381d2859a6a6de679773 Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Sun, 14 Apr 2024 14:24:30 -0700 Subject: [PATCH] compile docs --- .github/workflows/ci.yml | 13 +++++++++++++ doc/conf.py | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a7fc27e..ebf211de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,6 +80,19 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Compile the docs + run: | + source $CONDA/bin/activate + conda install -c defaults -c conda-forge sphinx cloud_sptheme latexmk texlive-core + mv doc sphinx + mkdir doc + cd sphinx + make latexpdf + make html + mv _build/html ../doc + mv _build/latexpdf/CVX.pdf ../doc + cd .. + rm -rf sphinx - name: Extract version info run: | /bin/echo -n Extracting and updating version information... diff --git a/doc/conf.py b/doc/conf.py index 76226910..d57cf47e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -116,7 +116,7 @@ # The name of an image file (relative to this directory) to place at the top # of the sidebar. -html_logo = 'cvxrlogo.png' +html_logo = '_static/cvxrlogo.png' # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 @@ -178,7 +178,7 @@ latex_elements = { 'papersize': 'letterpaper', 'pointsize': '11pt', - 'preamble': '\usepackage{amsmath,amssymb}', + 'preamble': r'\usepackage{amsmath,amssymb}', } # Grouping the document tree into LaTeX files. List of tuples