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

use more nbconvert machinery #95

Closed
wants to merge 5 commits into from
Closed
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
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
on:
pull_request:
types:
- opened
- opened

jobs:
comment:
Expand All @@ -15,4 +15,4 @@ jobs:
with:
message: |
A preview fo the exported examples will be rendered at
https://iota-school.github.io/notebooks-for-all/branch/${{ github.event.pull_request.head.ref }}/exports/html
https://${{ github.repository_owner }}}.io/nbconvert-a11y/branch/${{ github.event.pull_request.head.ref }}/exports/html
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('test-environment.yml') }}
hashFiles('.github/test-environment.yml') }}
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: test-environment.yml
environment-file: .github/test-environment.yml
cache-environment: true
- name: init plawright
run: |
Expand Down
9 changes: 0 additions & 9 deletions convert.py

This file was deleted.

24 changes: 12 additions & 12 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,18 @@ def readme(target, ext, title):
}
# this is missing the file_deps and targets
# they can be computed
for d in "user-tests resources".split():
DIR = Path(d)
files = [x for x in DIR.rglob("*") if x.is_file()]
targets = [EXPORTS / x for x in files]
print(EXPORTS / DIR)
yield {
"name": d,
"actions": [(cp, (DIR, EXPORTS / DIR))],
"clean": [f"""rm -rf {EXPORTS / DIR}"""],
"file_dep": files,
"targets": targets,
}
# for d in "user-tests resources".split():
# DIR = Path(d)
# files = [x for x in DIR.rglob("*") if x.is_file()]
# targets = [EXPORTS / x for x in files]
# print(EXPORTS / DIR)
# yield {
# "name": d,
# "actions": [(cp, (DIR, EXPORTS / DIR))],
# "clean": [f"""rm -rf {EXPORTS / DIR}"""],
# "file_dep": files,
# "targets": targets,
# }


# @task_params(
Expand Down
7 changes: 0 additions & 7 deletions nbconvert_a11y/_selectors.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def from_notebook_node(self, nb, resources=None, **kw):
resources.setdefault("include_axe", self.include_axe)
resources.setdefault("include_settings", self.include_settings)
resources.setdefault("include_help", self.include_help)
resources.setdefault("include_toc", self.include_toc)
resources.setdefault("axe_url", self.axe_url)
html, resources = super().from_notebook_node(nb, resources, **kw)
html = self.post_process_html(html)
Expand Down
286 changes: 0 additions & 286 deletions nbconvert_a11y/exporters.py

This file was deleted.

Loading