schema-markdown 1.2.12 → 1.2.13

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.
Files changed (2) hide show
  1. package/README.md +18 -16
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -98,22 +98,21 @@ is publicly visible, you can use the BareScript model application with the `var.
98
98
 
99
99
  ### Self-Hosting Schema Documentation
100
100
 
101
- You can host the schemaDoc application yourself by downloading the
102
- [MarkdownUp Application HTML stub](https://craigahobbs.github.io/markdown-up/#host-markdown-web-pages).
103
-
104
- ~~~sh
105
- curl -O https://craigahobbs.github.io/markdown-up/extra/index.html
106
- ~~~
107
-
108
- Replace the MarkdownUp application creation line:
109
-
110
- ~~~javascript
111
- const app = new MarkdownUp(window);
112
- ~~~
113
-
114
- With the following:
115
-
116
- ```javascript
101
+ You can host the schemaDoc application yourself by adding a schemaDoc HTML stub:
102
+
103
+ ``` html
104
+ <!DOCTYPE html>
105
+ <html lang="en">
106
+ <head>
107
+ <title>MarkdownUp</title>
108
+ <meta charset="utf-8">
109
+ <meta name="viewport" content="width=device-width, initial-scale=1">
110
+ <link rel="stylesheet" href="https://craigahobbs.github.io/markdown-up/app.css">
111
+ <link rel="preload" href="https://craigahobbs.github.io/markdown-up/bare-script/static/markdown.css" as="style">
112
+ <link rel="modulepreload" href="https://craigahobbs.github.io/markdown-up/lib/appImports.js" as="script">
113
+ </head>
114
+ <script type="module">
115
+ import {MarkdownUp} from 'https://craigahobbs.github.io/markdown-up/lib/appImports.js';
117
116
  const app = new MarkdownUp(window, {
118
117
  'markdownText': `\
119
118
  ~~~markdown-script
@@ -123,6 +122,9 @@ schemaDocMain('model.json', 'My Model')
123
122
  ~~~
124
123
  `
125
124
  });
125
+ app.run();
126
+ </script>
127
+ </html>
126
128
  ```
127
129
 
128
130
  To view locally, start a local static web server:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "schema-markdown",
4
- "version": "1.2.12",
4
+ "version": "1.2.13",
5
5
  "description": "A schema definition and validation library",
6
6
  "keywords": [
7
7
  "schema",
@@ -24,8 +24,10 @@
24
24
  "test": "node --test test/"
25
25
  },
26
26
  "devDependencies": {
27
- "c8": "~10.1",
28
- "eslint": "~9.39",
27
+ "@eslint/js": "~10.0",
28
+ "c8": "~11.0",
29
+ "eslint": "~10.1",
30
+ "globals": "~17.4",
29
31
  "jsdoc": "~4.0"
30
32
  }
31
33
  }