Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conf.py 4.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # fairseq documentation build configuration file, created by
  5. # sphinx-quickstart on Fri Aug 17 21:45:30 2018.
  6. #
  7. # This file is execfile()d with the current directory set to its
  8. # containing dir.
  9. #
  10. # Note that not all possible configuration values are present in this
  11. # autogenerated file.
  12. #
  13. # All configuration values have a default; values that are commented out
  14. # serve to show the default.
  15. # If extensions (or modules to document with autodoc) are in another directory,
  16. # add these directories to sys.path here. If the directory is relative to the
  17. # documentation root, use os.path.abspath to make it absolute, like shown here.
  18. import os
  19. import sys
  20. # source code directory, relative to this file, for sphinx-autobuild
  21. sys.path.insert(0, os.path.abspath('..'))
  22. source_suffix = ['.rst']
  23. # -- General configuration ------------------------------------------------
  24. # If your documentation needs a minimal Sphinx version, state it here.
  25. #
  26. # needs_sphinx = '1.0'
  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.autodoc',
  32. 'sphinx.ext.intersphinx',
  33. 'sphinx.ext.viewcode',
  34. 'sphinx.ext.napoleon',
  35. 'sphinxarg.ext',
  36. ]
  37. # Add any paths that contain templates here, relative to this directory.
  38. templates_path = ['_templates']
  39. # The master toctree document.
  40. master_doc = 'index'
  41. # General information about the project.
  42. project = 'fairseq'
  43. copyright = '2018, Facebook AI Research (FAIR)'
  44. author = 'Facebook AI Research (FAIR)'
  45. github_doc_root = 'https://github.com/pytorch/fairseq/tree/master/docs/'
  46. # The version info for the project you're documenting, acts as replacement for
  47. # |version| and |release|, also used in various other places throughout the
  48. # built documents.
  49. #
  50. # The short X.Y version.
  51. version = '0.6.0'
  52. # The full version, including alpha/beta/rc tags.
  53. release = '0.6.0'
  54. # The language for content autogenerated by Sphinx. Refer to documentation
  55. # for a list of supported languages.
  56. #
  57. # This is also used if you do content translation via gettext catalogs.
  58. # Usually you set "language" from the command line for these cases.
  59. language = None
  60. # List of patterns, relative to source directory, that match files and
  61. # directories to ignore when looking for source files.
  62. # This patterns also effect to html_static_path and html_extra_path
  63. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  64. # The name of the Pygments (syntax highlighting) style to use.
  65. pygments_style = 'sphinx'
  66. highlight_language = 'python'
  67. # If true, `todo` and `todoList` produce output, else they produce nothing.
  68. todo_include_todos = False
  69. # -- Options for HTML output ----------------------------------------------
  70. # The theme to use for HTML and HTML Help pages. See the documentation for
  71. # a list of builtin themes.
  72. #
  73. html_theme = 'sphinx_rtd_theme'
  74. # Theme options are theme-specific and customize the look and feel of a theme
  75. # further. For a list of options available for each theme, see the
  76. # documentation.
  77. #
  78. # html_theme_options = {}
  79. # Add any paths that contain custom static files (such as style sheets) here,
  80. # relative to this directory. They are copied after the builtin static files,
  81. # so a file named "default.css" will overwrite the builtin "default.css".
  82. html_static_path = ['_static']
  83. html_context = {
  84. 'css_files': [
  85. '_static/theme_overrides.css', # override wide tables in RTD theme
  86. ],
  87. }
  88. # Custom sidebar templates, must be a dictionary that maps document names
  89. # to template names.
  90. #
  91. # This is required for the alabaster theme
  92. # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
  93. #html_sidebars = {
  94. # '**': [
  95. # 'about.html',
  96. # 'navigation.html',
  97. # 'relations.html', # needs 'show_related': True theme option to display
  98. # 'searchbox.html',
  99. # 'donate.html',
  100. # ]
  101. #}
  102. # Example configuration for intersphinx: refer to the Python standard library.
  103. intersphinx_mapping = {
  104. 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
  105. 'python': ('https://docs.python.org/', None),
  106. 'torch': ('https://pytorch.org/docs/master/', None),
  107. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...