conf.py 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # This file only contains a selection of the most common options. For a full
  4. # list see the documentation:
  5. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  6. # -- Path setup --------------------------------------------------------------
  7. # If extensions (or modules to document with autodoc) are in another directory,
  8. # add these directories to sys.path here. If the directory is relative to the
  9. # documentation root, use os.path.abspath to make it absolute, like shown here.
  10. #
  11. import os
  12. # import sys
  13. # sys.path.insert(0, os.path.abspath('.'))
  14. import sphinx_rtd_theme
  15. # -- Project information -----------------------------------------------------
  16. project = 'sqlc'
  17. copyright = '2024, Riza, Inc.'
  18. author = 'Riza, Inc.'
  19. # The full version, including alpha/beta/rc tags
  20. release = '1.27.0'
  21. # -- General configuration ---------------------------------------------------
  22. # Add any Sphinx extension module names here, as strings. They can be
  23. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  24. # ones.
  25. extensions = [
  26. 'myst_parser',
  27. 'sphinx_rtd_theme',
  28. 'sphinx_favicon',
  29. 'sphinxext.rediraffe',
  30. ]
  31. # Add any paths that contain templates here, relative to this directory.
  32. templates_path = ['_templates']
  33. # List of patterns, relative to source directory, that match files and
  34. # directories to ignore when looking for source files.
  35. # This pattern also affects html_static_path and html_extra_path.
  36. exclude_patterns = ['_build', '_venv', 'Thumbs.db', '.DS_Store']
  37. # -- Options for HTML output -------------------------------------------------
  38. # The theme to use for HTML and HTML Help pages. See the documentation for
  39. # a list of builtin themes.
  40. #
  41. html_theme = 'sphinx_rtd_theme'
  42. # Add any paths that contain custom static files (such as style sheets) here,
  43. # relative to this directory. They are copied after the builtin static files,
  44. # so a file named "default.css" will overwrite the builtin "default.css".
  45. html_static_path = ['_static']
  46. html_logo = "_static/logo.png"
  47. html_theme_options = {
  48. 'logo_only': True,
  49. }
  50. html_context = {
  51. 'show_banner': 'SHOW_LAUNCH_BANNER' in os.environ,
  52. }
  53. def setup(app):
  54. app.add_css_file('customize.css')
  55. favicons = [
  56. "favicon.png",
  57. ]
  58. myst_enable_extensions = [
  59. "attrs_inline",
  60. "colon_fence",
  61. ]
  62. rediraffe_redirects = {
  63. "howto/upload.md": "howto/push.md",
  64. }