spec-up-t 1.0.31 → 1.0.32
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 +1 -5
- package/package.json +1 -1
- package/templates/template.html +1 -1
package/index.js
CHANGED
|
@@ -293,9 +293,6 @@ module.exports = function(options = {}) {
|
|
|
293
293
|
doc = applyReplacers(doc);
|
|
294
294
|
md[spec.katex ? "enable" : "disable"](katexRules);
|
|
295
295
|
const render = md.render(doc);
|
|
296
|
-
|
|
297
|
-
// If the first character of the output_path is a dot, remove it
|
|
298
|
-
const outputPathMadeRelative = spec.output_path.startsWith('.') ? spec.output_path.slice(1) : spec.output_path;
|
|
299
296
|
|
|
300
297
|
const templateInterpolated = interpolate(template, {
|
|
301
298
|
title: spec.title,
|
|
@@ -309,8 +306,7 @@ module.exports = function(options = {}) {
|
|
|
309
306
|
xrefsData: xrefsData,
|
|
310
307
|
specLogo: spec.logo,
|
|
311
308
|
specLogoLink: spec.logo_link,
|
|
312
|
-
spec: JSON.stringify(spec)
|
|
313
|
-
pathToVersions: outputPathMadeRelative + '/versions/',
|
|
309
|
+
spec: JSON.stringify(spec)
|
|
314
310
|
});
|
|
315
311
|
|
|
316
312
|
fs.writeFile(path.join(spec.destination, 'index.html'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
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": {
|
package/templates/template.html
CHANGED