diff --git a/setup.cfg b/setup.cfg index d2df308e29559d0309bb4adff997a0a755780604..779d762871629dd16e496fa1e24b00d9d457a037 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 d6e6cfa2dd0b4dcf59dba332efe01ec5cd111576..bc9bd653353482c02a6f5824c793b8a3f75beb51 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 41e6ab1f0995bdbfc93c2cec227a6b0be46fa29b..db1eb64f36c5b35509a3205b2ec9ea885e9aec18 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}