| 1 | # fsspec documentation build configuration file, created by |
| 2 | # sphinx-quickstart on Mon Jan 15 18:11:02 2018. |
| 3 | # |
| 4 | # This file is execfile()d with the current directory set to its |
| 5 | # containing dir. |
| 6 | # |
| 7 | # Note that not all possible configuration values are present in this |
| 8 | # autogenerated file. |
| 9 | # |
| 10 | # All configuration values have a default; values that are commented out |
| 11 | # serve to show the default. |
| 12 | |
| 13 | # If extensions (or modules to document with autodoc) are in another directory, |
| 14 | # add these directories to sys.path here. If the directory is relative to the |
| 15 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 16 | # |
| 17 | import os |
| 18 | import sys |
| 19 | |
| 20 | sys.path.insert(0, os.path.abspath("../..")) |
| 21 | |
| 22 | |
| 23 | # -- General configuration ------------------------------------------------ |
| 24 | |
| 25 | # If your documentation needs a minimal Sphinx version, state it here. |
| 26 | # |
| 27 | # needs_sphinx = '1.0' |
| 28 | |
| 29 | # Add any Sphinx extension module names here, as strings. They can be |
| 30 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 31 | # ones. |
| 32 | extensions = [ |
| 33 | "sphinx.ext.autodoc", |
| 34 | "sphinx.ext.viewcode", |
| 35 | "sphinx.ext.autosummary", |
| 36 | "sphinx.ext.extlinks", |
| 37 | "numpydoc", |
| 38 | "sphinx_design", |
| 39 | ] |
| 40 | |
| 41 | numpydoc_show_class_members = False |
| 42 | |
| 43 | # Add any paths that contain templates here, relative to this directory. |
| 44 | templates_path = ["_templates"] |
| 45 | |
| 46 | # The suffix(es) of source filenames. |
| 47 | # You can specify multiple suffix as a list of string: |
| 48 | # |
| 49 | # source_suffix = ['.rst', '.md'] |
| 50 | source_suffix = ".rst" |
| 51 | |
| 52 | # The master toctree document. |
| 53 | master_doc = "index" |
| 54 | |
| 55 | # General information about the project. |
| 56 | project = "fsspec" |
| 57 | copyright = "2018, Martin Durant" |
| 58 | author = "Martin Durant" |
| 59 | |
| 60 | # The version info for the project you're documenting, acts as replacement for |
| 61 | # |version| and |release|, also used in various other places throughout the |
| 62 | # built documents. |
| 63 | # |
| 64 | # The short X.Y version. |
| 65 | |
| 66 | import fsspec |
| 67 | |
| 68 | version = fsspec.__version__ |
| 69 | # The full version, including alpha/beta/rc tags. |
| 70 | release = fsspec.__version__ |
| 71 | |
| 72 | # List of patterns, relative to source directory, that match files and |
| 73 | # directories to ignore when looking for source files. |
| 74 | # This patterns also effect to html_static_path and html_extra_path |
| 75 | exclude_patterns = [] |
| 76 | |
| 77 | # The name of the Pygments (syntax highlighting) style to use. |
| 78 | pygments_style = "sphinx" |
| 79 | |
| 80 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
| 81 | todo_include_todos = False |
| 82 | |
| 83 | default_role = "py:obj" |
| 84 | autodoc_mock_imports = [ |
| 85 | "aiohttp", |
| 86 | "dask", |
| 87 | "distributed", |
| 88 | "fuse", |
| 89 | "libarchive", |
| 90 | "panel", |
| 91 | "paramiko", |
| 92 | "pyarrow", |
| 93 | "pygit2", |
| 94 | "requests", |
| 95 | "smbprotocol", |
| 96 | "smbclient", |
| 97 | ] |
| 98 | |
| 99 | |
| 100 | # -- Options for HTML output ---------------------------------------------- |
| 101 | |
| 102 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 103 | # a list of builtin themes. |
| 104 | # |
| 105 | html_theme = "sphinx_rtd_theme" |
| 106 | |
| 107 | # Theme options are theme-specific and customize the look and feel of a theme |
| 108 | # further. For a list of options available for each theme, see the |
| 109 | # documentation. |
| 110 | # |
| 111 | # html_theme_options = {} |
| 112 | |
| 113 | # Add any paths that contain custom static files (such as style sheets) here, |
| 114 | # relative to this directory. They are copied after the builtin static files, |
| 115 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 116 | html_static_path = ["_static"] |
| 117 | |
| 118 | # Custom sidebar templates, must be a dictionary that maps document names |
| 119 | # to template names. |
| 120 | # |
| 121 | # This is required for the alabaster theme |
| 122 | # refs: https://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
| 123 | html_sidebars = { |
| 124 | "**": [ |
| 125 | "relations.html", # needs 'show_related': True theme option to display |
| 126 | "searchbox.html", |
| 127 | ] |
| 128 | } |
| 129 | |
| 130 | # Custom CSS file to override read the docs default CSS. |
| 131 | # Contains workaround for issue #790. |
| 132 | html_css_files = ["custom.css"] |
| 133 | |
| 134 | |
| 135 | # -- Options for HTMLHelp output ------------------------------------------ |
| 136 | |
| 137 | # Output file base name for HTML help builder. |
| 138 | htmlhelp_basename = "fsspecdoc" |
| 139 | |
| 140 | |
| 141 | # -- Options for LaTeX output --------------------------------------------- |
| 142 | |
| 143 | latex_elements = { |
| 144 | # The paper size ('letterpaper' or 'a4paper'). |
| 145 | # |
| 146 | # 'papersize': 'letterpaper', |
| 147 | # The font size ('10pt', '11pt' or '12pt'). |
| 148 | # |
| 149 | # 'pointsize': '10pt', |
| 150 | # Additional stuff for the LaTeX preamble. |
| 151 | # |
| 152 | # 'preamble': '', |
| 153 | # Latex figure (float) alignment |
| 154 | # |
| 155 | # 'figure_align': 'htbp', |
| 156 | } |
| 157 | |
| 158 | # Grouping the document tree into LaTeX files. List of tuples |
| 159 | # (source start file, target name, title, |
| 160 | # author, documentclass [howto, manual, or own class]). |
| 161 | latex_documents = [ |
| 162 | (master_doc, "fsspec.tex", "fsspec Documentation", "Joseph Crail", "manual") |
| 163 | ] |
| 164 | |
| 165 | |
| 166 | # -- Options for manual page output --------------------------------------- |
| 167 | |
| 168 | # One entry per manual page. List of tuples |
| 169 | # (source start file, name, description, authors, manual section). |
| 170 | man_pages = [(master_doc, "fsspec", "fsspec Documentation", [author], 1)] |
| 171 | |
| 172 | |
| 173 | # -- Options for Texinfo output ------------------------------------------- |
| 174 | |
| 175 | # Grouping the document tree into Texinfo files. List of tuples |
| 176 | # (source start file, target name, title, author, |
| 177 | # dir menu entry, description, category) |
| 178 | texinfo_documents = [ |
| 179 | ( |
| 180 | master_doc, |
| 181 | "fsspec", |
| 182 | "fsspec Documentation", |
| 183 | author, |
| 184 | "fsspec", |
| 185 | "One line description of project.", |
| 186 | "Miscellaneous", |
| 187 | ) |
| 188 | ] |
| 189 | |
| 190 | extlinks = { |
| 191 | "issue": ("https://github.com/fsspec/filesystem_spec/issues/%s", "GH#%s"), |
| 192 | "pr": ("https://github.com/fsspec/filesystem_spec/pull/%s", "GH#%s"), |
| 193 | } |