@@ -202,9 +202,9 @@ def run(self):
202202 self .content ,
203203 self .content_offset ,
204204 default_classes ,
205- head_char = self .env .app .config .panel_delimiters [0 ],
206- panel_char = self .env .app .config .panel_delimiters [1 ],
207- foot_char = self .env .app .config .panel_delimiters [2 ],
205+ panel_char = self .env .app .config .panels_delimiters [0 ],
206+ head_char = self .env .app .config .panels_delimiters [1 ],
207+ foot_char = self .env .app .config .panels_delimiters [2 ],
208208 )
209209
210210 # set the top-level containers
@@ -278,21 +278,21 @@ def run(self):
278278
279279
280280def validate_config (app , config ):
281- if len (app .config .panel_delimiters ) != 3 :
281+ if len (app .config .panels_delimiters ) != 3 :
282282 raise AssertionError (
283- "panel_delimiters config must be of form: (header, body, footer)"
283+ "panels_delimiters config must be of form: (header, body, footer)"
284284 )
285- if len (set (app .config .panel_delimiters )) != 3 :
286- raise AssertionError ("panel_delimiters config must contain unique values" )
287- for delim in app .config .panel_delimiters :
285+ if len (set (app .config .panels_delimiters )) != 3 :
286+ raise AssertionError ("panels_delimiters config must contain unique values" )
287+ for delim in app .config .panels_delimiters :
288288 if not (isinstance (delim , str ) and len (delim ) == 1 ):
289289 raise AssertionError (
290- "panel_delimiters config must contain only length 1 strings"
290+ "panels_delimiters config must contain only length 1 strings"
291291 )
292292
293293
294294def add_static_paths (app ):
295- if app .config .add_boostrap_css :
295+ if app .config .panels_add_boostrap_css :
296296 app .config .html_static_path .append (os .path .join (LOCAL_FOLDER , "css" ))
297297 app .add_css_file ("bs-grids.css" )
298298 app .add_css_file ("bs-cards.css" )
@@ -313,9 +313,9 @@ def depart_container(self, node):
313313
314314def setup (app ):
315315 app .add_directive ("panels" , Panels )
316- app .add_config_value ("panel_delimiters " , ("^ " , ". " , "+" ), "env" )
316+ app .add_config_value ("panels_delimiters " , (". " , "^ " , "+" ), "env" )
317317 app .connect ("config-inited" , validate_config )
318- app .add_config_value ("add_boostrap_css " , True , "env" )
318+ app .add_config_value ("panels_add_boostrap_css " , True , "env" )
319319 app .connect ("builder-inited" , add_static_paths )
320320 # we override container html visitors,
321321 # to stop the default behaviour of adding the `container` class to all nodes
0 commit comments