Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docs build in google-cloud-documentai fails with list starting with an unexpected section title #1779

@ohmayr

Description

@ohmayr

I had to manually fix a google-cloud-python PR that had a comment looking like this:

        Currently support query strings are:
        ------------------------------------
        ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
        -  ``LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED``
        -  ``DisplayName=\"file_name.pdf\"``
        -  ``EntityType=abc/def``

The docs build failed because of Unexpected section title as a result of HTML syntax not supported. There was also a missing hyphen in the first bullet point and extra whitespace.

Sphinx expects this:

        Currently support query strings are:
        -  ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
        -  ``LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED``
        -  ``DisplayName=\"file_name.pdf\"``
        -  ``EntityType=abc/def``

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions