Skip to content

Commit

Permalink
fix dl nesting invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfast committed Nov 15, 2023
1 parent 539882b commit 28191e2
Showing 1 changed file with 44 additions and 42 deletions.
86 changes: 44 additions & 42 deletions nbconvert_html5/templates/a11y/help.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,48 +22,50 @@ what about internationalization? how does scheme effect internalization? #}
<dl aria-labelledby="nb-notebook-label nb-defs-label">
<dt id="nb-root-metadata-label">metadata</dt>
<dd id="nb-root-metadata-desc">{{schema.properties.metadata.description}}</dd>
<dl>
<dt id="nb-kernelspec-label">kernelspec</dt>
<dd>{{schema.properties.metadata.properties.kernelspec.description}}</dd>
<dd>
{# kernel is going to be problmenatic language for novice users. run? runtime? #}
{# kernelspec and language info should appear as separate sections with widgets in the
metadata dialog. #}
<dl aria-labelledby="nb-kernelspec-label">
<dt>kernel name</dt>
<dd>{{schema.properties.metadata.properties.kernelspec.properties.name.description}}
</dd>
<dt>display name</dt>
<dd>{{schema.properties.metadata.properties.kernelspec.properties.display_name.description}}
</dd>
</dl>
</dd>
<dt id="nb-language_info-label">language info</dt>
<dd>{{schema.properties.metadata.properties.language_info.description}}</dd>
<dd>
<dl aria-labelledby="nb-language_info-label">
<dt>programming language</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.name.description}}
</dd>
<dt><a>codemirror mode</a></dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.codemirror_mode.description}}
</dd>
<dt>file extension</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.file_extension.description}}
</dd>
<dt>mimetype</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.mimetype.description}}
</dd>
<dt>pygments lexer</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.pygments_lexer.description}}
</dd>
</dl>
</dd>
<dt>title</dt>
<dd>{{schema.properties.metadata.properties.title.description}}</dd>
<dt>authors</dt>
<dd>{{schema.properties.metadata.properties.authors.description}}</dd>
</dl>
<dd>
<dl>
<dt id="nb-kernelspec-label">kernelspec</dt>
<dd>{{schema.properties.metadata.properties.kernelspec.description}}</dd>
<dd>
{# kernel is going to be problmenatic language for novice users. run? runtime? #}
{# kernelspec and language info should appear as separate sections with widgets in the
metadata dialog. #}
<dl aria-labelledby="nb-kernelspec-label">
<dt>kernel name</dt>
<dd>{{schema.properties.metadata.properties.kernelspec.properties.name.description}}
</dd>
<dt>display name</dt>
<dd>{{schema.properties.metadata.properties.kernelspec.properties.display_name.description}}
</dd>
</dl>
</dd>
<dt id="nb-language_info-label">language info</dt>
<dd>{{schema.properties.metadata.properties.language_info.description}}</dd>
<dd>
<dl aria-labelledby="nb-language_info-label">
<dt>programming language</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.name.description}}
</dd>
<dt><a>codemirror mode</a></dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.codemirror_mode.description}}
</dd>
<dt>file extension</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.file_extension.description}}
</dd>
<dt>mimetype</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.mimetype.description}}
</dd>
<dt>pygments lexer</dt>
<dd>{{schema.properties.metadata.properties.language_info.properties.pygments_lexer.description}}
</dd>
</dl>
</dd>
<dt>title</dt>
<dd>{{schema.properties.metadata.properties.title.description}}</dd>
<dt>authors</dt>
<dd>{{schema.properties.metadata.properties.authors.description}}</dd>
</dl>
</dd>
<dt id="nb-cells-label">cells</dt>
<dd id="nb-cells-desc">{{schema.properties.cells.description}}</dd>
</dl>
Expand Down

0 comments on commit 28191e2

Please sign in to comment.