spec-up-t 0.11.23 → 0.11.25
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.25",
|
|
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": {
|
|
@@ -9,14 +9,15 @@ const fs = require('fs-extra');
|
|
|
9
9
|
const config = fs.readJsonSync('specs.json');
|
|
10
10
|
const specDirectories = config.specs.map(spec => spec.spec_directory + '/' + spec.spec_terms_directory);
|
|
11
11
|
|
|
12
|
-
// Create directory named “output” in the project root if it does not yet exist
|
|
13
|
-
if (!fs.existsSync('output')) {
|
|
14
|
-
fs.mkdirSync('output');
|
|
15
|
-
}
|
|
16
12
|
|
|
17
13
|
// Create a path for the output file in the project root
|
|
18
|
-
const outputPathJSON = '
|
|
19
|
-
const outputPathJS = '
|
|
14
|
+
const outputPathJSON = path.join(config.specs[0].output_path, 'term-relations-data.json');
|
|
15
|
+
const outputPathJS = path.join(config.specs[0].output_path, 'term-relations-data.js');
|
|
16
|
+
|
|
17
|
+
// Create directory named “output” in the project root if it does not yet exist
|
|
18
|
+
if (!fs.existsSync(config.specs[0].output_path)) {
|
|
19
|
+
fs.mkdirSync(config.specs[0].output_path);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
22
|
function createTermRelations() {
|
|
22
23
|
let allDefs = {};
|
package/src/get-xrefs-data.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file This file creates a JavaScript file with the data for the xrefs. It fetches the latest commit hash of the term files from the GitHub API and stores the data in a JavaScript file that is included in the HTML output of the specification.
|
|
2
|
+
* @file This file creates a JavaScript file with the data for the xrefs. It fetches the latest commit hash of the term files from the GitHub API and stores the data in a JavaScript file that is included in the HTML output of the specification. The outputted JS file serves as a source for the JS code that will be included in the html file.
|
|
3
3
|
* @author Kor Dwarshuis
|
|
4
4
|
* @version 1.0.0
|
|
5
5
|
* @since 2024-06-09
|