Skip to content

Commit b465039

Browse files
committed
fixup! fix: pdf generation and style
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent b6744aa commit b465039

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

admin_manual/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ latexpdf:
119119
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
120120

121121
pdf:
122-
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
122+
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf || exit 1
123+
@if [ ! -s $(BUILDDIR)/pdf/*.pdf ]; then \
124+
echo "Error: PDF files are empty or missing"; \
125+
exit 1; \
126+
fi
123127
@echo
124128
@echo "build finished. the text files are in $(BUILDDIR)/pdf."
125129

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ reportlab==4.4.10
1616
requests==2.33.1
1717
rst2pdf==0.104
1818
smartypants==2.0.2
19+
svglib==1.5.1
1920
snowballstemmer==3.0.1
2021
Sphinx==8.1.3
2122
sphinx-copybutton==0.5.2

user_manual/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,20 @@ latexpdf-lang-%:
140140
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
141141

142142
pdf:
143-
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
143+
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf || exit 1
144+
@if [ ! -s $(BUILDDIR)/pdf/*.pdf ]; then \
145+
echo "Error: PDF files are empty or missing"; \
146+
exit 1; \
147+
fi
144148
@echo
145149
@echo "build finished. the text files are in $(BUILDDIR)/pdf."
146150

147151
pdf-lang-%:
148-
$(SPHINXBUILD) -b pdf -D language=$* $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
152+
$(SPHINXBUILD) -b pdf -D language=$* $(ALLSPHINXOPTS) $(BUILDDIR)/pdf || exit 1
153+
@if [ ! -s $(BUILDDIR)/pdf/*.pdf ]; then \
154+
echo "Error: PDF files are empty or missing"; \
155+
exit 1; \
156+
fi
149157
@echo
150158
@echo "build finished. the text files are in $(BUILDDIR)/pdf."
151159

0 commit comments

Comments
 (0)