Skip to content

Commit 7c450f1

Browse files
committed
Merge pull request #1763 from bettio/do-not-publish-pdf-epub
Despite the branch name, we are just discarding PDF build. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents e368b0e + da6d0e0 commit 7c450f1

File tree

6 files changed

+1
-58
lines changed

6 files changed

+1
-58
lines changed

doc/CMakeLists.txt

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ if(SPHINX_FOUND)
132132
message("Doxygen found: ${DOXYGEN_BUILD_EXECUTABLE}")
133133
message("Sphinx found: ${SPHINX_BUILD_EXECUTABLE}")
134134
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
135-
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/pdf_stylesheet.rts DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
136-
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/pdf_template.rtt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
137135
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/apidocs/libatomvm)
138136
add_custom_target(sphinx-html
139137
${SPHINX_BUILD_EXECUTABLE} -q --doctree-dir ${CMAKE_CURRENT_BINARY_DIR}/doctree -b html -c ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src/ ${CMAKE_CURRENT_BINARY_DIR}/html/
@@ -142,13 +140,6 @@ if(SPHINX_FOUND)
142140
DEPENDS ${DOTFILE_TARGETS} ${ERLANG_EDOC_TARGETS}
143141
)
144142

145-
add_custom_target(sphinx-pdf
146-
${SPHINX_BUILD_EXECUTABLE} -q --doctree-dir ${CMAKE_CURRENT_BINARY_DIR}/doctree -D exclude_patterns=apidocs/libatomvm/** -b rinoh -c ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src/ ${CMAKE_CURRENT_BINARY_DIR}/pdf/
147-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
148-
COMMENT "Generating Sphinx PDF documentation" VERBATIM
149-
DEPENDS ${DOTFILE_TARGETS} ${ERLANG_EDOC_TARGETS}
150-
)
151-
152143
add_custom_target(sphinx-epub
153144
${SPHINX_BUILD_EXECUTABLE} -q --doctree-dir ${CMAKE_CURRENT_BINARY_DIR}/doctree -D exclude_patterns=apidocs/libatomvm/**,LICENSES/** -b epub -c ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/src/ ${CMAKE_CURRENT_BINARY_DIR}/epub/
154145
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
@@ -186,7 +177,7 @@ foreach(LIBAVM_ERL_LIB ${ERLANG_LIBS})
186177
endforeach(LIBAVM_ERL_LIB)
187178

188179
add_custom_target(doc #ALL
189-
DEPENDS sphinx-html sphinx-pdf sphinx-epub
180+
DEPENDS sphinx-html sphinx-epub
190181
)
191182

192183
if (TARGET GitHub_CI_Publish_Docs)
@@ -198,14 +189,6 @@ if (TARGET GitHub_CI_Publish_Docs)
198189
COMMENT "Prepare publish directory structure." VERBATIM
199190
)
200191

201-
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/pdf)
202-
add_custom_command(TARGET sphinx-pdf POST_BUILD
203-
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/pdf/AtomVM-${DOC_TREE_VERSION}.pdf ${CMAKE_CURRENT_BINARY_DIR}/html/pdf/
204-
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pdf
205-
COMMENT "Copying pdf to download location" VERBATIM
206-
DEPENDS $ENV{DOC_TREE_VERSION}
207-
)
208-
209192
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/epub)
210193
add_custom_command(TARGET sphinx-epub POST_BUILD
211194
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/epub/AtomVM-${DOC_TREE_VERSION}.epub ${CMAKE_CURRENT_BINARY_DIR}/html/epub/

doc/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ AtomVM documentation is built using the following tools:
1616
Dependencies and make files are generated via the standard CMake tooling used in AtomVM builds. However, the documentation sets are not built by default. Instead, issue the following make targets after a CMake
1717

1818
* `make sphinx-html` to build the Sphinx HTML documentation (includes libAtomVM 'C' and Erlang APIs)
19-
* `make sphinx-pdf` to build the Sphinx PDF documentation, (includes Erlang APIs)
2019
* `make sphinx-epub` to build the Sphinx ePUB documentation, (includes Erlang APIs)
2120
* `make doc` to build all of the above
2221

@@ -41,10 +40,6 @@ To build documentation using Sphinx, we recommend using a Python virtual environ
4140
(sphinx) shell$ python3 -m pip install pygments
4241

4342

44-
## needed for PDF
45-
(sphinx) shell$ python3 -m pip install rinohtype
46-
(sphinx) shell$ python3 -m pip install pillow
47-
4843
There is also a reqirements.txt to simplify installing all of the dependencies at once.
4944

5045
shell$ python3 -m venv $HOME/python-env/sphinx

doc/conf.py.in

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,20 +222,8 @@ html_sidebars = {
222222

223223
# POPULATE LINKS TO OTHER FORMATS/DOWNLOADS
224224
html_context['downloads'] = list()
225-
html_context['downloads'].append( ('pdf', '/' +download_version+ '/pdf/' +project+ '-' +download_version+ '.pdf') )
226225
html_context['downloads'].append( ('epub', '/' +download_version+ '/epub/' +project+ '-' +download_version+ '.epub') )
227226

228-
# -- Options for PDF output -------------------------------------------------
229-
230-
rinoh_documents = [dict(
231-
doc=master_doc,
232-
target=project+ '-' +download_version,
233-
logo='@CMAKE_CURRENT_SOURCE_DIR@/src/_static/AtomVM-logo.png',
234-
template='pdf_template.rtt'
235-
)]
236-
237-
today_fmt = "%B %d, %Y"
238-
239227
# -- Options for EPUB output -------------------------------------------------
240228

241229
epub_tocdepth = 3

doc/pdf_stylesheet.rts

Lines changed: 0 additions & 13 deletions
This file was deleted.

doc/pdf_template.rtt

Lines changed: 0 additions & 8 deletions
This file was deleted.

doc/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ sphinx-rtd-theme
1010
gitpython
1111
breathe
1212
pygments
13-
rinohtype
14-
pillow

0 commit comments

Comments
 (0)