spec-up-t 1.1.33 → 1.1.35
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 +7 -8
- package/assets/compiled/head.css +6 -6
- package/assets/css/adjust-font-size.css +21 -0
- package/assets/css/create-alphabet-index.css +3 -3
- package/assets/css/header-navbar.css +4 -0
- package/assets/css/index.css +197 -1
- package/assets/css/modal.css +3 -3
- package/assets/css/terms-and-definitions.css +2 -3
- package/assets/css/theme-vars.css +9 -0
- package/assets/js/add-href-to-snapshot-link.js +1 -1
- package/assets/js/collapse-definitions.js +1 -1
- package/assets/js/edit-term-buttons.js +1 -1
- package/assets/js/modal.js +3 -3
- package/assets/js/search.js +13 -4
- package/assets/js/show-commit-hashes.js +5 -5
- package/assets/js/token-input.js +1 -6
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/asset-map.json +0 -1
- package/src/collect-external-references.js +1 -1
- package/src/collectExternalReferences/checkRateLimit.js +2 -2
- package/src/install-from-boilerplate/boilerplate/README.md +1 -1
- package/src/install-from-boilerplate/boilerplate/spec/spec-head.md +1 -1
- package/src/install-from-boilerplate/help.txt +1 -1
- package/src/install-from-boilerplate/menu.sh +5 -5
- package/templates/template.html +33 -10
- package/assets/js/help-buttons.js +0 -37
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
.adjust-font-size #decreaseBtn {
|
|
2
2
|
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" xmlns:xlink="http://www.w3.org/1999/xlink"><text x="50%" y="50%" font-family="Times New Roman" font-size="50" fill="black" dominant-baseline="middle" text-anchor="middle">A</text></svg>') no-repeat center;
|
|
3
|
+
background-color: #a9dde0;
|
|
4
|
+
/* Set background color */
|
|
5
|
+
padding: 14px 14px;
|
|
3
6
|
}
|
|
4
7
|
|
|
5
8
|
.adjust-font-size #increaseBtn {
|
|
6
9
|
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" xmlns:xlink="http://www.w3.org/1999/xlink"><text x="50%" y="50%" font-family="Times New Roman" font-size="80" fill="black" dominant-baseline="middle" text-anchor="middle">A</text></svg>') no-repeat center;
|
|
10
|
+
background-color: #a9dde0;
|
|
11
|
+
/* Set background color */
|
|
12
|
+
padding: 14px 14px;
|
|
7
13
|
}
|
|
14
|
+
|
|
15
|
+
/* This should ot be necessary but I can't get it right */
|
|
16
|
+
.adjust-font-size #increaseBtn {
|
|
17
|
+
border-bottom-left-radius: 0;
|
|
18
|
+
border-bottom-right-radius: 4px;
|
|
19
|
+
border-top-left-radius: 0;
|
|
20
|
+
border-top-right-radius: 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.adjust-font-size #decreaseBtn {
|
|
24
|
+
border-bottom-left-radius: 4px;
|
|
25
|
+
border-bottom-right-radius: 0;
|
|
26
|
+
border-top-left-radius: 4px;
|
|
27
|
+
border-top-right-radius: 0;
|
|
28
|
+
}
|
package/assets/css/index.css
CHANGED
|
@@ -120,4 +120,200 @@ dd td img {
|
|
|
120
120
|
color: #6d00a2;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
/* End Notices */
|
|
123
|
+
/* End Notices */
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/* Custom styles for Bootstrap alerts */
|
|
127
|
+
|
|
128
|
+
/* Override default alert colors */
|
|
129
|
+
.alert-primary {
|
|
130
|
+
background-color: #f9fcff;
|
|
131
|
+
/* Light cyan */
|
|
132
|
+
border-color: #b2ebf2;
|
|
133
|
+
color: #00838f;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.alert-secondary {
|
|
137
|
+
background-color: #f5f5f5;
|
|
138
|
+
/* Light gray */
|
|
139
|
+
border-color: #e0e0e0;
|
|
140
|
+
color: #616161;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.alert-success {
|
|
144
|
+
background-color: #e8f5e9;
|
|
145
|
+
/* Light green */
|
|
146
|
+
border-color: #c8e6c9;
|
|
147
|
+
color: #388e3c;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.alert-danger {
|
|
151
|
+
background-color: #ffebee;
|
|
152
|
+
/* Light red */
|
|
153
|
+
border-color: #ef9a9a;
|
|
154
|
+
color: #d32f2f;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.alert-warning {
|
|
158
|
+
background-color: #fffde7;
|
|
159
|
+
/* Light yellow */
|
|
160
|
+
border-color: #fff9c4;
|
|
161
|
+
color: #f9a825;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.alert-info {
|
|
165
|
+
background-color: #e1f5fe;
|
|
166
|
+
/* Light blue */
|
|
167
|
+
border-color: #b3e5fc;
|
|
168
|
+
color: #0288d1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.alert-light {
|
|
172
|
+
background-color: #f9f9f9;
|
|
173
|
+
border-color: #eeeeee;
|
|
174
|
+
color: #424242;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.alert-dark {
|
|
178
|
+
background-color: #e0e0e0;
|
|
179
|
+
border-color: #bdbdbd;
|
|
180
|
+
color: #212121;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Optional: Override link colors within alerts */
|
|
184
|
+
.alert a {
|
|
185
|
+
color: inherit;
|
|
186
|
+
/* Inherit the alert's text color */
|
|
187
|
+
font-weight: bold;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.alert-primary a {
|
|
191
|
+
color: #006064;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.alert-success a {
|
|
195
|
+
color: #2e7d32;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.alert-danger a {
|
|
199
|
+
color: #b71c1c;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.alert-warning a {
|
|
203
|
+
color: #f57f17;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.alert-info a {
|
|
207
|
+
color: #01579b;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.alert-dark a {
|
|
211
|
+
color: #000000;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
/* Dark theme styles for Bootstrap alerts */
|
|
216
|
+
[data-bs-theme="dark"] .alert-primary {
|
|
217
|
+
background-color: #004d40;
|
|
218
|
+
/* Dark cyan */
|
|
219
|
+
border-color: #00695c;
|
|
220
|
+
color: #b2dfdb;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[data-bs-theme="dark"] .alert-secondary {
|
|
224
|
+
background-color: #424242;
|
|
225
|
+
/* Dark gray */
|
|
226
|
+
border-color: #616161;
|
|
227
|
+
color: #e0e0e0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
[data-bs-theme="dark"] .alert-success {
|
|
231
|
+
background-color: #1b5e20;
|
|
232
|
+
/* Dark green */
|
|
233
|
+
border-color: #2e7d32;
|
|
234
|
+
color: #a5d6a7;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
[data-bs-theme="dark"] .alert-danger {
|
|
238
|
+
background-color: #b71c1c;
|
|
239
|
+
/* Dark red */
|
|
240
|
+
border-color: #c62828;
|
|
241
|
+
color: #ef9a9a;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
[data-bs-theme="dark"] .alert-warning {
|
|
245
|
+
background-color: #f57f17;
|
|
246
|
+
/* Dark yellow */
|
|
247
|
+
border-color: #ffb300;
|
|
248
|
+
color: #ffe082;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
[data-bs-theme="dark"] .alert-info {
|
|
252
|
+
background-color: #01579b;
|
|
253
|
+
/* Dark blue */
|
|
254
|
+
border-color: #0277bd;
|
|
255
|
+
color: #81d4fa;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
[data-bs-theme="dark"] .alert-light {
|
|
259
|
+
background-color: #303030;
|
|
260
|
+
border-color: #424242;
|
|
261
|
+
color: #e0e0e0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
[data-bs-theme="dark"] .alert-dark {
|
|
265
|
+
background-color: #212121;
|
|
266
|
+
border-color: #424242;
|
|
267
|
+
color: #bdbdbd;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Optional: Override link colors within dark theme alerts */
|
|
271
|
+
[data-bs-theme="dark"] .alert a {
|
|
272
|
+
color: inherit;
|
|
273
|
+
font-weight: bold;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[data-bs-theme="dark"] .alert-primary a {
|
|
277
|
+
color: #80cbc4;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[data-bs-theme="dark"] .alert-success a {
|
|
281
|
+
color: #81c784;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[data-bs-theme="dark"] .alert-danger a {
|
|
285
|
+
color: #ef5350;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
[data-bs-theme="dark"] .alert-warning a {
|
|
289
|
+
color: #ffca28;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
[data-bs-theme="dark"] .alert-info a {
|
|
293
|
+
color: #4fc3f7;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
[data-bs-theme="dark"] .alert-dark a {
|
|
297
|
+
color: #9e9e9e;
|
|
298
|
+
}
|
|
299
|
+
/* End Custom styles for Bootstrap alerts */
|
|
300
|
+
|
|
301
|
+
/* Custom menu button styles */
|
|
302
|
+
#offcanvasSettings .btn-menu-item {
|
|
303
|
+
border-radius: unset;
|
|
304
|
+
width: 100%;
|
|
305
|
+
text-align: left;
|
|
306
|
+
border: 1px solid #dee2e6;
|
|
307
|
+
/* Subtle border */
|
|
308
|
+
background-color: var(--card-bg);
|
|
309
|
+
color: var(--card-text);
|
|
310
|
+
/* Subtle background color */
|
|
311
|
+
padding: 10px 15px;
|
|
312
|
+
margin-bottom: 5px;
|
|
313
|
+
transition: background-color 0.2s ease;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
#offcanvasSettings .btn-menu-item:hover {
|
|
317
|
+
background-color: #e9ecef;
|
|
318
|
+
/* Slightly darker background on hover */
|
|
319
|
+
}
|
package/assets/css/modal.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Basic styles for the modal */
|
|
2
|
-
.modal-overlay {
|
|
2
|
+
.spec-up-t-modal-overlay {
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
5
5
|
left: 0;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
z-index: 1000;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.modal {
|
|
15
|
+
.spec-up-t-modal {
|
|
16
16
|
background-color: white;
|
|
17
17
|
padding: 2rem 20px 20px;
|
|
18
18
|
border-radius: 8px;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.modal-close {
|
|
26
|
+
.spec-up-t-modal-close {
|
|
27
27
|
position: absolute;
|
|
28
28
|
top: 0;
|
|
29
29
|
right: 5px;
|
|
@@ -9,8 +9,8 @@ h2,h3,h4,h5,h6 {
|
|
|
9
9
|
font-size: 0.875em;
|
|
10
10
|
color: inherit;
|
|
11
11
|
text-decoration: none;
|
|
12
|
-
opacity: 0.35;
|
|
13
|
-
|
|
12
|
+
/* opacity: 0.35; */
|
|
13
|
+
color: #73c2df;
|
|
14
14
|
transition: opacity 0.3s ease;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -22,7 +22,6 @@ h2,h3,h4,h5,h6 {
|
|
|
22
22
|
|
|
23
23
|
/* Terminology Section Utility Container */
|
|
24
24
|
#terminology-section-utility-container {
|
|
25
|
-
background: var(--card-bg);
|
|
26
25
|
display: flex;
|
|
27
26
|
flex-wrap: wrap;
|
|
28
27
|
justify-content: center;
|
|
@@ -18,7 +18,7 @@ function collapseDefinitions() {
|
|
|
18
18
|
// Add button as last child of every <dl>
|
|
19
19
|
dts.forEach(dt => {
|
|
20
20
|
const button = document.createElement('button');
|
|
21
|
-
button.classList.add('collapse-all-defs-button', 'btn');
|
|
21
|
+
button.classList.add('collapse-all-defs-button', 'btn', 'p-0', 'fs-5', 'd-flex', 'align-items-center','justify-content-center');
|
|
22
22
|
button.innerHTML = '▲';
|
|
23
23
|
button.setAttribute('id', 'toggleButton');
|
|
24
24
|
dt.appendChild(button);
|
|
@@ -48,7 +48,7 @@ function editTermButtons() {
|
|
|
48
48
|
const fileName = url.split(":")[1];
|
|
49
49
|
|
|
50
50
|
// add edit and history buttons to term
|
|
51
|
-
term.innerHTML += `<span class="edit-term-buttons"><a title="Link to the term file in the Github repo in a new tab" target="_blank" rel="noopener" href="https://github.com/${specConfig.source.account}/${specConfig.source.repo}/blob/main/${cleanedSpecDir}/${specConfig.spec_terms_directory}/${fileName}.md" class="edit-term-button btn">🖊️</a><a title="Link to a GitHub page that shows a history of the edits in a new tab" target="_blank" rel="noopener" href="https://github.com/${specConfig.source.account}/${specConfig.source.repo}/commits/main/${cleanedSpecDir}/${specConfig.spec_terms_directory}/${fileName}.md" class="history-term-button btn">📅</a></span>`;
|
|
51
|
+
term.innerHTML += `<span class="edit-term-buttons"><a title="Link to the term file in the Github repo in a new tab" target="_blank" rel="noopener" href="https://github.com/${specConfig.source.account}/${specConfig.source.repo}/blob/main/${cleanedSpecDir}/${specConfig.spec_terms_directory}/${fileName}.md" class="p-1 edit-term-button btn">🖊️</a><a title="Link to a GitHub page that shows a history of the edits in a new tab" target="_blank" rel="noopener" href="https://github.com/${specConfig.source.account}/${specConfig.source.repo}/commits/main/${cleanedSpecDir}/${specConfig.spec_terms_directory}/${fileName}.md" class="p-1 history-term-button btn">📅</a></span>`;
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
package/assets/js/modal.js
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
function showModal(content) {
|
|
7
7
|
// Create the modal overlay
|
|
8
8
|
const overlay = document.createElement('div');
|
|
9
|
-
overlay.className = 'modal-overlay';
|
|
9
|
+
overlay.className = 'spec-up-t-modal-overlay';
|
|
10
10
|
|
|
11
11
|
// Create the modal container
|
|
12
12
|
const modal = document.createElement('div');
|
|
13
|
-
modal.className = 'modal';
|
|
13
|
+
modal.className = 'spec-up-t-modal';
|
|
14
14
|
|
|
15
15
|
// Create the close button
|
|
16
16
|
const closeButton = document.createElement('button');
|
|
17
|
-
closeButton.className = 'modal-close';
|
|
17
|
+
closeButton.className = 'spec-up-t-modal-close';
|
|
18
18
|
closeButton.innerHTML = '×';
|
|
19
19
|
closeButton.onclick = closeModal;
|
|
20
20
|
|
package/assets/js/search.js
CHANGED
|
@@ -234,14 +234,24 @@ function inPageSearch() {
|
|
|
234
234
|
function search(searchString) {
|
|
235
235
|
// Start clean
|
|
236
236
|
removeAllSpans();
|
|
237
|
-
|
|
238
237
|
totalMatches = 0;
|
|
239
238
|
activeMatchIndex = -1;
|
|
239
|
+
|
|
240
|
+
// Remove outer quotes if present
|
|
241
|
+
if (searchString.length >= 2) {
|
|
242
|
+
if (
|
|
243
|
+
(searchString[0] === '"' && searchString[searchString.length - 1] === '"') ||
|
|
244
|
+
(searchString[0] === "'" && searchString[searchString.length - 1] === "'")
|
|
245
|
+
) {
|
|
246
|
+
searchString = searchString.substring(1, searchString.length - 1);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
240
250
|
// If the search string is empty, return
|
|
241
251
|
if (searchString === '') {
|
|
242
252
|
setTotalMatches();
|
|
243
|
-
return
|
|
244
|
-
}
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
245
255
|
|
|
246
256
|
let uniqueId = 0;
|
|
247
257
|
|
|
@@ -294,7 +304,6 @@ function inPageSearch() {
|
|
|
294
304
|
}
|
|
295
305
|
|
|
296
306
|
if (node.nodeType === 3 && !hasHiddenAncestor(node)) { // Node.TEXT_NODE
|
|
297
|
-
|
|
298
307
|
const fragments = markAndCountMatches(node);
|
|
299
308
|
if (fragments.childNodes.length > 1) {
|
|
300
309
|
// Replace the text node with the fragments if there were matches
|
|
@@ -85,7 +85,7 @@ function fetchCommitHashes() {
|
|
|
85
85
|
|
|
86
86
|
// B: Debounced “GitHub API rate limit exceeded” error message
|
|
87
87
|
const debouncedError = debounce(() => {
|
|
88
|
-
notyf.error('GitHub API rate limit exceeded. See <a target="_blank" rel="noopener" href="https://
|
|
88
|
+
notyf.error('GitHub API rate limit exceeded. See <a target="_blank" rel="noopener" href="https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token">documentation</a> for more info.');
|
|
89
89
|
}, 3000); // Delay in milliseconds
|
|
90
90
|
|
|
91
91
|
// Fetch the content of a term-file from GitHub
|
|
@@ -100,13 +100,13 @@ function fetchCommitHashes() {
|
|
|
100
100
|
.then(response => {
|
|
101
101
|
if (response.status === 403 && response.headers.get('X-RateLimit-Remaining') === '0') {
|
|
102
102
|
const resetTime = new Date(response.headers.get('X-RateLimit-Reset') * 1000);
|
|
103
|
-
console.error(`❌ Github API rate limit exceeded. Try again after ${resetTime}. See https://
|
|
103
|
+
console.error(`❌ Github API rate limit exceeded. Try again after ${resetTime}. See https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token for more info.`);
|
|
104
104
|
|
|
105
105
|
// Call the debounced error function
|
|
106
106
|
debouncedError();
|
|
107
107
|
return true;
|
|
108
108
|
} else {
|
|
109
|
-
console.log(`ℹ️ Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://
|
|
109
|
+
console.log(`ℹ️ Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token for more info.`);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
return response.json();
|
|
@@ -174,12 +174,12 @@ function fetchCommitHashes() {
|
|
|
174
174
|
|
|
175
175
|
if (response.status === 403 && response.headers.get('X-RateLimit-Remaining') === '0') {
|
|
176
176
|
const resetTime = new Date(response.headers.get('X-RateLimit-Reset') * 1000);
|
|
177
|
-
console.error(`❌ Github API rate limit exceeded. Try again after ${resetTime}. See https://
|
|
177
|
+
console.error(`❌ Github API rate limit exceeded. Try again after ${resetTime}. See https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token for more info.`);
|
|
178
178
|
|
|
179
179
|
debouncedError();
|
|
180
180
|
return true;
|
|
181
181
|
} else {
|
|
182
|
-
console.log(`ℹ️ Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://
|
|
182
|
+
console.log(`ℹ️ Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token for more info.`);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
const data = await response.json();
|
package/assets/js/token-input.js
CHANGED
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
function tokenInput() {
|
|
9
|
-
|
|
10
|
-
buttonTokenInput.classList.add("button-token-input");
|
|
11
|
-
buttonTokenInput.classList.add("btn", "btn-sm", "btn-outline-secondary","me-1");
|
|
12
|
-
buttonTokenInput.innerHTML = "🔑";
|
|
13
|
-
document.querySelector('#repo_issues').insertAdjacentElement('afterend', buttonTokenInput);
|
|
14
|
-
buttonTokenInput.addEventListener('click', () => {
|
|
9
|
+
document.querySelector('.button-token-input').addEventListener('click', () => {
|
|
15
10
|
const token = prompt('Please enter your GitHub token:');
|
|
16
11
|
|
|
17
12
|
if (!token) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.35",
|
|
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/readme.md
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
<h2 style="display: block; margin: 0 auto; text-align: center;">Markdown » Spec-Up</h2>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
There is a [special website that documents everything regarding Spec-Up-T](https://
|
|
10
|
+
There is a [special website that documents everything regarding Spec-Up-T](https://blockchainbird.github.io/spec-up-t-website/).
|
package/src/asset-map.json
CHANGED
|
@@ -26,7 +26,7 @@ function collectExternalReferences(options = {}) {
|
|
|
26
26
|
|
|
27
27
|
There is no point in continuing without a PAT, so we stop here.
|
|
28
28
|
|
|
29
|
-
Find instructions on how to get a PAT at https://
|
|
29
|
+
Find instructions on how to get a PAT at https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token
|
|
30
30
|
|
|
31
31
|
`;
|
|
32
32
|
|
|
@@ -5,10 +5,10 @@ function checkRateLimit(response) {
|
|
|
5
5
|
|
|
6
6
|
if (response.status === 403 && remaining === '0') {
|
|
7
7
|
const resetTime = new Date(reset * 1000);
|
|
8
|
-
console.error(`❌ Github API rate limit exceeded. Try again after ${resetTime}. See https://
|
|
8
|
+
console.error(`❌ Github API rate limit exceeded. Try again after ${resetTime}. See https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token for more info.`);
|
|
9
9
|
return true;
|
|
10
10
|
} else if (remaining !== null) {
|
|
11
|
-
console.log(`ℹ️ Github API rate limit: ${remaining} requests remaining. See https://
|
|
11
|
+
console.log(`ℹ️ Github API rate limit: ${remaining} requests remaining. See https://blockchainbird.github.io/spec-up-t-website/docs/getting-started/github-token for more info.`);
|
|
12
12
|
} else {
|
|
13
13
|
console.warn(`ℹ️ Unable to determine rate limit status. Check your GitHub API token and network connection.`);
|
|
14
14
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## Intro
|
|
4
4
|
|
|
5
|
-
This is a default Spec-Up-T installation. Find information on the [Spec-Up-T documentation website](https://
|
|
5
|
+
This is a default Spec-Up-T installation. Find information on the [Spec-Up-T documentation website](https://blockchainbird.github.io/spec-up-t-website/).
|
|
6
6
|
|
|
7
7
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -67,7 +67,7 @@ function prompt_input() {
|
|
|
67
67
|
|
|
68
68
|
function do_add_content() {
|
|
69
69
|
clear
|
|
70
|
-
echo -e "\n\n\n ********************\n\n\n You can start adding your content to the markdown files in the "spec" directory.\n\n You can do this by editing local files in an editor or by going to your repository on GitHub.\n\n More info: https://
|
|
70
|
+
echo -e "\n\n\n ********************\n\n\n You can start adding your content to the markdown files in the "spec" directory.\n\n You can do this by editing local files in an editor or by going to your repository on GitHub.\n\n More info: https://blockchainbird.github.io/spec-up-t-website/docs/various-roles/content-authors-guide/introduction\n\n\n ********************"
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
function do_render() { clear; npm run render; }
|
|
@@ -80,14 +80,14 @@ function do_freeze() { clear; npm run freeze; }
|
|
|
80
80
|
|
|
81
81
|
function do_help() {
|
|
82
82
|
clear
|
|
83
|
-
echo -e "\n\n\n You will be redirected to the documentation website\n\n (https://
|
|
83
|
+
echo -e "\n\n\n You will be redirected to the documentation website\n\n (https://blockchainbird.github.io/spec-up-t-website/)."
|
|
84
84
|
sleep 2
|
|
85
85
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
86
|
-
open "https://
|
|
86
|
+
open "https://blockchainbird.github.io/spec-up-t-website/"
|
|
87
87
|
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
88
|
-
xdg-open "https://
|
|
88
|
+
xdg-open "https://blockchainbird.github.io/spec-up-t-website/"
|
|
89
89
|
elif [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
|
90
|
-
start "https://
|
|
90
|
+
start "https://blockchainbird.github.io/spec-up-t-website/"
|
|
91
91
|
else
|
|
92
92
|
echo "Unsupported OS."
|
|
93
93
|
fi
|
package/templates/template.html
CHANGED
|
@@ -127,10 +127,13 @@
|
|
|
127
127
|
<!-- Right-aligned elements -->
|
|
128
128
|
<div class="d-flex align-items-center">
|
|
129
129
|
|
|
130
|
-
<!--
|
|
131
|
-
<button id="
|
|
132
|
-
data-bs-toggle="offcanvas" data-bs-target="#
|
|
133
|
-
|
|
130
|
+
<!-- Settings side menu -->
|
|
131
|
+
<button id="repo_settings" animate class="btn btn-sm btn-outline-secondary ms-2" type="button"
|
|
132
|
+
data-bs-toggle="offcanvas" data-bs-target="#offcanvasSettings" aria-controls="offcanvasSettings">
|
|
133
|
+
<svg class="bi" width="1em" height="1em" aria-hidden="true">
|
|
134
|
+
<use href="#gear-wide-connected"></use>
|
|
135
|
+
</svg>
|
|
136
|
+
<span class="visually-hidden">Settings</span>
|
|
134
137
|
</button>
|
|
135
138
|
|
|
136
139
|
<!-- Dark / Light theme selector -->
|
|
@@ -175,12 +178,12 @@
|
|
|
175
178
|
<!-- Font size -->
|
|
176
179
|
<div class="adjust-font-size btn-group me-2" role="group">
|
|
177
180
|
<button title="Decrease font size" type="button"
|
|
178
|
-
class="btn btn-
|
|
181
|
+
class="btn btn-outline-secondary m-0 border-end-0" id="decreaseBtn"><span
|
|
179
182
|
class="visually-hidden">Decrease font size</span>
|
|
180
183
|
</button>
|
|
181
184
|
<!-- <button type="button" class="btn btn-sm btn-outline-secondary m-0 px-2" id="resetBtn">0</button> -->
|
|
182
185
|
<button title="Increase font size" type="button"
|
|
183
|
-
class="btn btn-
|
|
186
|
+
class="btn btn-outline-secondary m-0 border-start-0" id="increaseBtn">
|
|
184
187
|
<span class="visually-hidden">Increase font size</span>
|
|
185
188
|
</button>
|
|
186
189
|
</div>
|
|
@@ -199,8 +202,6 @@
|
|
|
199
202
|
</div>
|
|
200
203
|
<div id="toc" class="offcanvas-body d-md-flex flex-column p-0 pt-lg-3 overflow-y-auto">
|
|
201
204
|
${toc}
|
|
202
|
-
<!-- href added via JS -->
|
|
203
|
-
<a class="btn btn-outline-secondary mt-5" href="#">Snapshots</a>
|
|
204
205
|
<a class="powered-by mx-auto p-2" href="https://github.com/trustoverip/spec-up-t"
|
|
205
206
|
target="_blank" rel="noopener">Powered By Spec-Up-T</a>
|
|
206
207
|
</div>
|
|
@@ -209,7 +210,7 @@
|
|
|
209
210
|
|
|
210
211
|
<main class="col-md-8 ms-sm-auto col-lg-9 px-md-4 pt-5">
|
|
211
212
|
<article id="content" class="">
|
|
212
|
-
<div id="terminology-section-utility-container"></div>
|
|
213
|
+
<div id="terminology-section-utility-container" class="alert alert-primary p-3"></div>
|
|
213
214
|
${render}
|
|
214
215
|
</article>
|
|
215
216
|
|
|
@@ -219,7 +220,7 @@
|
|
|
219
220
|
|
|
220
221
|
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasIssues" aria-labelledby="offcanvasIssuesLabel">
|
|
221
222
|
<div class="offcanvas-header">
|
|
222
|
-
<h5 class="offcanvas-title" id="offcanvasIssuesLabel">Issues</h5>
|
|
223
|
+
<h5 class="offcanvas-title mt-0" id="offcanvasIssuesLabel">Issues</h5>
|
|
223
224
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
|
224
225
|
</div>
|
|
225
226
|
<div class="offcanvas-body">
|
|
@@ -228,6 +229,28 @@
|
|
|
228
229
|
</div>
|
|
229
230
|
</div>
|
|
230
231
|
</div>
|
|
232
|
+
|
|
233
|
+
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasSettings" aria-labelledby="offcanvasSettingsLabel">
|
|
234
|
+
<div class="offcanvas-header">
|
|
235
|
+
<h5 class="offcanvas-title mt-0" id="offcanvasSettings">Settings</h5>
|
|
236
|
+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="offcanvas-body p-0">
|
|
239
|
+
<a target="_blank" rel="noopener" class="btn btn-menu-item m-0 mb-1 border-start-0 border-end-0"
|
|
240
|
+
href="https://blockchainbird.github.io/spec-up-t-website/docs/user-interface-overview/specification/#explanation-of-the-buttons-in-the-specification">Help</a>
|
|
241
|
+
<button class="button-token-input btn btn-menu-item m-0 mb-1 border-start-0 border-end-0" type="button" aria-label="Enter GitHub Token">
|
|
242
|
+
Enter GitHub Token
|
|
243
|
+
</button>
|
|
244
|
+
<button id="repo_issues" issue-count animate class="btn btn-menu-item m-0 mb-1 border-start-0 border-end-0" type="button"
|
|
245
|
+
data-bs-toggle="offcanvas" data-bs-target="#offcanvasIssues" aria-controls="offcanvasIssues">
|
|
246
|
+
Issues
|
|
247
|
+
</button>
|
|
248
|
+
<!-- href added via JS -->
|
|
249
|
+
<a id="snapshotLink" class="btn btn-menu-item m-0 mb-1 border-start-0 border-end-0" href="#">Snapshots</a>
|
|
250
|
+
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
231
254
|
<div style="display: none;">
|
|
232
255
|
${externalReferences}
|
|
233
256
|
</div>
|