# Folium documentation build configuration file, created by1# sphinx-quickstart on Sun May 19 19:39:34 2013.2#3# This file is execfile()d with the current directory set to its containing dir.4#5# Note that not all possible configuration values are present in this6# autogenerated file.7#8# All configuration values have a default; values that are commented out9# serve to show the default.1011import os12import sys1314# Use the currently checked out folium of this folder15sys.path.insert(0, os.path.abspath(os.pardir))1617# If extensions (or modules to document with autodoc) are in another directory,18# add these directories to sys.path here. If the directory is relative to the19# documentation root, use os.path.abspath to make it absolute, like shown here.20# sys.path.insert(0, os.path.abspath('.'))2122# -- General configuration -----------------------------------------------------2324# If your documentation needs a minimal Sphinx version, state it here.25# needs_sphinx = '1.0'2627# Add any Sphinx extension module names here, as strings. They can be extensions28# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.29extensions = [30"sphinx.ext.autodoc",31"sphinx.ext.napoleon",32"nbsphinx",33"sphinx.ext.intersphinx",34]3536# Add any paths that contain templates here, relative to this directory.37templates_path = ["_templates"]3839# The suffix of source filenames.40source_suffix = ".rst"4142# The encoding of source files.43# source_encoding = 'utf-8-sig'4445# The master toctree document.46master_doc = "index"4748# General information about the project.49import datetime5051year = datetime.datetime.now(tz=datetime.timezone.utc).date().year52project = "Folium"53copyright = f"2013-{year}, Rob Story"5455# The version info for the project you're documenting, acts as replacement for56# |version| and |release|, also used in various other places throughout the57# built documents.5859import folium6061# N.B. this version is without the "v" prefix62version = release = folium.__version__63print(f"Version: {version}")6465# The language for content autogenerated by Sphinx. Refer to documentation66# for a list of supported languages.67# language = None6869# There are two options for replacing |today|: either, you set today to some70# non-false value, then it is used:71# today = ''72# Else, today_fmt is used as the format for a strftime call.73# today_fmt = '%B %d, %Y'7475# List of patterns, relative to source directory, that match files and76# directories to ignore when looking for source files.77exclude_patterns = ["_build"]7879# The reST default role (used for this markup: `text`) to use for all documents.80# default_role = None8182# If true, '()' will be appended to :func: etc. cross-reference text.83# add_function_parentheses = True8485# If true, the current module name will be prepended to all description86# unit titles (such as .. function::).87# add_module_names = True8889# If true, sectionauthor and moduleauthor directives will be shown in the90# output. They are ignored by default.91# show_authors = False9293# The name of the Pygments (syntax highlighting) style to use.94pygments_style = "sphinx"9596# A list of ignored prefixes for module index sorting.97# modindex_common_prefix = []9899100# -- Options for HTML output ---------------------------------------------------101102# The theme to use for HTML and HTML Help pages. See the documentation for103# a list of builtin themes.104html_theme = "pydata_sphinx_theme"105106# Theme options are theme-specific and customize the look and feel of a theme107# further. For a list of options available for each theme, see the108# documentation.109html_theme_options = {110"switcher": {111"json_url": "https://python-visualization.github.io/folium/dev/_static/switcher.json",112"version_match": "dev" if ".dev" in version else version,113},114"navbar_start": ["navbar-logo", "version-switcher"],115"footer_start": ["version", "copyright", "sphinx-version", "theme-version"],116"icon_links": [117{118"name": "GitHub",119"url": "https://github.com/python-visualization/folium",120"icon": "fa-brands fa-square-github",121"type": "fontawesome",122}123],124"logo": {125"text": "Folium",126},127}128129# Add any paths that contain custom themes here, relative to this directory.130# html_theme_path = ["_themes"]131132# The name for this set of Sphinx documents. If None, it defaults to133# "<project> v<release> documentation".134# html_title = "Folium documentation"135136# A shorter title for the navigation bar. Default is the same as html_title.137# html_short_title = None138139# The name of an image file (relative to this directory) to place at the top140# of the sidebar.141html_logo = "_static/folium_logo.png"142143# The name of an image file (within the static path) to use as favicon of the144# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32145# pixels large.146# html_favicon = None147148# Add any paths that contain custom static files (such as style sheets) here,149# relative to this directory. They are copied after the builtin static files,150# so a file named "default.css" will overwrite the builtin "default.css".151html_static_path = ["_static"]152153html_css_files = [154"custom.css",155]156157# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,158# using the given strftime format.159# html_last_updated_fmt = '%b %d, %Y'160161# If true, SmartyPants will be used to convert quotes and dashes to162# typographically correct entities.163# html_use_smartypants = True164165# Custom sidebar templates, maps document names to template names.166# html_sidebars = {}167168# Additional templates that should be rendered to pages, maps page names to169# template names.170# html_additional_pages = {}171172# If false, no module index is generated.173# html_domain_indices = True174175# If false, no index is generated.176# html_use_index = True177178# If true, the index is split into individual pages for each letter.179# html_split_index = False180181# If true, links to the reST sources are added to the pages.182# html_show_sourcelink = True183184# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.185# html_show_sphinx = True186187# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.188# html_show_copyright = True189190# If true, an OpenSearch description file will be output, and all pages will191# contain a <link> tag referring to it. The value of this option must be the192# base URL from which the finished HTML is served.193# html_use_opensearch = ''194195# This is the file name suffix for HTML files (e.g. ".xhtml").196# html_file_suffix = None197198# Output file base name for HTML help builder.199htmlhelp_basename = "Foliumdoc"200201202# -- Options for LaTeX output --------------------------------------------------203204latex_elements = {205# The paper size ('letterpaper' or 'a4paper').206#'papersize': 'letterpaper',207# The font size ('10pt', '11pt' or '12pt').208#'pointsize': '10pt',209# Additional stuff for the LaTeX preamble.210#'preamble': '',211}212213# Grouping the document tree into LaTeX files. List of tuples214# (source start file, target name, title, author, documentclass [howto/manual]).215latex_documents = [216("index", "Folium.tex", "Folium Documentation", "Rob Story", "manual"),217]218219# The name of an image file (relative to this directory) to place at the top of220# the title page.221# latex_logo = None222223# For "manual" documents, if this is true, then toplevel headings are parts,224# not chapters.225# latex_use_parts = False226227# If true, show page references after internal links.228# latex_show_pagerefs = False229230# If true, show URL addresses after external links.231# latex_show_urls = False232233# Documents to append as an appendix to all manuals.234# latex_appendices = []235236# If false, no module index is generated.237# latex_domain_indices = True238239240# -- Options for manual page output --------------------------------------------241242# One entry per manual page. List of tuples243# (source start file, name, description, authors, manual section).244man_pages = [("index", "folium", "Folium Documentation", ["Rob Story"], 1)]245246# If true, show URL addresses after external links.247# man_show_urls = False248249250# -- Options for Texinfo output ------------------------------------------------251252# Grouping the document tree into Texinfo files. List of tuples253# (source start file, target name, title, author,254# dir menu entry, description, category)255texinfo_documents = [256(257"index",258"Folium",259"Folium Documentation",260"Rob Story",261"Folium",262"One line description of project.",263"Miscellaneous",264),265]266267# Documents to append as an appendix to all manuals.268# texinfo_appendices = []269270# If false, no module index is generated.271# texinfo_domain_indices = True272273# How to display URL addresses: 'footnote', 'no', or 'inline'.274# texinfo_show_urls = 'footnote'275276# Ignore tile URLs277linkcheck_ignore = [278r"https://free.*",279]280281intersphinx_mapping = {282"xyzservices": (283"https://xyzservices.readthedocs.io/en/latest/",284"https://xyzservices.readthedocs.io/en/latest/objects.inv",285),286"branca": (287"https://python-visualization.github.io/branca/",288"https://python-visualization.github.io/branca/objects.inv",289),290}291292autodoc_default_options = {293"members": True,294"undoc-members": True,295"show-inheritance": True,296"no-value": "default_js,default_css",297}298299nbsphinx_custom_formats = {300".md": ["jupytext.reads", {"fmt": "mystnb"}],301}302303304