From ea70c37f699e778b43c819c50a3002459691195d Mon Sep 17 00:00:00 2001 From: mmcky <mmcky@users.noreply.github.com> Date: Fri, 9 Jul 2021 13:54:14 +1000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20UPGRADE:=20Upgrade=20to=20?= =?UTF-8?q?sphinx-jupyterbook-latex=3D=3D0.4.2=20(#1390)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * UPGRADE: Upgrade to sphinx-jupyterbook-latex==0.4.2 * updated tex regression files Co-authored-by: AakashGC <aakashgfude@gmail.com> --- setup.cfg | 2 +- .../test_toc_latex_parts.tex | 38 +++++++++++++++++++ .../test_toc_latex_urllink.tex | 36 ++++++++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index d2df308e..779d7628 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,7 +47,7 @@ install_requires = sphinx-comments sphinx-copybutton sphinx-external-toc~=0.2.1 - sphinx-jupyterbook-latex~=0.4.0 + sphinx-jupyterbook-latex~=0.4.2 sphinx-panels~=0.5.2 sphinx-thebe~=0.0.8 sphinx_book_theme~=0.1.0 diff --git a/tests/test_tocdirective/test_toc_latex_parts.tex b/tests/test_tocdirective/test_toc_latex_parts.tex index d6e6cfa2..bc9bd653 100644 --- a/tests/test_tocdirective/test_toc_latex_parts.tex +++ b/tests/test_tocdirective/test_toc_latex_parts.tex @@ -10,6 +10,39 @@ \sphinxAtStartPar \sphinxstylestrong{Table of Contents} +\begin{itemize} +\item{} +\sphinxAtStartPar +A section + +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{subfolder/index::doc}]{\sphinxcrossref{Subfolder}}} +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{subfolder/asubpage1::doc}]{\sphinxcrossref{Asubpage 1}}} + +\end{itemize} + +\end{itemize} +\end{itemize} +\begin{itemize} +\item{} +\sphinxAtStartPar +Another section + +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{content1::doc}]{\sphinxcrossref{Content1}}} + +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{content2::doc}]{\sphinxcrossref{Content2}}} + +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{content3::doc}]{\sphinxcrossref{Content3}}} + +\end{itemize} +\end{itemize} \part{A section} @@ -19,6 +52,11 @@ \label{\detokenize{subfolder/index:subfolder-index}}\label{\detokenize{subfolder/index::doc}} \sphinxAtStartPar \sphinxstylestrong{Table of contents directive} +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{subfolder/asubpage1::doc}]{\sphinxcrossref{Asubpage 1}}} + +\end{itemize} \section{A subpage 1} diff --git a/tests/test_tocdirective/test_toc_latex_urllink.tex b/tests/test_tocdirective/test_toc_latex_urllink.tex index 41e6ab1f..db1eb64f 100644 --- a/tests/test_tocdirective/test_toc_latex_urllink.tex +++ b/tests/test_tocdirective/test_toc_latex_urllink.tex @@ -10,6 +10,33 @@ \sphinxAtStartPar \sphinxstylestrong{Table of Contents} +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{content1::doc}]{\sphinxcrossref{Content 1}}} + +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{content2::doc}]{\sphinxcrossref{Content2}}} + +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{content3::doc}]{\sphinxcrossref{Content3}}} + +\item{} +\sphinxAtStartPar +\sphinxhref{https://jupyterbook.org/start/build.html}{Build your book} + +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{subfolder/index::doc}]{\sphinxcrossref{Subfolder}}} +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{subfolder/asubpage::doc}]{\sphinxcrossref{Asubpage}}} + +\item{} +\sphinxAtStartPar +\sphinxhref{https://jupyterbook.org/file-types/markdown.html}{Markdown pages} + +\end{itemize} + +\end{itemize} \section{Content 1} @@ -31,6 +58,15 @@ Content body \label{\detokenize{subfolder/index:subfolder-index}}\label{\detokenize{subfolder/index::doc}} \sphinxAtStartPar \sphinxstylestrong{Table of contents directive} +\begin{itemize} +\item{} +\sphinxAtStartPar{\hyperref[\detokenize{subfolder/asubpage::doc}]{\sphinxcrossref{Asubpage}}} + +\item{} +\sphinxAtStartPar +\sphinxhref{https://jupyterbook.org/file-types/markdown.html}{Markdown pages} + +\end{itemize} \subsection{A subpage} -- GitLab