Skip to content

Commit 228ef8a

Browse files
committed
Adjusted readthedocs config.
1 parent a54f172 commit 228ef8a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.readthedocs.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ build:
4848
- ls -l ./docs/_build/epub/*
4949
- mkdir -p $READTHEDOCS_OUTPUT/epub/
5050
- cp ./docs/_build/epub/eventsourcing.epub $READTHEDOCS_OUTPUT/epub/
51+
pdf:
52+
- echo "Override default build command for pdf format"
53+
- POETRY=/home/docs/.local/bin/poetry make docs-pdf
54+
- ls -l ./docs/_build/pdf/*
55+
- mkdir -p $READTHEDOCS_OUTPUT/pdf/
56+
- cp ./docs/_build/epub/eventsourcing.pdf $READTHEDOCS_OUTPUT/pdf/
5157
# htmlzip:
5258
# - echo "Override default build command for htmlzip format"
5359
# - mkdir -p $READTHEDOCS_OUTPUT/htmlzip/
54-
# pdf:
55-
# - echo "Override default build command for pdf format"
56-
# - mkdir -p $READTHEDOCS_OUTPUT/pdf/
5760

5861

5962

@@ -85,7 +88,7 @@ sphinx:
8588

8689
# Optionally build your docs in additional formats such as PDF and ePub
8790
formats:
88-
# - pdf
91+
- pdf
8992
- epub
9093

9194
# Optional but recommended, declare the Python requirements required

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ docs:
177177
docs-epub:
178178
cd docs && make epub
179179

180+
.PHONY: docs-pdf
181+
docs-epub:
182+
cd docs && make latexpdf
183+
180184
#
181185
# .PHONY: brew-services-start
182186
# brew-services-start:

0 commit comments

Comments
 (0)