spec-up-t 1.1.13 → 1.1.14
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/assets/compiled/body.js +21 -34
- package/assets/compiled/head.css +3 -3
- package/assets/css/create-alphabet-index.css +12 -30
- package/assets/css/index.css +19 -0
- package/assets/css/search.css +12 -87
- package/assets/js/create-alphabet-index.js +10 -13
- package/assets/js/mermaid.js +1584 -31
- package/assets/js/search.js +4 -3
- package/assets/js/token-input.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/asset-map.json +1 -1
- package/templates/template.html +1 -1
package/assets/js/search.js
CHANGED
|
@@ -17,13 +17,14 @@ function inPageSearch() {
|
|
|
17
17
|
/*****************/
|
|
18
18
|
/* CONFIGURATION */
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const terminologySectionUtilityContainer = document.getElementById("terminology-section-utility-container");
|
|
21
|
+
|
|
21
22
|
const matchesStyle = specConfig.searchHighlightStyle || 'ssi';
|
|
22
23
|
const antiNameCollisions = 'search-h7vc6omi2hr2880';// random string to be added to classes, id's etc, to prevent name collisions in the global space
|
|
23
24
|
const debounceTime = 600;
|
|
24
25
|
const matches = 'matches';// What text to display after the number of matches
|
|
25
26
|
const searchBarPlaceholder = '🔍';
|
|
26
|
-
const searchableContent = document.querySelector('
|
|
27
|
+
const searchableContent = document.querySelector('.terms-and-definitions-list');
|
|
27
28
|
|
|
28
29
|
/* END CONFIGURATION */
|
|
29
30
|
/*********************/
|
|
@@ -44,7 +45,7 @@ function inPageSearch() {
|
|
|
44
45
|
let searchContainer = document.createElement("div");
|
|
45
46
|
searchContainer.setAttribute("id", "container-" + antiNameCollisions);
|
|
46
47
|
searchContainer.setAttribute("class", "container-" + antiNameCollisions);
|
|
47
|
-
|
|
48
|
+
terminologySectionUtilityContainer.appendChild(searchContainer);
|
|
48
49
|
|
|
49
50
|
// Add an input element (for search)
|
|
50
51
|
let searchInput = document.createElement("input");
|
package/assets/js/token-input.js
CHANGED
|
@@ -10,7 +10,7 @@ function tokenInput() {
|
|
|
10
10
|
buttonTokenInput.classList.add("button-token-input");
|
|
11
11
|
buttonTokenInput.classList.add("btn");
|
|
12
12
|
buttonTokenInput.innerHTML = "🔑";
|
|
13
|
-
document.querySelector('#
|
|
13
|
+
document.querySelector('#repo_issues').insertAdjacentElement('afterend', buttonTokenInput);
|
|
14
14
|
buttonTokenInput.addEventListener('click', () => {
|
|
15
15
|
const token = prompt('Please enter your GitHub token:');
|
|
16
16
|
|
package/index.js
CHANGED
|
@@ -265,7 +265,7 @@ module.exports = async function (options = {}) {
|
|
|
265
265
|
const termsIndex = (spec.markdown_paths || ['spec.md']).indexOf('terms-and-definitions-intro.md');
|
|
266
266
|
if (termsIndex !== -1) {
|
|
267
267
|
// Append the HTML string to the content of terms-and-definitions-intro.md. This string is used to create a div that is used to insert an alphabet index, and a div that is used as the starting point of the terminology index. The newlines are essential for the correct rendering of the markdown.
|
|
268
|
-
docs[termsIndex] += '\n\n<div id="
|
|
268
|
+
docs[termsIndex] += '\n\n<div id="terminology-section-utility-container"></div>\n\n<div id="terminology-section-start-h7vc6omi2hr2880"></div>\n\n<hr>\n\n';
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
let doc = docs.join("\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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/src/asset-map.json
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"assets/js/tippy.js",
|
|
35
35
|
"assets/js/diff.min.js",
|
|
36
36
|
"assets/js/edit-term-buttons.js",
|
|
37
|
+
"assets/js/create-alphabet-index.js",
|
|
37
38
|
"assets/js/search.js",
|
|
38
39
|
"assets/js/highlightMenuItems.js",
|
|
39
40
|
"assets/js/backToTop.js",
|
|
@@ -45,7 +46,6 @@
|
|
|
45
46
|
"assets/js/token-input.js",
|
|
46
47
|
"assets/js/pdf-download.js",
|
|
47
48
|
"assets/js/help-buttons.js",
|
|
48
|
-
"assets/js/create-alphabet-index.js",
|
|
49
49
|
"assets/js/collapse-definitions.js",
|
|
50
50
|
"assets/js/collapse-meta-info.js",
|
|
51
51
|
"assets/js/add-href-to-snapshot-link.js",
|
package/templates/template.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<a id="logo" href="${specLogoLink}">
|
|
31
31
|
<img src="${specLogo}" />
|
|
32
32
|
</a>
|
|
33
|
-
<span issue-count animate panel-toggle="repo_issues">
|
|
33
|
+
<span id="repo_issues" issue-count animate panel-toggle="repo_issues">
|
|
34
34
|
<svg icon>
|
|
35
35
|
<use xlink:href="#svg-github"></use>
|
|
36
36
|
</svg>
|