@@ -129,20 +129,18 @@ def __getattr__(cls, name):
129
129
}
130
130
131
131
# Add any paths that contain templates here, relative to this directory.
132
- templates_path = ["_templates" , "xanadu_theme" ]
132
+ templates_path = ["_templates" ]
133
133
134
134
# The suffix(es) of source filenames.
135
135
# You can specify multiple suffix as a list of string:
136
- #
137
- # source_suffix = ['.rst', '.md']
138
136
source_suffix = ".rst"
139
137
140
138
# The master toctree document.
141
139
master_doc = "index"
142
140
143
141
# General information about the project.
144
142
project = "PennyLane-Lightning"
145
- copyright = "Copyright 2021 "
143
+ copyright = "2022, Xanadu Quantum Technologies "
146
144
author = "Xanadu Inc."
147
145
148
146
add_module_names = False
@@ -199,36 +197,81 @@ def __getattr__(cls, name):
199
197
200
198
# Custom sidebar templates, must be a dictionary that maps document names
201
199
# to template names.
202
- #
203
- # This is required for the alabaster theme
204
- # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
205
200
html_sidebars = {
206
201
"**" : [
207
- "logo-text.html" ,
208
202
"searchbox.html" ,
209
203
"globaltoc.html" ,
210
204
]
211
205
}
212
206
213
-
214
207
# -- Xanadu theme ---------------------------------------------------------
215
- html_theme = "xanadu_theme"
216
- html_theme_path = ["." ]
208
+ html_theme = "xanadu"
217
209
218
210
# xanadu theme options (see theme.conf for more information)
219
211
html_theme_options = {
220
- # Set the name of the project to appear in the left sidebar.
221
- "project_nav_name" : "PennyLane-Lightning" ,
222
- # Path to a touch icon
223
- "touch_icon" : "logo_new.png" ,
224
- "large_toc" : True ,
225
- "navigation_button" : "#19b37b" ,
226
- "navigation_button_hover" : "#0e714d" ,
227
- "toc_caption" : "#19b37b" ,
228
- "toc_hover" : "#19b37b" ,
229
- "table_header_bg" : "#edf7f4" ,
230
- "table_header_border" : "#19b37b" ,
231
- "download_button" : "#19b37b" ,
212
+ "navbar_wordmark_path" : "_static/pl_wordmark.png" ,
213
+ # Specifying #19b37b is more correct but does not match the other PL websites.
214
+ "navbar_logo_colour" : "#2d7c7f" ,
215
+
216
+ "navbar_home_link" : "https://pennylane.ai" ,
217
+
218
+ "navbar_left_links" : [
219
+ {
220
+ "name" : "Quantum machine learning" ,
221
+ "href" : "https://pennylane.ai/qml/" ,
222
+ },
223
+ {
224
+ "name" : "Demos" ,
225
+ "href" : "https://pennylane.ai/qml/demonstrations.html" ,
226
+ },
227
+ {
228
+ "name" : "Install" ,
229
+ "href" : "https://pennylane.ai/install.html" ,
230
+ },
231
+ {
232
+ "name" : "Plugins" ,
233
+ "href" : "https://pennylane.ai/plugins.html" ,
234
+ "active" : True ,
235
+ },
236
+ {
237
+ "name" : "Documentation" ,
238
+ "href" : "https://pennylane.readthedocs.io/" ,
239
+ },
240
+ {
241
+ "name" : "Blog" ,
242
+ "href" : "https://pennylane.ai/blog/" ,
243
+ }
244
+ ],
245
+
246
+ "navbar_right_links" : [
247
+ {
248
+ "name" : "FAQ" ,
249
+ "href" : "https://pennylane.ai/faq.html" ,
250
+ "icon" : "fas fa-question" ,
251
+ },
252
+ {
253
+ "name" : "Support" ,
254
+ "href" : "https://discuss.pennylane.ai/" ,
255
+ "icon" : "fab fa-discourse" ,
256
+ },
257
+ {
258
+ "name" : "GitHub" ,
259
+ "href" : "https://github.com/PennyLaneAI/pennylane-lightning" ,
260
+ "icon" : "fab fa-github" ,
261
+ }
262
+ ],
263
+
264
+ "extra_copyrights" : [
265
+ "TensorFlow, the TensorFlow logo, and any related marks are trademarks "
266
+ "of Google Inc."
267
+ ],
268
+
269
+ "border_colour" : "#19b37b" ,
270
+ "prev_next_button_colour" : "#19b37b" ,
271
+ "prev_next_button_hover_colour" : "#0e714d" ,
272
+ "table_header_background_colour" : "#edf7f4" ,
273
+ "text_accent_colour" : "#19b37b" ,
274
+ "toc_marker_colour" : "#19b37b" ,
232
275
}
233
276
234
277
edit_on_github_project = "PennyLaneAI/pennylane-lightning"
@@ -240,13 +283,7 @@ def __getattr__(cls, name):
240
283
autodoc_member_order = "bysource"
241
284
242
285
# inheritance_diagram graphviz attributes
243
- inheritance_node_attrs = dict (color = "lightskyblue1" , style = "filled" )
286
+ inheritance_node_attrs = dict (color = "lightskyblue1" , fillcolor = "lightskyblue1" , style = "filled" )
244
287
245
288
# autodoc_default_flags = ['members']
246
289
autosummary_generate = True
247
-
248
- from directives import CustomDeviceGalleryItemDirective
249
-
250
-
251
- def setup (app ):
252
- app .add_directive ("devicegalleryitem" , CustomDeviceGalleryItemDirective )
0 commit comments