conf.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. # -- Project information -----------------------------------------------------
  15. # TODO: change to minigrid version
  16. # from TODO import __version__ as minigrid_version
  17. import os
  18. import sys
  19. project = "MiniGrid"
  20. copyright = "2022"
  21. author = "Farama Foundation"
  22. # The full version, including alpha/beta/rc tags
  23. # TODO: change to minigrid version
  24. release = "1.2.1"
  25. sys.path.insert(0, os.path.abspath("../.."))
  26. # -- General configuration ---------------------------------------------------
  27. # Add any Sphinx extension module names here, as strings. They can be
  28. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  29. # ones.
  30. extensions = [
  31. "sphinx.ext.napoleon",
  32. "sphinx.ext.doctest",
  33. "sphinx.ext.autodoc",
  34. "sphinx.ext.githubpages",
  35. "myst_parser",
  36. "notfound.extension",
  37. ]
  38. source_suffix = {
  39. ".rst": "restructuredtext",
  40. ".md": "markdown",
  41. }
  42. # Add any paths that contain templates here, relative to this directory.
  43. templates_path = ["_templates"]
  44. # List of patterns, relative to source directory, that match files and
  45. # directories to ignore when looking for source files.
  46. # This pattern also affects html_static_path and html_extra_path.
  47. exclude_patterns = []
  48. # Napoleon settings
  49. napoleon_use_ivar = True
  50. napoleon_use_admonition_for_references = True
  51. # See https://github.com/sphinx-doc/sphinx/issues/9119
  52. napoleon_custom_sections = [("Returns", "params_style")]
  53. # -- Options for HTML output -------------------------------------------------
  54. # The theme to use for HTML and HTML Help pages. See the documentation for
  55. # a list of builtin themes.
  56. #
  57. html_theme = "furo"
  58. html_title = "MiniGrid Documentation"
  59. html_baseurl = "https://minigrid.farama.org/"
  60. html_copy_source = False
  61. html_favicon = "_static/img/minigrid-white.png"
  62. html_theme_options = {
  63. "light_logo": "img/minigrid.png",
  64. "dark_logo": "img/minigrid-white.png",
  65. }
  66. html_static_path = ["_static"]
  67. html_css_files = [
  68. "css/custom.css",
  69. ]
  70. notfound_urls_prefix = None