@abreen/tada 1.1.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -17
- package/bin/tada.ts +317 -25
- package/bin/validators.test.ts +4 -3
- package/bin/validators.ts +4 -2
- package/build/apply-base-path-plugin.ts +24 -13
- package/build/build-manifest.test.ts +349 -0
- package/build/build-manifest.ts +165 -0
- package/build/bundle.ts +19 -20
- package/build/code.test.ts +7 -3
- package/build/content-watch.ts +6 -6
- package/build/copy.ts +2 -2
- package/build/deflist-id-plugin.ts +1 -1
- package/build/external-links-plugin.ts +2 -2
- package/build/features.ts +1 -1
- package/build/generate-content-assets.ts +12 -7
- package/build/generate-favicon.ts +13 -6
- package/build/generate-fonts.ts +2 -2
- package/build/generate-katex-assets.ts +35 -0
- package/build/generate-manifest.ts +2 -2
- package/build/globals.test.ts +10 -11
- package/build/globals.ts +14 -7
- package/build/json-schema.test.ts +1 -1
- package/build/log.test.ts +1 -1
- package/build/log.ts +2 -2
- package/build/markdown-plugins.test.ts +116 -10
- package/build/pagefind.test.ts +2 -2
- package/build/pagefind.ts +5 -5
- package/build/pdf-text.test.ts +52 -0
- package/build/pipeline.ts +42 -15
- package/build/reachability.test.ts +1 -1
- package/build/serve.ts +20 -8
- package/build/site-variables.ts +13 -5
- package/build/templates.ts +16 -7
- package/build/toc-plugin.test.ts +2 -2
- package/build/toc-plugin.ts +1 -1
- package/build/types.ts +15 -6
- package/build/util.ts +6 -6
- package/build/utils/code.ts +5 -5
- package/build/utils/content-files.ts +3 -3
- package/build/utils/derive-theme.test.ts +1 -1
- package/build/utils/derive-theme.ts +1 -1
- package/build/utils/file-types.test.ts +1 -1
- package/build/utils/front-matter.test.ts +1 -4
- package/build/utils/front-matter.ts +2 -2
- package/build/utils/jdi-runner/LiterateRunner.java +13 -0
- package/build/utils/literate-java.ts +24 -12
- package/build/utils/markdown.ts +41 -9
- package/build/utils/paths.test.ts +2 -2
- package/build/utils/paths.ts +5 -1
- package/build/utils/render.ts +57 -36
- package/build/utils/shiki-highlighter.ts +1 -1
- package/build/validate-internal-links-plugin.test.ts +1 -1
- package/build/validate-internal-links-plugin.ts +1 -1
- package/build/watch-reachability-state.test.ts +2 -2
- package/build/watch-reachability-state.ts +1 -1
- package/build/watch.ts +91 -110
- package/init/content/labs/00/VowelCounter.java.md +129 -0
- package/init/content/labs/00/index.md +29 -0
- package/init/content/labs/index.md +9 -0
- package/{content → init/content}/lectures/01/Pair.java.md +1 -0
- package/{content → init/content}/lectures/index.md +1 -1
- package/{content → init/content}/markdown.md +26 -7
- package/package.json +19 -7
- package/{templates → schema}/nav.schema.json +1 -2
- package/{build → schema}/site.schema.json +3 -5
- package/src/_alerts.scss +4 -0
- package/src/_base.scss +90 -6
- package/src/_layout.scss +39 -2
- package/src/anchor/index.ts +0 -1
- package/src/index.ts +3 -3
- package/src/question/style.scss +8 -3
- package/src/search/index.test.ts +203 -0
- package/src/search/index.ts +3 -79
- package/src/search/pdf-utils.ts +79 -0
- package/src/search/style.scss +2 -20
- package/src/style.scss +20 -101
- package/src/timezone/index.ts +9 -25
- package/src/util.ts +1 -1
- package/templates/_top.html +2 -1
- package/types/dev.d.ts +1 -3
- package/types/site-variables.d.ts +6 -10
- package/types/untyped-modules.d.ts +7 -0
- package/build/utils/jdi-runner/LiterateRunner.class +0 -0
- package/config/authors.json +0 -1
- package/config/nav.json +0 -28
- /package/{content → init/content}/index.md +0 -0
- /package/{content → init/content}/lectures/01/Rectangle.java +0 -0
- /package/{content → init/content}/lectures/01/demo.py +0 -0
- /package/{content → init/content}/lectures/01/index.md +0 -0
- /package/{content → init/content}/lectures/01/lecture1.pdf +0 -0
- /package/{content → init/content}/problem_sets/index.html +0 -0
- /package/{public → init/public}/avatars/alex.jpg +0 -0
- /package/{public → init/public}/test.txt +0 -0
- /package/{templates → schema}/authors.schema.json +0 -0
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface TimeZone {
|
|
2
2
|
value: string;
|
|
3
3
|
label: string;
|
|
4
4
|
abbreviation: string;
|
|
5
5
|
offsetMinutes?: number;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
defaultTimeZone: string;
|
|
14
|
-
timezones: TimezoneDef[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
8
|
+
declare const __SITE_BASE__: string;
|
|
9
|
+
declare const __SITE_BASE_PATH__: string;
|
|
10
|
+
declare const __SITE_TITLE_POSTFIX__: string;
|
|
11
|
+
declare const __SITE_DEFAULT_TIMEZONE__: string;
|
|
12
|
+
declare const __SITE_TIMEZONES__: TimeZone[];
|
|
@@ -22,6 +22,13 @@ declare module 'pagefind' {
|
|
|
22
22
|
export function close(): Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
declare module 'katex/contrib/render-a11y-string' {
|
|
26
|
+
export default function renderA11yString(
|
|
27
|
+
text: string,
|
|
28
|
+
settings?: Record<string, unknown>,
|
|
29
|
+
): string;
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
declare module 'jsdom' {
|
|
26
33
|
export class JSDOM {
|
|
27
34
|
constructor(html?: string | Buffer, options?: Record<string, unknown>);
|
|
Binary file
|
package/config/authors.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "alex": { "name": "Alex Breen", "avatar": "/avatars/alex.jpg" } }
|
package/config/nav.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"title": "Navigation",
|
|
4
|
-
"links": [{ "text": "Home", "internal": "/index.html" }]
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"title": "Topics",
|
|
8
|
-
"links": [
|
|
9
|
-
{ "text": "Lectures", "internal": "/lectures/index.html" },
|
|
10
|
-
{
|
|
11
|
-
"text": "Problem Sets",
|
|
12
|
-
"internal": "/problem_sets/index.html",
|
|
13
|
-
"disabled": true
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"title": "Links",
|
|
19
|
-
"links": [
|
|
20
|
-
{ "text": "Zoom", "external": "https://zoom.com" },
|
|
21
|
-
{
|
|
22
|
-
"text": "Canvas",
|
|
23
|
-
"external": "https://www.instructure.com/",
|
|
24
|
-
"disabled": true
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|