@@ -7276,17 +7276,15 @@ def extract_chart(self, chart_name=None):
7276
7276
############
7277
7277
7278
7278
def create_tour (self , name = None , theme = None ):
7279
- """Creates a tour for a website. By default, the Shepherd JavaScript
7280
- Library is used with the Shepherd "Light" / "Arrows" theme .
7279
+ """Creates a guided tour for any website.
7280
+ The default theme is the IntroJS Library .
7281
7281
@Params
7282
7282
name - If creating multiple tours at the same time,
7283
7283
use this to select the tour you wish to add steps to.
7284
- theme - Sets the default theme for the tour.
7285
- Choose from "light"/"arrows", "dark", "default", "square",
7286
- and "square-dark". ("arrows" is used if None is selected.)
7287
- Alternatively, you may use a different JavaScript Library
7288
- as the theme. Those include "IntroJS", "DriverJS",
7289
- "Hopscotch", and "Bootstrap".
7284
+ theme - Sets the default theme for the website tour. Available themes:
7285
+ "Bootstrap", "DriverJS", "Hopscotch", "IntroJS", "Shepherd".
7286
+ The "Shepherd" library also contains multiple variation themes:
7287
+ "light"/"arrows", "dark", "default", "square", "square-dark".
7290
7288
"""
7291
7289
if not name :
7292
7290
name = "default"
@@ -7308,20 +7306,20 @@ def create_tour(self, name=None, theme=None):
7308
7306
self .create_shepherd_tour (name , theme = "light" )
7309
7307
elif theme .lower () == "light" :
7310
7308
self .create_shepherd_tour (name , theme = "light" )
7311
- elif theme .lower () == "dark" :
7312
- self .create_shepherd_tour (name , theme = "dark" )
7313
7309
elif theme .lower () == "arrows" :
7314
7310
self .create_shepherd_tour (name , theme = "light" )
7311
+ elif theme .lower () == "dark" :
7312
+ self .create_shepherd_tour (name , theme = "dark" )
7315
7313
elif theme .lower () == "square" :
7316
7314
self .create_shepherd_tour (name , theme = "square" )
7317
7315
elif theme .lower () == "square-dark" :
7318
7316
self .create_shepherd_tour (name , theme = "square-dark" )
7319
7317
elif theme .lower () == "default" :
7320
7318
self .create_shepherd_tour (name , theme = "default" )
7321
7319
else :
7322
- self .create_shepherd_tour (name , theme )
7320
+ self .create_introjs_tour (name )
7323
7321
else :
7324
- self .create_shepherd_tour (name , theme = "light" )
7322
+ self .create_introjs_tour (name )
7325
7323
7326
7324
def create_shepherd_tour (self , name = None , theme = None ):
7327
7325
"""Creates a Shepherd JS website tour.
0 commit comments