@@ -266,33 +266,21 @@ def jupyterlite_build(app: Sphinx, error):
266
266
if app .builder .format == "html" :
267
267
print ("[jupyterlite-sphinx] Running JupyterLite build" )
268
268
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
284
272
285
273
config = []
286
- if jupyter_lite_config :
287
- config = ["--config" , jupyter_lite_config ]
274
+ if jupyterlite_config :
275
+ config = ["--config" , jupyterlite_config ]
288
276
289
277
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 ])
293
281
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 :
296
284
contents .extend (["--contents" , content ])
297
285
298
286
command = [
@@ -308,8 +296,8 @@ def jupyterlite_build(app: Sphinx, error):
308
296
os .path .join (app .outdir , JUPYTERLITE_DIR ),
309
297
]
310
298
311
- if jupyter_lite_dir :
312
- command .extend (["--lite-dir" , jupyter_lite_dir ])
299
+ if jupyterlite_dir :
300
+ command .extend (["--lite-dir" , jupyterlite_dir ])
313
301
314
302
subprocess .run (command , check = True )
315
303
else :
@@ -338,10 +326,8 @@ def setup(app):
338
326
339
327
# Config options
340
328
app .add_config_value ("jupyterlite_config" , None , rebuild = "html" )
341
- app .add_config_value ("jupyter_lite_config" , None , rebuild = "html" )
342
329
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" )
345
331
346
332
# Initialize RetroLite and JupyterLite directives
347
333
app .add_node (
0 commit comments