@@ -266,33 +266,21 @@ def jupyterlite_build(app: Sphinx, error):
266266 if app .builder .format == "html" :
267267 print ("[jupyterlite-sphinx] Running JupyterLite build" )
268268
269- jupyter_lite_config = app .env .config .jupyter_lite_config
270- jupyter_lite_contents = app .env .config .jupyter_lite_contents
271- jupyter_lite_dir = app .env .config .jupyter_lite_dir
272-
273- if app .env .config .jupyterlite_config :
274- warn (
275- "jupyterlite_config config option is deprecated, please use jupyter_lite_config instead"
276- )
277- jupyter_lite_config = app .env .config .jupyterlite_config
278-
279- if app .env .config .jupyterlite_dir :
280- warn (
281- "jupyterlite_dir config option is deprecated, please use jupyter_lite_dir instead"
282- )
283- jupyter_lite_dir = app .env .config .jupyterlite_dir
269+ jupyterlite_config = app .env .config .jupyterlite_config
270+ jupyterlite_contents = app .env .config .jupyterlite_contents
271+ jupyterlite_dir = app .env .config .jupyterlite_dir
284272
285273 config = []
286- if jupyter_lite_config :
287- config = ["--config" , jupyter_lite_config ]
274+ if jupyterlite_config :
275+ config = ["--config" , jupyterlite_config ]
288276
289277 contents = []
290- if jupyter_lite_contents :
291- if isinstance (jupyter_lite_contents , str ):
292- contents .extend (["--contents" , jupyter_lite_contents ])
278+ if jupyterlite_contents :
279+ if isinstance (jupyterlite_contents , str ):
280+ contents .extend (["--contents" , jupyterlite_contents ])
293281
294- if isinstance (jupyter_lite_contents , (tuple , list )):
295- for content in jupyter_lite_contents :
282+ if isinstance (jupyterlite_contents , (tuple , list )):
283+ for content in jupyterlite_contents :
296284 contents .extend (["--contents" , content ])
297285
298286 command = [
@@ -308,8 +296,8 @@ def jupyterlite_build(app: Sphinx, error):
308296 os .path .join (app .outdir , JUPYTERLITE_DIR ),
309297 ]
310298
311- if jupyter_lite_dir :
312- command .extend (["--lite-dir" , jupyter_lite_dir ])
299+ if jupyterlite_dir :
300+ command .extend (["--lite-dir" , jupyterlite_dir ])
313301
314302 subprocess .run (command , check = True )
315303 else :
@@ -338,10 +326,8 @@ def setup(app):
338326
339327 # Config options
340328 app .add_config_value ("jupyterlite_config" , None , rebuild = "html" )
341- app .add_config_value ("jupyter_lite_config" , None , rebuild = "html" )
342329 app .add_config_value ("jupyterlite_dir" , None , rebuild = "html" )
343- app .add_config_value ("jupyter_lite_dir" , None , rebuild = "html" )
344- app .add_config_value ("jupyter_lite_contents" , None , rebuild = "html" )
330+ app .add_config_value ("jupyterlite_contents" , None , rebuild = "html" )
345331
346332 # Initialize RetroLite and JupyterLite directives
347333 app .add_node (
0 commit comments