Skip to content

Correcting the Sphinx documentation PDF build #9277

@kuhlaid

Description

@kuhlaid

I am working on fixing the Sphinx documentation so builds of PDFs will succeed once again. The https://guides.dataverse.org/en/latest/admin/timers.html page in the documentation is at least one of the sources of Sphinx PDF builds currently failing. LaTeX seems to have a problem with multi-level lists in reStructuredText (.rst) files, such as:

* Alternatively, you can insert an ejb-jar.xml file into a provided Dataverse Software war file without building the application.

  * Check if there is already an ejb-jar.xml file in the war file 

    * jar tvf $DATAVERSE-WAR-FILENAME | grep ejb-jar.xml

      * if the response includes " WEB-INF/ejb-jar.xml", you will need to extract the ejb-jar.xml file for editing

        * jar xvf $DATAVERSE-WAR-FILENAME WEB-INF/ejb-jar.xml 

          * edit the extracted WEB-INF/ejb-jar.xml, following the sample file provided at ``/_static/admin/ejb-jar.xml``.

        * if the response is empty, create a WEB-INF directory and create en ejb-jar.xml file in it, following the sample file provided at ``/_static/admin/ejb-jar.xml``.

          * edit the parameters in the <schedule> section of the WEB-INF/ejb-jar.xml to suit your preferred schedule

For this page I receive a ! LaTeX Error: Too deeply nested. along with warnings such as LaTeX Warning: Hyper reference 'admin/timers:known-issues' on page 84 undefined on input line 5725. (which is referring to a line in the generated .tex file). Both, completely unhelpful LaTeX messages.

From testing it appears you are only able to include three sub-lists, or rather one root list item with three level below it:

* top level

  * second level

    * third level

      * fourth level (third sub-list)

Add a fifth level in the documentation and you break the PDF build:

* top level

  * second level

    * third level

      * fourth level (third sub-list)
      
        * fifth level (fourth sub-list), this will break the PDF build

Anyway, just wanted to give people a heads-up on this issue. I am looking into modifying the docs to do away with these deeply nested lists within the documentation and probably move it to a codeblock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions