From d5f366385d81e7f1d3d749db3249100bc0b95987 Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Fri, 15 Nov 2024 15:35:40 +0100 Subject: Revert "doc: Makefile: add support for xelatex" This reverts commit 0a6944b9f90b4d3babbdec9dee18fb8195b0db06. (From yocto-docs rev: 08fae3c2dd1dbd898c028a4e713ca4d388ccee6b) Signed-off-by: Antonin Godard Signed-off-by: Steve Sakoman --- documentation/Makefile | 5 +---- documentation/conf.py | 7 +------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/documentation/Makefile b/documentation/Makefile index 402ad986ae..cb8d4dea85 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -61,12 +61,9 @@ epub: $(PNGs) $(SOURCEDIR)/set_versions.py @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -# Note: we need to pass buf_size here (which is also configurable from -# texmf.cnf), to avoid following error: -# Unable to read an entire line---bufsize=200000. Please increase buf_size in texmf.cnf. latexpdf: $(PDFs) $(SOURCEDIR)/set_versions.py - buf_size=10000000 $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) all: html epub latexpdf diff --git a/documentation/conf.py b/documentation/conf.py index 4e69213f8c..3969494377 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -159,14 +159,9 @@ html_last_updated_fmt = '%b %d, %Y' # Remove the trailing 'dot' in section numbers html_secnumber_suffix = " " -# We need XeTeX to process special unicode character, sometimes the contributor -# list from the release note contains those. -# See https://docs.readthedocs.io/en/stable/guides/pdf-non-ascii-languages.html. -latex_engine = 'xelatex' -latex_use_xindy = False latex_elements = { 'passoptionstopackages': '\\PassOptionsToPackage{bookmarksdepth=5}{hyperref}', - 'preamble': '\\usepackage[UTF8]{ctex}\n\\setcounter{tocdepth}{2}', + 'preamble': '\\setcounter{tocdepth}{2}', } # Make the EPUB builder prefer PNG to SVG because of issues rendering Inkscape SVG -- cgit v1.2.3-54-g00ecf