Skip to content

Commit

Permalink
Use latexmk
Browse files Browse the repository at this point in the history
  • Loading branch information
tkphd committed Sep 18, 2023
1 parent 8ce2218 commit 184a722
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nist-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
with:
apt-packages: |-
doxygen
latexmk
build-pdf-command: make pdf
docs-folder: doc/
formats: |-
Expand Down
10 changes: 3 additions & 7 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
# Makefile for HiPerC documentation

LATEX = pdflatex
SPHINX = sphinx-build
DOXYGEN = doxygen

all: pdf
.PHONY: all

.PHONY: dox
dox:
$(DOXYGEN)
doxygen

.PHONY: tex
tex: dox
$(MAKE) -C latex && \
cd latex && \
cp refman.tex hiperc.tex && \
$(LATEX) hiperc.tex
latexmk hiperc.tex

.PHONY: pdf
pdf: tex
cp latex/hiperc.pdf hiperc_guide.pdf

.PHONY: html
html: dox
$(SPHINX) -b html . _build
sphinx-build -b html . _build

.PHONY: clean
clean:
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -162,7 +162,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, "HiPerC.tex", u"HiPerC Documentation", u"Trevor Keller", "manual")
(master_doc, "hiperc.tex", u"HiPerC Documentation", u"Trevor Keller", "manual")
]


Expand Down
Binary file modified doc/hiperc_guide.pdf
Binary file not shown.

0 comments on commit 184a722

Please sign in to comment.