spec-up-t 1.0.20 → 1.0.22
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.
|
@@ -155,7 +155,7 @@ function fetchCommitHashes() {
|
|
|
155
155
|
latestVersion.rel = 'noopener noreferrer';
|
|
156
156
|
latestVersion.classList.add('latest-version', 'xref-info-links', 'btn');
|
|
157
157
|
latestVersion.innerHTML = '<svg icon><use xlink:href="#svg-github"></use></svg> Now';
|
|
158
|
-
latestVersion.title = 'Go to the repo page of the definition‘s
|
|
158
|
+
latestVersion.title = 'Go to the repo page of the definition‘s latest version.';
|
|
159
159
|
diff.parentNode.insertBefore(latestVersion, element.nextSibling);
|
|
160
160
|
|
|
161
161
|
// Exact commit hash at the time of referencing the file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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": {
|
|
@@ -56,14 +56,14 @@ function createVersionsIndex() {
|
|
|
56
56
|
<h1 class="mb-4">Spec-Up-T Snapshot Index</h1>
|
|
57
57
|
<p>This page lists all available snapshots of this Spec-Up-T specification.</p>
|
|
58
58
|
<ul class="list-group">
|
|
59
|
-
<li class="list-group-item"><a href="../index.html">
|
|
59
|
+
<li class="list-group-item"><a href="../index.html">Latest version</a></li>
|
|
60
60
|
`;
|
|
61
61
|
|
|
62
62
|
if (dirs.length === 0) {
|
|
63
63
|
htmlContent += ` <li class="list-group-item">No versions available</li>\n`;
|
|
64
64
|
} else {
|
|
65
65
|
dirs.forEach(dir => {
|
|
66
|
-
htmlContent += ` <li class="list-group-item"><a href="${dir}/
|
|
66
|
+
htmlContent += ` <li class="list-group-item"><a href="${dir}/">Version ${dir}</a></li>\n`;
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
|
package/src/freeze.js
CHANGED
|
@@ -62,7 +62,7 @@ dirs.forEach(dir => {
|
|
|
62
62
|
if (match) {
|
|
63
63
|
// Extract the version number from the directory name
|
|
64
64
|
const version = parseInt(match[1], 10);
|
|
65
|
-
// Update the highest version number if the
|
|
65
|
+
// Update the highest version number if the latest version is higher
|
|
66
66
|
if (version > highestVersion) {
|
|
67
67
|
highestVersion = version;
|
|
68
68
|
}
|