Files
openapi/doc/source/conf.py
Artem Goncharov b8e9951c1a Initial import of the code
Change-Id: I1b8c391f841795318485e03c4f0222c5e19e422b
2024-10-09 20:45:33 +02:00

21 lines
602 B
Python

import os
# Unfortunately, Sphinx doesn't support code highlighting for standard
# reStructuredText `code` directive. So let's register 'code' directive
# as alias for Sphinx's own implementation.
#
# https://github.com/sphinx-doc/sphinx/issues/2155
from docutils.parsers.rst import directives
from sphinx.directives.code import CodeBlock
directives.register_directive("code", CodeBlock)
project = "openstack-openapi"
extensions = ["openstackdocstheme", "os_openapi"]
source_suffix = ".rst"
master_doc = "index"
exclude_patterns = ["_build"]
pygments_style = "default"
html_theme = "openstackdocs"