Skip to content

Commit df55017

Browse files
author
Sam Schreiner
committed
Putting JSONSchemaMarkdown.js in src folder so it can be published to npm
1 parent 974f69e commit df55017

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Generate markdown documentation for JSON Schemas
44
Try it out at [brianwendt.github.io/json-schema-md-doc](https://brianwendt.github.io/json-schema-md-doc)
55

6-
Download [JSONSchemaMarkdown.js](https://raw.githubusercontent.com/BrianWendt/json-schema-md-doc/master/docs/lib/JSONSchemaMarkdown.js)
6+
Download [JSONSchemaMarkdown.js](https://raw.githubusercontent.com/BrianWendt/json-schema-md-doc/master/src/JSONSchemaMarkdown.js)
77

88
[Click here](https://github.com/BrianWendt/json-schema-md-doc/tree/master/samples/node) to see the Node example.
99

@@ -12,7 +12,7 @@ Download [JSONSchemaMarkdown.js](https://raw.githubusercontent.com/BrianWendt/js
1212
## Simple Implementation
1313
**HTML**
1414
``` html
15-
<script src="https://brianwendt.github.io/json-schema-md-doc/lib/JSONSchemaMarkdown.js"></script>
15+
<script src="https://brianwendt.github.io/json-schema-md-doc/src/JSONSchemaMarkdown.js"></script>
1616
```
1717
**Javascript**
1818
``` javascript

docs/documentaion/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ <h3> </h3>
6262
<article><h1>json-schema-md-doc</h1>
6363
<h2>Generate markdown documentation for JSON Schemas</h2>
6464
<p>Try it out at <a href="https://brianwendt.github.io/json-schema-md-doc">brianwendt.github.io/json-schema-md-doc</a></p>
65-
<p>Download <a href="https://raw.githubusercontent.com/BrianWendt/json-schema-md-doc/master/docs/lib/JSONSchemaMarkdown.js">JSONSchemaMarkdown.js</a></p>
65+
<p>Download <a href="https://raw.githubusercontent.com/BrianWendt/json-schema-md-doc/master/src/JSONSchemaMarkdown.js">JSONSchemaMarkdown.js</a></p>
6666
<p><a href="https://github.com/BrianWendt/json-schema-md-doc/tree/master/samples/node">Click here</a> to see the Node example.</p>
6767
<p><strong>NOTE:</strong> JSONSchemaMarkdown.js supports <a href="https://json-schema.org/">json-schema.org</a> <code>draft-7</code>. Previous drafts may not generate documentation correctly.</p>
6868
<h2>Simple Implementation</h2>
6969
<p><strong>HTML</strong></p>
70-
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://brianwendt.github.io/json-schema-md-doc/lib/JSONSchemaMarkdown.js&quot;>&lt;/script>
70+
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://brianwendt.github.io/json-schema-md-doc/src/JSONSchemaMarkdown.js&quot;>&lt;/script>
7171
</code></pre>
7272
<p><strong>Javascript</strong></p>
7373
<pre class="prettyprint source lang-javascript"><code>// simple schema for the example

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
66
<title>JSON Schema to Markdown</title>
77
<script src="lib/jquery-3.4.0.min.js"></script>
8-
<script src="lib/JSONSchemaMarkdown.js"></script>
8+
<script src="../src/JSONSchemaMarkdown.js"></script>
99
<script src="lib/index.js"></script>
1010
<link href="lib/bootstrap.min.css" rel="stylesheet" />
1111
</head>
@@ -35,7 +35,7 @@ <h2>Output Markdown</h2>
3535
<p><a href="./issue.html" target="_blank" class="btn btn-warning">Submit Issue</a></p>
3636
<p>
3737
You may fully customize your output by extending the <code>JSONSchemaMarkdown</code> class to override the rendering methods.
38-
Download <a href="./lib/JSONSchemaMarkdown.js" target="_blank">JSONSchemaMarkdown.js</a>
38+
Download <a href="../src/JSONSchemaMarkdown.js" target="_blank">JSONSchemaMarkdown.js</a>
3939
</p>
4040
<p>Find the <a href="https://github.com/BrianWendt/json_schema_markdown" target="_blank">BrianWendt/json_schema_markdown</a> project on GitHub.</p>
4141
<p class="small">License: <a href="https://github.com/BrianWendt/json_schema_markdown/blob/master/LICENSE" target="_blank">GNU General Public License v3.0</a></p>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "json-schema-md-doc",
33
"author": "Brian Wendt (https://github.com/BrianWendt)",
44
"description": "Generate markdown documentation for JSON Schemas",
5-
"main": "./docs/lib/JSONSchemaMarkdown.js",
5+
"main": "./src/JSONSchemaMarkdown.js",
66
"keywords": [
77
"json-schema"
88
],

samples/node/doc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//const {JSONSchemaMarkdown} = require('json-schema-md-doc');
2-
const {JSONSchemaMarkdown} = require('../../docs/lib/JSONSchemaMarkdown');
2+
const {JSONSchemaMarkdown} = require('../../src/JSONSchemaMarkdown');
33
const fs = require("fs");
44
const package = require("../../package.json");
55

scripts/jsdoc_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"recurseDepth": 10,
44
"source": {
55
"include": [
6-
"./docs/lib/JSONSchemaMarkdown.js"
6+
"./lib/JSONSchemaMarkdown.js"
77
]
88
},
99
"sourceType": "module",
File renamed without changes.

0 commit comments

Comments
 (0)