|
35 | 35 | "sphinx.ext.autosummary", |
36 | 36 | "sphinx.ext.napoleon", |
37 | 37 | "sphinx.ext.autosectionlabel", |
| 38 | + "myst_parser", |
| 39 | + "sphinx_design", |
| 40 | + "sphinx_tabs.tabs" |
38 | 41 | ] |
39 | 42 |
|
40 | 43 | # Add any paths that contain templates here, relative to this directory. |
41 | 44 | templates_path = ["_templates"] |
42 | 45 |
|
43 | | -source_suffix = ".rst" # The suffix of source filenames. |
| 46 | +source_suffix = { |
| 47 | + '.rst': 'restructuredtext', |
| 48 | + '.md': 'markdown', |
| 49 | +} |
| 50 | + |
| 51 | +# MyST parser settings |
| 52 | +# myst_heading_anchors = 3 |
| 53 | +myst_enable_extensions = [ |
| 54 | + "amsmath", |
| 55 | + "colon_fence", |
| 56 | + "deflist", |
| 57 | + "dollarmath", |
| 58 | + "html_admonition", |
| 59 | + "html_image", |
| 60 | + "replacements", |
| 61 | + "smartquotes", |
| 62 | + "substitution", |
| 63 | + "tasklist", |
| 64 | +] |
| 65 | +myst_url_schemes = ("http", "https", "mailto") |
44 | 66 | master_doc = "index" # The master toctree document. |
45 | 67 |
|
46 | 68 | copyright = "%s, Amazon" % datetime.now().year |
|
58 | 80 | autodoc_default_flags = ["show-inheritance", "members", "undoc-members"] |
59 | 81 | autodoc_member_order = "bysource" |
60 | 82 |
|
61 | | -html_theme = "sphinx_rtd_theme" |
| 83 | +html_theme = "sphinx_book_theme" |
62 | 84 |
|
63 | 85 | html_theme_options = { |
64 | | - "collapse_navigation": True, |
65 | | - "sticky_navigation": True, |
66 | | - "navigation_depth": 6, |
67 | | - "includehidden": True, |
68 | | - "titles_only": False, |
| 86 | + "use_repository_button": False, |
| 87 | + "use_edit_page_button": False, |
| 88 | + "use_issues_button": False, |
| 89 | + "use_download_button": False, |
| 90 | + "toc_title": "On This Page", |
| 91 | + "navbar_start": ["custom-logo.html"], |
| 92 | + "navbar_center": [], |
| 93 | + "navbar_end": ["navbar-right.html"], |
| 94 | + "navigation_depth": 2, |
| 95 | + "collapse_navigation": True |
69 | 96 | } |
70 | 97 |
|
71 | | - |
72 | 98 | html_static_path = ["_static"] |
73 | 99 |
|
74 | 100 | htmlhelp_basename = "%sdoc" % project |
|
82 | 108 | ] |
83 | 109 |
|
84 | 110 | html_css_files = [ |
| 111 | + "https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css", |
85 | 112 | "https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css", |
86 | 113 | "theme_overrides.css", |
87 | 114 | "pagination.css", |
88 | 115 | "search_accessories.css", |
| 116 | + "custom.css" |
89 | 117 | ] |
90 | 118 |
|
91 | 119 | # Example configuration for intersphinx: refer to the Python standard library. |
|
0 commit comments