spec-up-t 1.0.50 → 1.0.52

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/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
 
2
2
  module.exports = function(options = {}) {
3
+ const fs = require('fs-extra');
4
+ const path = require('path');
3
5
 
4
6
  const {
5
7
  fetchExternalSpecs,
@@ -7,24 +9,23 @@ module.exports = function(options = {}) {
7
9
  findExternalSpecByKey
8
10
  } = require('./src/references.js');
9
11
 
10
- const createVersionsIndex = require('./src/create-versions-index.js');
11
- createVersionsIndex();
12
-
13
12
  const { runJsonKeyValidatorSync } = require('./src/json-key-validator.js');
14
13
  runJsonKeyValidatorSync();
15
14
 
16
15
  const { createTermRelations } = require('./src/create-term-relations.js');
17
16
  createTermRelations();
18
-
17
+
19
18
  const { insertTermIndex } = require('./src/insert-term-index.js');
20
19
  insertTermIndex();
21
-
20
+
22
21
  const gulp = require('gulp');
23
- const fs = require('fs-extra');
24
- const path = require('path');
25
22
  const findPkgDir = require('find-pkg-dir');
26
23
  const modulePath = findPkgDir(__dirname);
27
24
  let config = fs.readJsonSync('./output/specs-generated.json');
25
+
26
+ const createVersionsIndex = require('./src/create-versions-index.js');
27
+ createVersionsIndex(config.specs[0].output_path);
28
+
28
29
  let template = fs.readFileSync(path.join(modulePath, 'templates/template.html'), 'utf8');
29
30
  let assets = fs.readJsonSync(modulePath + '/src/asset-map.json');
30
31
  let externalReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-up-t",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
5
5
  "main": "./index",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "standards"
21
21
  ],
22
22
  "author": "Blockchain Bird",
23
- "license": "Apache 2.0",
23
+ "license": "Apache-2.0",
24
24
  "bugs": {
25
25
  "url": "https://github.com/blockchainbird/spec-up-t/issues"
26
26
  },
package/readme.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- <img src="./specup_logo.png">
5
+ <img src="./static/specup_logo.png">
6
6
 
7
7
  <h2 style="display: block; margin: 0 auto; text-align: center;">Markdown » Spec-Up</h2>
8
8
  </div>
@@ -15,13 +15,7 @@
15
15
  const fs = require('fs-extra');
16
16
  const path = require('path');
17
17
 
18
- function createVersionsIndex() {
19
- // Read and parse the specs.json file
20
- const config = fs.readJsonSync('specs.json');
21
-
22
- // Extract the output_path from the specs.json file
23
- const outputPath = config.specs[0].output_path;
24
-
18
+ function createVersionsIndex(outputPath) {
25
19
  // Directory containing the version files
26
20
  const versionsDir = path.join(outputPath, 'versions');
27
21