|
26 | 26 | # -- Project information ----------------------------------------------------- |
27 | 27 |
|
28 | 28 | project = "IDOM" |
| 29 | +title = "IDOM Docs" |
| 30 | +description = ( |
| 31 | + "IDOM is a Python web framework for building interactive websites without needing " |
| 32 | + "a single line of Javascript. It can be run standalone, in a Jupyter Notebook, or " |
| 33 | + "as part of an existing application." |
| 34 | +) |
29 | 35 | copyright = "2020, Ryan Morshead" |
30 | 36 | author = "Ryan Morshead" |
31 | 37 |
|
|
74 | 80 | "sphinx_copybutton", |
75 | 81 | "sphinx_reredirects", |
76 | 82 | "sphinx_design", |
| 83 | + "sphinxext.opengraph", |
77 | 84 | # custom extensions |
78 | 85 | "async_doctest", |
79 | 86 | "autogen_api_docs", |
|
126 | 133 |
|
127 | 134 | # -- Extension Configuration ------------------------------------------------------ |
128 | 135 |
|
| 136 | + |
129 | 137 | # -- sphinx.ext.autosectionlabel --- |
130 | 138 |
|
131 | 139 | autosectionlabel_skip_docs = ["_auto/apis"] |
132 | 140 |
|
| 141 | + |
133 | 142 | # -- sphinx.ext.autodoc -- |
134 | 143 |
|
135 | 144 | # show base classes for autodoc |
|
140 | 149 | # order autodoc members by their order in the source |
141 | 150 | autodoc_member_order = "bysource" |
142 | 151 |
|
| 152 | + |
143 | 153 | # -- sphinx_reredirects -- |
144 | 154 |
|
145 | 155 | redirects = { |
|
148 | 158 | "examples": "creating-interfaces/index.html", |
149 | 159 | } |
150 | 160 |
|
| 161 | + |
| 162 | +# -- sphinxext.opengraph -- |
| 163 | + |
| 164 | +ogp_site_url = "https://idom-docs.herokuapp.com/" |
| 165 | +ogp_image = "https://raw.githubusercontent.com/idom-team/idom/main/branding/png/idom-logo-black.png" |
| 166 | +# We manually specify this below |
| 167 | +# ogp_description_length = 200 |
| 168 | +ogp_type = "website" |
| 169 | +ogp_custom_meta_tags = [ |
| 170 | + # Open Graph Meta Tags |
| 171 | + f'<meta property="og:title" content="{title}">', |
| 172 | + f'<meta property="og:description" content="{description}">', |
| 173 | + # Twitter Meta Tags |
| 174 | + f'<meta name="twitter:card" content="summary_large_image">', |
| 175 | + f'<meta name="twitter:creator" content="@rmorshea">', |
| 176 | + f'<meta name="twitter:site" content="@rmorshea">', |
| 177 | +] |
| 178 | + |
| 179 | + |
151 | 180 | # -- Options for HTML output ------------------------------------------------- |
152 | 181 |
|
153 | 182 | # Set the page title |
154 | | -html_title = "IDOM Docs" |
| 183 | +html_title = title |
155 | 184 |
|
156 | 185 | # The theme to use for HTML and HTML Help pages. See the documentation for |
157 | 186 | # a list of builtin themes. |
|
0 commit comments