Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old code and templates, factor templates into some thing less chaotic. #4

Merged
merged 9 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions nbconvert_a11y/_selectors.py

This file was deleted.

File renamed without changes.
286 changes: 0 additions & 286 deletions nbconvert_a11y/exporters.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ the base template defines notebook independent components.
an accessible base template provides a substrate to progressively enchance
the notebook experiennce from browse to edit/focus mode.
#}
{%- extends 'semantic-forms/displays.j2.html' -%}
{%- extends 'a11y/components/displays.html.j2' -%}
{% from 'celltags.j2' import celltags %}
{% from 'mathjax.html.j2' import mathjax %}
{% from 'lab/mermaidjs.html.j2' import mermaid_js %}
Expand All @@ -19,6 +19,7 @@ the notebook experiennce from browse to edit/focus mode.
{%- block head -%}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{# add page description #}
{# use technique [h25] to provide a title to satisfy [2.4.2A]. #}
<title>{{title}}</title>
{# color scheme signals that notebooks can viewed in light and dark mode.
Expand Down Expand Up @@ -66,8 +67,8 @@ the notebook experiennce from browse to edit/focus mode.
{# site authors with include their site specific headers in this region. #}
{# a subsequent tab stop will indicate to keyboard and AT users that there are
accessibility settings that can be toggled. #}
{% if resources.include_settings %}{% include "a11y/settings.html.j2" %}{% endif %}
{% if resources.include_axe %}{% include "a11y/audit.j2.html" %}{% endif %}
{% if resources.include_settings %}{% include "a11y/components/settings.html.j2" %}{% endif %}
{% if resources.include_axe %}{% include "a11y/components/audit.html.j2" %}{% endif %}
</header>
<main aria-labelledby="nb-notebook-label">
<form name="notebook" id="notebook" aria-labelledby="nb-notebook-label">
Expand Down Expand Up @@ -104,23 +105,23 @@ the notebook experiennce from browse to edit/focus mode.

{% block body_footer %}
{# dialogs need to be outside the form because we cant nest forms #}
{% include "a11y/expanded.html.j2"%}
{% include "a11y/visibility.html.j2"%}
{% include "a11y/components/expanded.html.j2"%}
{% include "a11y/components/visibility.html.j2"%}
<dialog id="nb-metadata">
<form method="dialog">
<button formmethod="dialog">Close</button>
{{nb.metadata| json_dumps | escape_html_keep_quotes }}
</form>
</dialog>
{% if resources.include_help %}{% include "a11y/help.html.j2" %}{% endif %}
{% if resources.include_help %}{% include "a11y/components/help.html.j2" %}{% endif %}
</main>
{# a notebook begins as a static document that can progressively
add features like run time computation. #}
{# skip to top is needed for long notebooks.
it is difficult to access for keyboard users. #}
<footer>
{% set LOGID = True %}
{% include "a11y/activity-log.html.j2" %}
{% include "a11y/components/activity-log.html.j2" %}
<a href="#notebook" accesskey="0">skip to top</a>
</footer>
{% if resources.include_settings %}<script src="settings.js"></script>{% endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "a11y/visibility.html.j2" import header_row, checkbox_row%}
{% from "a11y/components/visibility.html.j2" import header_row, checkbox_row%}
<dialog id="nb-expanded-dialog">
<form name="expanded">
<button formmethod="dialog">Close</button>
Expand All @@ -12,6 +12,6 @@
</tbody>
</table>
</form>
{% include "a11y/activity-log.html.j2" %}
{% include "a11y/components/activity-log.html.j2" %}

</dialog>
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
<legend>sound settings</legend>
<label><input type="checkbox" name="speech">Synthetic speech</label>
</fieldset>
{% include "a11y/activity-log.html.j2" %}
{% include "a11y/components/activity-log.html.j2" %}
</form>
</dialog>
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
</tbody>
</table>
</form>
{% include "a11y/activity-log.html.j2" %}
{% include "a11y/components/activity-log.html.j2" %}
</dialog>
Loading
Loading