Skip to content

Commit

Permalink
compile docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg1969 committed Apr 14, 2024
1 parent 19a24a3 commit e810729
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,23 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Compile the docs
run: |
sudo apt update
sudo apt install latexmk texlive-latex-recommended texlive-latex-extra tex-gyre make
source $CONDA/bin/activate
conda install -c defaults -c conda-forge sphinx cloud_sptheme
pushd doc
sphinx-build -b latex -d _build/doctrees . _build/latex
sphinx-build -b html -d _build/doctrees . _build/html
pushd _build/latex
latexmk -pdf CVX.tex
popd
popd
mv doc _doc
mkdir doc
mv _doc/_build/{html,latexpdf/CVX.pdf} doc/
rm -rf _doc
- name: Extract version info
run: |
/bin/echo -n Extracting and updating version information...
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e810729

Please sign in to comment.