Skip to content

Commit b8ed472

Browse files
committed
Regenerating HTML
1 parent 77d4f5b commit b8ed472

File tree

76 files changed

+222
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+222
-248
lines changed

bin/post-pandoc.py

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77
FIGURE_PAT = re.compile(r'<embed src="figures/(.+?)\.pdf"')
8+
FIGCAPTION_PAT = re.compile(r'<figcaption><span>(.+?)</span><span id="(.+?)" label="(.+?)">.+?</span></figcaption>')
89
BIB_REF_PAT = re.compile(r'<span\s+class="citation"\s+data-cites="(.+?)">.+?</span>')
910
BIB_ENTRY_PAT = re.compile(r'<div\s+id="ref-(.+?)">\n<p>', re.MULTILINE)
1011

@@ -26,12 +27,17 @@ def main():
2627
.replace(EMPTY_ROW_EVEN, '')\
2728
.replace(EMPTY_ROW_ODD, '')
2829
text = FIGURE_PAT.sub(r'<img src="figures/\1.svg"', text)
30+
text = FIGCAPTION_PAT.sub(replace_figcaption, text)
2931
text = BIB_REF_PAT.sub(replace_ref, text)
3032
text = BIB_ENTRY_PAT.sub(replace_entry, text)
3133
text = fix_footnotes(text)
3234
sys.stdout.write(text)
3335

3436

37+
def replace_figcaption(fields):
38+
return '<figcaption><span id="{1}">{0}</span></figcaption>'.format(fields[1], fields[2])
39+
40+
3541
def replace_ref(refs):
3642
return '[' + ','.join(f'<a class="cite" href="#ref-{r}">{r}</a>' for r in refs.group(1).split()) + ']'
3743

docs/figures/basics-object-table.pdf

-25.9 KB
Binary file not shown.

docs/figures/basics-object-table.svg

+1-3

docs/figures/basics-require.pdf

-20.4 KB
Binary file not shown.

docs/figures/basics-require.svg

+1-3

docs/figures/basics-traversal.pdf

-15.9 KB
Binary file not shown.

docs/figures/basics-traversal.svg

+1-3

docs/figures/callbacks-adder-1.pdf

-22.2 KB
Binary file not shown.

docs/figures/callbacks-adder-1.svg

+1-2

docs/figures/callbacks-adder-2.pdf

-15.7 KB
Binary file not shown.

docs/figures/callbacks-adder-2.svg

+1-2

docs/figures/callbacks-adder-3.pdf

-18.8 KB
Binary file not shown.

docs/figures/callbacks-adder-3.svg

+1-2

docs/figures/callbacks-adder-4.pdf

-13.3 KB
Binary file not shown.

docs/figures/callbacks-adder-4.svg

+1-2
-19.4 KB
Binary file not shown.

docs/figures/callbacks-alias-function.svg

+1-2

docs/figures/callbacks-call-stack.pdf

-20.6 KB
Binary file not shown.

docs/figures/callbacks-call-stack.svg

+1-2

docs/figures/callbacks-do-twice.pdf

-18.5 KB
Binary file not shown.

docs/figures/callbacks-do-twice.svg

+1-2

docs/figures/callbacks-name-value.pdf

-24.2 KB
Binary file not shown.

docs/figures/callbacks-name-value.svg

+1-2

docs/figures/callbacks-one-more.pdf

-22.3 KB
Binary file not shown.

docs/figures/callbacks-one-more.svg

+1-2

docs/figures/callbacks-pipeline.pdf

-2.76 KB
Binary file not shown.

docs/figures/callbacks-pipeline.svg

+1-2
-5.87 KB
Binary file not shown.

docs/figures/dataforge-method-chaining.svg

+1-3

docs/figures/dataforge-positional.pdf

10.7 KB
Binary file not shown.

docs/figures/dataforge-positional.svg

+1-3
-3.58 KB
Binary file not shown.

docs/figures/dataforge-rows-and-columns.svg

+1-3

docs/figures/dataforge-sorting.pdf

-15 KB
Binary file not shown.

docs/figures/dataforge-sorting.svg

+1-3
7.59 KB
Binary file not shown.

docs/figures/dataforge-summarizing.svg

+1-3

docs/figures/dynamic-alternatives.pdf

-886 Bytes
Binary file not shown.

docs/figures/dynamic-alternatives.svg

+1-2

docs/figures/dynamic-parcel.pdf

16.2 KB
Binary file not shown.

docs/figures/dynamic-parcel.svg

+1-3

docs/figures/htmlcss-links.pdf

565 Bytes
Binary file not shown.

docs/figures/htmlcss-links.svg

+1-3

docs/figures/htmlcss-tree.pdf

-4.99 KB
Binary file not shown.

docs/figures/htmlcss-tree.svg

+1-3
3.73 KB
Binary file not shown.

docs/figures/interactive-objects-dom.svg

+1-2

docs/figures/legacy-prototype.pdf

-2.67 KB
Binary file not shown.

docs/figures/legacy-prototype.svg

+1-2

docs/figures/oop-inheritance.pdf

14.9 KB
Binary file not shown.

docs/figures/oop-inheritance.svg

+1-2

docs/figures/oop-memory.pdf

3.1 KB
Binary file not shown.

docs/figures/oop-memory.svg

+1-3

docs/figures/pages-pipeline.pdf

7.81 KB
Binary file not shown.

docs/figures/pages-pipeline.svg

+1-3

docs/figures/pages-sortlist.pdf

-1.41 KB
Binary file not shown.

docs/figures/pages-sortlist.svg

+1-3

docs/figures/promises-object-a.pdf

-17.4 KB
Binary file not shown.

docs/figures/promises-object-a.svg

+1-2

docs/figures/promises-object-b.pdf

-6.5 KB
Binary file not shown.

docs/figures/promises-object-b.svg

+1-2

docs/figures/promises-queue.pdf

-8.28 KB
Binary file not shown.

docs/figures/promises-queue.svg

+1-2
-1.93 KB
Binary file not shown.

docs/figures/promises-try-catch-fail.svg

+1-3

docs/figures/server-cycle.pdf

-6.96 KB
Binary file not shown.

docs/figures/server-cycle.svg

+1-2

docs/figures/server-mapping.pdf

-6.5 KB
Binary file not shown.

docs/figures/server-mapping.svg

+1-3

docs/figures/server-request.pdf

-308 Bytes
Binary file not shown.

docs/figures/server-request.svg

+1-2

docs/figures/testing-mocha.pdf

-6.26 KB
Binary file not shown.

docs/figures/testing-mocha.svg

+1-3

docs/figures/testing-supertest.pdf

-8.48 KB
Binary file not shown.

docs/figures/testing-supertest.svg

+1-3

docs/index.html

+179-156
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)