mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added entry to docs Makefile and Sphinx config to build PDF usinx XeTeX
We have a few unicode chars in the docs now. Plus this should be a good change for future non-English builds of the docs.
This commit is contained in:
parent
3890872164
commit
63dc40bd06
2 changed files with 18 additions and 0 deletions
|
@ -139,6 +139,12 @@ latexpdfja: translations
|
|||
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
xetexpdf: translations
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through xelatex..."
|
||||
cd $(BUILDDIR)/latex; xelatex *.tex && xelatex *.tex; cd -
|
||||
@echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
text: translations
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
|
|
12
doc/conf.py
12
doc/conf.py
|
@ -235,6 +235,18 @@ latex_documents = [
|
|||
|
||||
latex_logo = '_static/salt-logo.pdf'
|
||||
|
||||
latex_elements = {
|
||||
'inputenc': '', # use XeTeX instead of the inputenc LaTeX package.
|
||||
'utf8extra': '',
|
||||
'preamble': '''
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setsansfont{DejaVu Sans}
|
||||
\setromanfont{DejaVu Serif}
|
||||
\setmonofont{DejaVu Sans Mono}
|
||||
''',
|
||||
}
|
||||
|
||||
### Linkcheck options
|
||||
linkcheck_ignore = [r'http://127.0.0.1',
|
||||
r'http://salt:\d+',
|
||||
|
|
Loading…
Add table
Reference in a new issue