Various changes (#747)

- Explicitly stated custom.css, thus forcing importance (?)
- Moved custom.css to subdir css
- Removed PDF from output because of flipped Hebrew words

Reviewed-on: https://git.door43.org/unfoldingWord/en_uhg/pulls/747
Co-authored-by: yakob-aleksandrovich <jakobaleksandrovich@gmail.com>
Co-committed-by: yakob-aleksandrovich <jakobaleksandrovich@gmail.com>
This commit is contained in:
yakob-aleksandrovich 2023-10-06 11:38:09 +00:00 committed by j_aleksandrovich
parent 4f15b6bc36
commit f30f6a5edc
3 changed files with 12 additions and 4 deletions

View File

@ -1,10 +1,14 @@
version: 2
# Build settings
build:
os: "ubuntu-22.04"
tools:
python: "3.7"
jobs:
post_build:
- mkdir -p $READTHEDOCS_OUTPUT/html/fonts
- cp fonts/SBL_Hbrw.ttf $READTHEDOCS_OUTPUT/html/fonts
- cp fonts/SBL_Hbrw.woff $READTHEDOCS_OUTPUT/html/fonts
# Build documentation in the docs/ directory with Sphinx
sphinx:
@ -13,7 +17,6 @@ sphinx:
# Optionally build your docs in additional formats such as PDF
formats:
- epub
- pdf
- htmlzip
# Optionally set the version of Python and requirements required to build your docs

View File

@ -158,6 +158,10 @@ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = [
'css/custom.css',
]
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
@ -239,6 +243,8 @@ html_static_path = ['_static']
htmlhelp_basename = 'UHG'
# -- Options for LaTeX output ---------------------------------------------
# 2023-10-06: Latex not in use. PDF output has been disabled
# because of flipped word order issue in Hebrew.
# Use XeLaTex (to properly handle Unicode)
latex_engine = 'xelatex'
@ -252,12 +258,11 @@ latex_elements = {
#
# 'pointsize': '10pt',
'label': '\\usepackage[english]{babel}',
#'label': '\\usepackage[english]{babel}',
# Additional stuff for the LaTeX preamble.
#
'preamble': r'''
\usepackage{xeCJK}
\setmainfont{SBL Hebrew}
\XeTeXlinebreaklocale "he"
\XeTeXlinebreakskip = 0pt plus 1pt