{
  "id": "docutils",
  "name": "Docutils",
  "homepage": "https://docutils.sourceforge.io",
  "description": "An open-source text processing system for plaintext documentation.",
  "executables": [
    "rst2html",
    "rst2html4",
    "rst2html5",
    "rst2latex",
    "rst2man",
    "rst2odt",
    "rst2pseudoxml",
    "rst2s5",
    "rst2xetex",
    "rst2xml"
  ],
  "dotfiles": {
    "paths": [
      "~/.docutils"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Convert reStructuredText to HTML",
    "description": "Convert a reStructuredText file to HTML with rst2html. The other rst2* converters take similar options but are not covered; stylesheet directories, math output and footnote tuning are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://docutils.sourceforge.io/docs/user/html.html",
        "revision": "docutils 0.22 rst2html --help",
        "evidence": "  rst2html [options] [<source> [<destination>]]\n--output-path=<destination>, --output=<destination>\n--title=<title>         Specify the document title as metadata.\n--generator, -g         Include a \"Generated by Docutils\" credit and link.\n--no-generator          Do not include a generator credit.\n--date, -d              Include the date at the end of the document (UTC).\n--source-link, -s       Include a \"View document source\" link.\n--no-section-numbering  Disable section numbering by Docutils.\n--strip-comments        Remove comment elements from the document tree.\n--report=<level>, -r <level>\n--verbose, -v           Report all system messages.  (Same as \"--report=1\".)\n--quiet, -q             Report no system messages.  (Same as \"--report=5\".)\n--strict                Halt at the slightest problem.  Same as \"--halt=info\".\n--language=<tag>, -l <tag>\n--input-encoding=<name[:handler]>\n--output-encoding=<name[:handler]>\n--tab-width=<width>     Set number of spaces for tab expansion (default 8).\n--syntax-highlight=<format>\n                        Token name set for parsing code with Pygments: one of\n                        \"long\", \"short\", or \"none\" (no parsing). Default is\n--smart-quotes=<yes/no/alt>\n--stylesheet-path=<file[,file,...]>\n--embed-stylesheet      Embed the stylesheet(s) in the output HTML file.  The\n--link-stylesheet       Link to the stylesheet(s) in the output HTML file.\n--initial-header-level=<level>\n"
      }
    ],
    "field": [
      {
        "id": "source",
        "label": "reStructuredText file",
        "description": "Defaults to standard input when empty.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "destination",
        "label": "Output file",
        "description": "Defaults to standard output when empty.",
        "type": "path",
        "option": [
          "--output-path"
        ],
        "path": {
          "kind": "file",
          "role": "output",
          "must_exist": false
        },
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      },
      {
        "id": "title",
        "label": "Document title",
        "type": "string",
        "option": [
          "--title"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "stylesheet_path",
        "label": "Stylesheet",
        "description": "CSS file to use instead of the default.",
        "type": "path",
        "option": [
          "--stylesheet-path"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "link_stylesheet",
        "label": "Link stylesheet instead of embedding",
        "type": "boolean",
        "option": [
          "--link-stylesheet"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_section_numbering",
        "label": "Disable section numbering",
        "type": "boolean",
        "option": [
          "--no-section-numbering"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "initial_header_level",
        "label": "Initial header level",
        "type": "integer",
        "option": [
          "--initial-header-level"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "syntax_highlight",
        "label": "Code highlighting",
        "type": "enum",
        "option": [
          "--syntax-highlight"
        ],
        "choices": [
          {
            "value": "long",
            "label": "Long token names"
          },
          {
            "value": "short",
            "label": "Short token names"
          },
          {
            "value": "none",
            "label": "No highlighting"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "smart_quotes",
        "label": "Smart quotes",
        "type": "enum",
        "option": [
          "--smart-quotes"
        ],
        "choices": [
          {
            "value": "yes",
            "label": "Yes"
          },
          {
            "value": "no",
            "label": "No"
          },
          {
            "value": "alt",
            "label": "Alternative"
          }
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "tab_width",
        "label": "Tab width",
        "type": "integer",
        "option": [
          "--tab-width"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "strict",
        "label": "Halt at the slightest problem",
        "type": "boolean",
        "option": [
          "--strict"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "quiet",
        "label": "Report no system messages",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "to-html",
        "label": "Convert to HTML",
        "fields": [
          "source",
          "destination",
          "title",
          "stylesheet_path",
          "link_stylesheet"
        ],
        "required": [
          "source",
          "destination"
        ]
      },
      {
        "id": "check",
        "label": "Check for problems",
        "description": "Convert to standard output and halt on any warning.",
        "set": {
          "strict": [
            true
          ]
        },
        "fields": [
          "source",
          "strict"
        ],
        "required": [
          "source"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "source",
          "destination",
          "title",
          "stylesheet_path",
          "link_stylesheet"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "no_section_numbering",
          "initial_header_level",
          "syntax_highlight",
          "smart_quotes",
          "tab_width",
          "strict",
          "quiet"
        ]
      }
    ]
  }
}
