@abreen/tada 1.3.1 → 1.3.2

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/build/watch.ts CHANGED
@@ -543,12 +543,28 @@ initialBuild()
543
543
  watcher.on('add', onFileChange);
544
544
  watcher.on('unlink', onFileChange);
545
545
 
546
- watcher.on('ready', () => {
546
+ let configWatcherReady = false;
547
+ let contentWatcherReady = false;
548
+
549
+ function onWatcherReady(): void {
550
+ if (!configWatcherReady || !contentWatcherReady) {
551
+ return;
552
+ }
547
553
  watcherReady = true;
548
554
  if (initialBuildFailed) {
549
555
  broadcast('error');
550
556
  }
551
557
  broadcast('ready');
552
558
  log.info`Watching for changes...`;
559
+ }
560
+
561
+ configWatcher.on('ready', () => {
562
+ configWatcherReady = true;
563
+ onWatcherReady();
564
+ });
565
+
566
+ watcher.on('ready', () => {
567
+ contentWatcherReady = true;
568
+ onWatcherReady();
553
569
  });
554
570
  });
@@ -11,8 +11,9 @@ This is an example site built with <%= page.toolName %>.
11
11
 
12
12
  ## Getting started
13
13
 
14
- Edit the files in `content/` to add your own pages. The `config/` directory
15
- contains the site configuration, and `templates/` contains the HTML layouts.
14
+ Edit the files in `content/` to add your own pages. To configure the nav,
15
+ update `nav.json`. Update `authors.json` with your information, or delete it
16
+ if you won't use the `author` front matter field.
16
17
 
17
18
  See the [Markdown examples page](/markdown.html) for syntax examples.
18
19
 
@@ -25,8 +25,6 @@ the `<main>` element.
25
25
  Note that the table of contents contains more than just headings, but
26
26
  also alerts (notes and warnings) `<hr>` elements.
27
27
 
28
- ---
29
-
30
28
  ## Basic syntax
31
29
 
32
30
  <!---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abreen/tada",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "description": "A static site generator",
6
6
  "license": "MIT",
package/src/_base.scss CHANGED
@@ -25,14 +25,6 @@ h6 {
25
25
  -webkit-break-after: avoid;
26
26
  break-after: avoid;
27
27
  line-height: 1.3;
28
-
29
- /*
30
- * Enable Inter's features:
31
- * ss03 - round quotes & commas
32
- * ss04 - disambiguation (make uppercase i and lowercase L distinct)
33
- * dlig - discretionary ligatures (for style)
34
- */
35
- font-feature-settings: 'ss03', 'ss04', 'dlig';
36
28
  }
37
29
 
38
30
  h1 {
@@ -50,11 +42,15 @@ body {
50
42
  line-height: var(--line-height);
51
43
 
52
44
  /*
53
- * Enable Inter's features for legibility:
54
- * ss03 - round quotes & commas
55
- * ss04 - disambiguation (make uppercase i and lowercase L distinct)
45
+ * Enable Inter's features:
46
+ * liga - standard ligatures
47
+ * calt - contextual alternates
48
+ * ss03 - round quotes & commas (legibility)
49
+ * cv01 - alternate 1 (style)
50
+ * cv05 - lower case L with tail (legibility)
51
+ * cv10 - capital G with spur (style)
56
52
  */
57
- font-feature-settings: 'ss03', 'ss04';
53
+ font-feature-settings: 'liga', 'calt', 'ss03', 'cv01', 'cv05', 'cv10';
58
54
 
59
55
  @media (prefers-color-scheme: dark) {
60
56
  & {
@@ -155,6 +151,7 @@ main details {
155
151
 
156
152
  input[type='text'],
157
153
  input[type='search'] {
154
+ font-family: var(--font);
158
155
  background: var(--bg-color);
159
156
  color: var(--fg-color);
160
157
  border: var(--control-border-width) solid var(--fg2-color);
package/src/_layout.scss CHANGED
@@ -26,18 +26,11 @@ body > .container {
26
26
  padding-bottom: 2rem;
27
27
  }
28
28
 
29
- body.default .body,
30
- body.literate .body {
31
- > *:first-child {
32
- margin-top: 0;
33
- }
34
- }
35
-
36
29
  body.default .title-and-info,
37
30
  body.default nav.toc,
38
31
  body.literate .title-and-info,
39
32
  body.literate nav.toc {
40
- margin-bottom: 2rem;
33
+ margin-bottom: var(--gap);
41
34
  }
42
35
 
43
36
  body.default .title-and-info,
@@ -47,6 +40,11 @@ body.literate .title-and-info {
47
40
  }
48
41
  }
49
42
 
43
+ body.default .title-and-info {
44
+ padding-bottom: var(--gap);
45
+ border-bottom: 1px solid var(--fg2-color);
46
+ }
47
+
50
48
  body.default main table,
51
49
  body.literate main table {
52
50
  width: 100%;