spec-up-t 1.0.92 → 1.1.1
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 +1 -1
- package/src/install-from-boilerplate/add-scripts-keys.js +48 -0
- package/src/install-from-boilerplate/boilerplate/.env.example +2 -0
- package/src/install-from-boilerplate/boilerplate/.github/workflows/fetch-and-push-xrefs.yml +42 -0
- package/src/install-from-boilerplate/boilerplate/.github/workflows/render-specs.yml +47 -0
- package/src/install-from-boilerplate/boilerplate/README.md +3 -0
- package/src/install-from-boilerplate/boilerplate/assets/test.json +5 -0
- package/src/install-from-boilerplate/boilerplate/assets/test.text +1 -0
- package/src/install-from-boilerplate/boilerplate/gitignore +10 -0
- package/src/install-from-boilerplate/boilerplate/help.txt +6 -0
- package/src/install-from-boilerplate/boilerplate/main.sh +103 -0
- package/src/install-from-boilerplate/boilerplate/spec/example-markup-in-markdown.md +388 -0
- package/src/install-from-boilerplate/boilerplate/spec/spec-body.md +3 -0
- package/src/install-from-boilerplate/boilerplate/spec/spec-head.md +7 -0
- package/src/install-from-boilerplate/boilerplate/spec/terms-and-definitions-intro.md +5 -0
- package/src/install-from-boilerplate/boilerplate/spec/terms-definitions/term-1.md +13 -0
- package/src/install-from-boilerplate/boilerplate/spec/terms-definitions/term-2.md +3 -0
- package/src/install-from-boilerplate/boilerplate/spec/terms-definitions/term-3.md +3 -0
- package/src/install-from-boilerplate/boilerplate/spec/terms-definitions/term-4.md +3 -0
- package/src/install-from-boilerplate/boilerplate/specs.json +41 -0
- package/src/install-from-boilerplate/boilerplate/static/favicon.ico +0 -0
- package/src/install-from-boilerplate/boilerplate/static/logo.svg +236 -0
- package/src/install-from-boilerplate/config-scripts-keys.js +16 -0
- package/src/install-from-boilerplate/copy-boilerplate.js +22 -0
- package/src/install-from-boilerplate/install.js +8 -0
- package/src/install-from-boilerplate/postinstall-message.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
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": {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
// Function to add scripts to package.json
|
|
5
|
+
function addScriptsKeys(scriptKeys) {
|
|
6
|
+
// Path to the package.json of the project where this script is run
|
|
7
|
+
const packageJsonPath = path.resolve(__dirname, '../../../../', 'package.json');
|
|
8
|
+
// console.log('KORKOR packageJsonPath: ', packageJsonPath);
|
|
9
|
+
|
|
10
|
+
// Read the package.json file
|
|
11
|
+
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
|
|
12
|
+
if (err) {
|
|
13
|
+
console.error('Error reading package.json:', err);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
// Parse the package.json content
|
|
19
|
+
const packageJson = JSON.parse(data);
|
|
20
|
+
|
|
21
|
+
// Initialize the scripts section if it doesn't exist
|
|
22
|
+
if (!packageJson.scripts) {
|
|
23
|
+
packageJson.scripts = {};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Add new scripts without overwriting existing ones
|
|
27
|
+
for (const [key, value] of Object.entries(scriptKeys)) {
|
|
28
|
+
if (!packageJson.scripts[key]) {
|
|
29
|
+
packageJson.scripts[key] = value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Write the updated package.json back to disk
|
|
34
|
+
fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf8', (err) => {
|
|
35
|
+
if (err) {
|
|
36
|
+
console.error('Error writing package.json:', err);
|
|
37
|
+
} else {
|
|
38
|
+
console.log('Scripts added to package.json successfully!');
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
} catch (parseError) {
|
|
42
|
+
console.error('Error parsing package.json:', parseError);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Export the function
|
|
48
|
+
module.exports = addScriptsKeys;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
name: fetch and push xrefs
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# push:
|
|
6
|
+
# branches:
|
|
7
|
+
# - main
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build-and-deploy-spec:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout 🛎️
|
|
17
|
+
uses: actions/checkout@v3
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
|
|
21
|
+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
|
|
22
|
+
run: |
|
|
23
|
+
echo "start install"
|
|
24
|
+
npm install
|
|
25
|
+
echo "end install"
|
|
26
|
+
echo "Spec-Up-T version:"
|
|
27
|
+
npm list spec-up-t
|
|
28
|
+
echo "start fetching xrefs"
|
|
29
|
+
node -e "require('spec-up-t/src/get-xrefs-data.js').updateXrefs()"
|
|
30
|
+
rm -rf node_modules
|
|
31
|
+
|
|
32
|
+
- name: Commit and Push Changes
|
|
33
|
+
env:
|
|
34
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
35
|
+
run: |
|
|
36
|
+
git config --local user.email "action@github.com"
|
|
37
|
+
git config --local user.name "GitHub Action"
|
|
38
|
+
git add .
|
|
39
|
+
git commit -m "Update Xrefs data via Github Action" || echo "No changes to commit"
|
|
40
|
+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} HEAD:refs/heads/main
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
name: spec-up-t render
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# push:
|
|
6
|
+
# branches:
|
|
7
|
+
# - main
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build-and-deploy-spec:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout 🛎️
|
|
17
|
+
uses: actions/checkout@v2
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
- name: Extract output_path from JSON
|
|
21
|
+
# TODO: .specs[0] is a hack to get the first spec. This should be fixed.
|
|
22
|
+
run: |
|
|
23
|
+
OUTPUT_PATH=$(jq -r '.specs[0].output_path' specs.json)
|
|
24
|
+
echo "OUTPUT_PATH=$OUTPUT_PATH" >> $GITHUB_ENV
|
|
25
|
+
|
|
26
|
+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
|
|
27
|
+
run: |
|
|
28
|
+
echo "start install"
|
|
29
|
+
npm install
|
|
30
|
+
echo "end install"
|
|
31
|
+
echo "Spec-Up-T version:"
|
|
32
|
+
npm list spec-up-t
|
|
33
|
+
echo "start render"
|
|
34
|
+
node -e "require('spec-up-t')({ nowatch: true })"
|
|
35
|
+
echo "end render"
|
|
36
|
+
rm -rf node_modules
|
|
37
|
+
|
|
38
|
+
# This is a GitHub Action to deploy your static files to GitHub Pages
|
|
39
|
+
- name: Deploy
|
|
40
|
+
uses: peaceiris/actions-gh-pages@v3.7.3
|
|
41
|
+
with:
|
|
42
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
43
|
+
publish_dir: ${{ env.OUTPUT_PATH }} # Use the OUTPUT_PATH environment variable
|
|
44
|
+
allow_empty_commit: true
|
|
45
|
+
force_orphan: true
|
|
46
|
+
|
|
47
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Beam me in, Scotty!
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Function to handle the user's choice
|
|
4
|
+
function handle_choice() {
|
|
5
|
+
local options=(
|
|
6
|
+
"Add content" "do_add_content"
|
|
7
|
+
"Render specification" "do_render"
|
|
8
|
+
"Export to PDF" "do_topdf"
|
|
9
|
+
"Collect external references (cache, faster)" "collect_external_references_cache"
|
|
10
|
+
"Collect external references (no cache, slower)" "collect_external_references_no_cache"
|
|
11
|
+
"Add, remove or view xref source" "do_add_remove_xref_source"
|
|
12
|
+
"Configure" "do_configure"
|
|
13
|
+
"Open documentation website" "do_help"
|
|
14
|
+
"Freeze specification" "do_freeze"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
if [[ "$choice" =~ ^[0-8]$ ]]; then
|
|
18
|
+
local index=$((choice * 2))
|
|
19
|
+
echo -e "\n\n ************************************"
|
|
20
|
+
echo " ${options[index]}"
|
|
21
|
+
echo -e " ************************************\n\n"
|
|
22
|
+
show_progress
|
|
23
|
+
${options[index + 1]}
|
|
24
|
+
else
|
|
25
|
+
clear
|
|
26
|
+
echo -e "\n\n ************************************"
|
|
27
|
+
echo " Goodbye! You chose to exit."
|
|
28
|
+
echo -e " ************************************\n\n"
|
|
29
|
+
fi
|
|
30
|
+
echo -e "\n\n\n SPEC-UP-T: Type 'npm run menu' to return to the main menu.\n"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
# Function to display the introduction text
|
|
34
|
+
function display_intro() {
|
|
35
|
+
clear
|
|
36
|
+
cat << EOF
|
|
37
|
+
|
|
38
|
+
,---. . . --.--
|
|
39
|
+
\`---.,---.,---.,---. | |,---. |
|
|
40
|
+
|| ||---'| ---| || |--- |
|
|
41
|
+
\`---'|---'\`---'\`---' \`---'|---' \`
|
|
42
|
+
| |
|
|
43
|
+
|
|
44
|
+
Please choose one of the following options:
|
|
45
|
+
|
|
46
|
+
[0] Add content
|
|
47
|
+
[1] Render specification
|
|
48
|
+
[2] Export to PDF
|
|
49
|
+
[3] Collect external references (cache, faster)
|
|
50
|
+
[4] Collect external references (no cache, slower)
|
|
51
|
+
[5] Add, remove or view xref source
|
|
52
|
+
[6] Configure
|
|
53
|
+
[7] Open documentation website
|
|
54
|
+
[8] Freeze specification
|
|
55
|
+
[Q] Quit
|
|
56
|
+
|
|
57
|
+
An xref is a reference to another repository.
|
|
58
|
+
|
|
59
|
+
EOF
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
# Function to prompt the user for input
|
|
63
|
+
function prompt_input() {
|
|
64
|
+
read -n 1 -r -p " Enter your choice: " choice
|
|
65
|
+
echo -e "\n"
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function do_add_content() {
|
|
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://trustoverip.github.io/spec-up-t-website/docs/various-roles/content-authors-guide/introduction\n\n\n ********************"
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function do_render() { clear; npm run render; }
|
|
74
|
+
function do_topdf() { clear; npm run topdf; }
|
|
75
|
+
function collect_external_references_cache() { clear; npm run collectExternalReferencesCache; }
|
|
76
|
+
function collect_external_references_no_cache() { clear; npm run collectExternalReferencesNoCache; }
|
|
77
|
+
function do_add_remove_xref_source() { clear; npm run addremovexrefsource; }
|
|
78
|
+
function do_configure() { clear; npm run configure; }
|
|
79
|
+
function do_freeze() { clear; npm run freeze; }
|
|
80
|
+
|
|
81
|
+
function do_help() {
|
|
82
|
+
clear
|
|
83
|
+
echo -e "\n\n\n You will be redirected to the documentation website\n\n (https://trustoverip.github.io/spec-up-t-website/)."
|
|
84
|
+
sleep 2
|
|
85
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
86
|
+
open "https://trustoverip.github.io/spec-up-t-website/"
|
|
87
|
+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
88
|
+
xdg-open "https://trustoverip.github.io/spec-up-t-website/"
|
|
89
|
+
elif [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
|
90
|
+
start "https://trustoverip.github.io/spec-up-t-website/"
|
|
91
|
+
else
|
|
92
|
+
echo "Unsupported OS."
|
|
93
|
+
fi
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function show_progress() {
|
|
97
|
+
for i in {1..3}; do printf "."; sleep 0.2; done
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
# Main script
|
|
101
|
+
display_intro
|
|
102
|
+
prompt_input
|
|
103
|
+
handle_choice
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
## Demo of example markup in Spec-Up-T and Markdown
|
|
2
|
+
|
|
3
|
+
### Blockquote
|
|
4
|
+
|
|
5
|
+
> To be, or not to be, that is the question:
|
|
6
|
+
Whether 'tis nobler in the mind to suffer
|
|
7
|
+
The slings and arrows of outrageous fortune,
|
|
8
|
+
Or to take arms against a sea of troubles
|
|
9
|
+
And by opposing end them. To die—to sleep,
|
|
10
|
+
No more;
|
|
11
|
+
|
|
12
|
+
### Notices
|
|
13
|
+
|
|
14
|
+
<pre>
|
|
15
|
+
::: note Basic Note
|
|
16
|
+
Check this out.
|
|
17
|
+
:::
|
|
18
|
+
</pre>
|
|
19
|
+
|
|
20
|
+
::: note Basic Note
|
|
21
|
+
Check this out.
|
|
22
|
+
:::
|
|
23
|
+
|
|
24
|
+
::: note
|
|
25
|
+
Here's another.
|
|
26
|
+
:::
|
|
27
|
+
|
|
28
|
+
::: note
|
|
29
|
+
And one more!
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
::: note Basic Note
|
|
33
|
+
One last note!!!
|
|
34
|
+
:::
|
|
35
|
+
|
|
36
|
+
<pre>
|
|
37
|
+
::: issue Issue Notice
|
|
38
|
+
I take issue with that, kind sir.
|
|
39
|
+
:::
|
|
40
|
+
</pre>
|
|
41
|
+
|
|
42
|
+
::: issue Issue Notice
|
|
43
|
+
I take issue with that, kind sir.
|
|
44
|
+
:::
|
|
45
|
+
|
|
46
|
+
<pre>
|
|
47
|
+
::: warning Warning Notice
|
|
48
|
+
Houston, I think we have a problem
|
|
49
|
+
:::
|
|
50
|
+
</pre>
|
|
51
|
+
|
|
52
|
+
::: warning Warning Notice
|
|
53
|
+
Houston, I think we have a problem
|
|
54
|
+
:::
|
|
55
|
+
|
|
56
|
+
<pre>
|
|
57
|
+
::: todo Really Important
|
|
58
|
+
Get this done!
|
|
59
|
+
:::
|
|
60
|
+
</pre>
|
|
61
|
+
|
|
62
|
+
::: todo Really Important
|
|
63
|
+
Get this done!
|
|
64
|
+
:::
|
|
65
|
+
|
|
66
|
+
<pre>
|
|
67
|
+
::: example Code Example
|
|
68
|
+
Put your code block here
|
|
69
|
+
:::
|
|
70
|
+
</pre>
|
|
71
|
+
|
|
72
|
+
::: example Code Example
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
// Some comment in JSON
|
|
76
|
+
{
|
|
77
|
+
"foo": "bar",
|
|
78
|
+
"baz": 2
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
:::
|
|
83
|
+
|
|
84
|
+
### Content Insertion
|
|
85
|
+
|
|
86
|
+
Use the following format to pull in content from other files in your project:
|
|
87
|
+
|
|
88
|
+
<pre>
|
|
89
|
+
This text has been inserted here from another file: [[insert: assets/test.text]]
|
|
90
|
+
</pre>
|
|
91
|
+
|
|
92
|
+
This text has been inserted here from another file: [[insert: assets/test.text]]
|
|
93
|
+
|
|
94
|
+
You can even insert content within more complex blocks, like the JSON object below which is being pulled in and rendered in a syntax-highlighted example block:
|
|
95
|
+
<pre>
|
|
96
|
+
::: example Code Example
|
|
97
|
+
```json
|
|
98
|
+
[[insert: assets/test.json]]
|
|
99
|
+
```
|
|
100
|
+
:::
|
|
101
|
+
</pre>
|
|
102
|
+
|
|
103
|
+
::: example Code Example
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
[[insert: assets/test.json]]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
:::
|
|
110
|
+
|
|
111
|
+
### Tables
|
|
112
|
+
|
|
113
|
+
<pre>
|
|
114
|
+
| Stage | Direct Products | ATP Yields |
|
|
115
|
+
| -----------------: | --------------: | ---------: |
|
|
116
|
+
| Glycolysis | 2 ATP | |
|
|
117
|
+
| ^^ | 2 NADH | 3--5 ATP |
|
|
118
|
+
| Pyruvaye oxidation | 2 NADH | 5 ATP |
|
|
119
|
+
| Citric acid cycle | 2 ATP | |
|
|
120
|
+
| ^^ | 6 NADH | 15 ATP |
|
|
121
|
+
| ^^ | 2 FADH2 | 3 ATP |
|
|
122
|
+
| **30--32** ATP | | |
|
|
123
|
+
[Net ATP yields per hexose]
|
|
124
|
+
</pre>
|
|
125
|
+
|
|
126
|
+
| Stage | Direct Products | ATP Yields |
|
|
127
|
+
| -----------------: | --------------: | ---------: |
|
|
128
|
+
| Glycolysis | 2 ATP | |
|
|
129
|
+
| ^^ | 2 NADH | 3--5 ATP |
|
|
130
|
+
| Pyruvaye oxidation | 2 NADH | 5 ATP |
|
|
131
|
+
| Citric acid cycle | 2 ATP | |
|
|
132
|
+
| ^^ | 6 NADH | 15 ATP |
|
|
133
|
+
| ^^ | 2 FADH2 | 3 ATP |
|
|
134
|
+
| **30--32** ATP | | |
|
|
135
|
+
[Net ATP yields per hexose]
|
|
136
|
+
|
|
137
|
+
<pre>
|
|
138
|
+
| | | | | | | | |
|
|
139
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
140
|
+
| ♜ | | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
|
|
141
|
+
| | ♟ | ♟ | ♟ | | ♟ | ♟ | ♟ |
|
|
142
|
+
| ♟ | | ♞ | | | | | |
|
|
143
|
+
| | ♗ | | | ♟ | | | |
|
|
144
|
+
| | | | | ♙ | | | |
|
|
145
|
+
| | | | | | ♘ | | |
|
|
146
|
+
| ♙ | ♙ | ♙ | ♙ | | ♙ | ♙ | ♙ |
|
|
147
|
+
| ♖ | ♘ | ♗ | ♕ | ♔ | | | ♖ |
|
|
148
|
+
|
|
149
|
+
</pre>
|
|
150
|
+
|
|
151
|
+
| | | | | | | | |
|
|
152
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
153
|
+
| ♜ | | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
|
|
154
|
+
| | ♟ | ♟ | ♟ | | ♟ | ♟ | ♟ |
|
|
155
|
+
| ♟ | | ♞ | | | | | |
|
|
156
|
+
| | ♗ | | | ♟ | | | |
|
|
157
|
+
| | | | | ♙ | | | |
|
|
158
|
+
| | | | | | ♘ | | |
|
|
159
|
+
| ♙ | ♙ | ♙ | ♙ | | ♙ | ♙ | ♙ |
|
|
160
|
+
| ♖ | ♘ | ♗ | ♕ | ♔ | | | ♖ |
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Sequence Diagrams
|
|
164
|
+
|
|
165
|
+
<pre>
|
|
166
|
+
```mermaid
|
|
167
|
+
sequenceDiagram
|
|
168
|
+
Alice ->> Bob: Hello Bob, how are you?
|
|
169
|
+
Bob-->>John: How about you John?
|
|
170
|
+
Bob--x Alice: I am good thanks!
|
|
171
|
+
Bob-x John: I am good thanks!
|
|
172
|
+
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
|
|
173
|
+
|
|
174
|
+
Bob-->Alice: Checking with John...
|
|
175
|
+
Alice->John: Yes... John, how are you?
|
|
176
|
+
```
|
|
177
|
+
</pre>
|
|
178
|
+
|
|
179
|
+
```mermaid
|
|
180
|
+
sequenceDiagram
|
|
181
|
+
Alice ->> Bob: Hello Bob, how are you?
|
|
182
|
+
Bob-->>John: How about you John?
|
|
183
|
+
Bob--x Alice: I am good thanks!
|
|
184
|
+
Bob-x John: I am good thanks!
|
|
185
|
+
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
|
|
186
|
+
|
|
187
|
+
Bob-->Alice: Checking with John...
|
|
188
|
+
Alice->John: Yes... John, how are you?
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Flows
|
|
192
|
+
|
|
193
|
+
<pre>
|
|
194
|
+
```mermaid
|
|
195
|
+
graph TD
|
|
196
|
+
A[Start] --> B{Is it?}
|
|
197
|
+
B -->|Yes| C[OK]
|
|
198
|
+
C --> D[Rethink]
|
|
199
|
+
D --> B
|
|
200
|
+
B -->|No| E[End]
|
|
201
|
+
```
|
|
202
|
+
</pre>
|
|
203
|
+
|
|
204
|
+
```mermaid
|
|
205
|
+
graph TD
|
|
206
|
+
A[Start] --> B{Is it?}
|
|
207
|
+
B -->|Yes| C[OK]
|
|
208
|
+
C --> D[Rethink]
|
|
209
|
+
D --> B
|
|
210
|
+
B -->|No| E[End]
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Charts
|
|
214
|
+
|
|
215
|
+
<pre>
|
|
216
|
+
```js
|
|
217
|
+
{
|
|
218
|
+
"type": "pie",
|
|
219
|
+
"data": {
|
|
220
|
+
"labels": [
|
|
221
|
+
"Red",
|
|
222
|
+
"Blue",
|
|
223
|
+
"Yellow"
|
|
224
|
+
],
|
|
225
|
+
"datasets": [
|
|
226
|
+
{
|
|
227
|
+
"data": [
|
|
228
|
+
300,
|
|
229
|
+
50,
|
|
230
|
+
100
|
|
231
|
+
],
|
|
232
|
+
"backgroundColor": [
|
|
233
|
+
"#FF6384",
|
|
234
|
+
"#36A2EB",
|
|
235
|
+
"#FFCE56"
|
|
236
|
+
],
|
|
237
|
+
"hoverBackgroundColor": [
|
|
238
|
+
"#FF6384",
|
|
239
|
+
"#36A2EB",
|
|
240
|
+
"#FFCE56"
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
</pre>
|
|
248
|
+
|
|
249
|
+
```js
|
|
250
|
+
{
|
|
251
|
+
"type": "pie",
|
|
252
|
+
"data": {
|
|
253
|
+
"labels": [
|
|
254
|
+
"Red",
|
|
255
|
+
"Blue",
|
|
256
|
+
"Yellow"
|
|
257
|
+
],
|
|
258
|
+
"datasets": [
|
|
259
|
+
{
|
|
260
|
+
"data": [
|
|
261
|
+
300,
|
|
262
|
+
50,
|
|
263
|
+
100
|
|
264
|
+
],
|
|
265
|
+
"backgroundColor": [
|
|
266
|
+
"#FF6384",
|
|
267
|
+
"#36A2EB",
|
|
268
|
+
"#FFCE56"
|
|
269
|
+
],
|
|
270
|
+
"hoverBackgroundColor": [
|
|
271
|
+
"#FF6384",
|
|
272
|
+
"#36A2EB",
|
|
273
|
+
"#FFCE56"
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Syntax Highlighting
|
|
282
|
+
|
|
283
|
+
<pre>
|
|
284
|
+
```json
|
|
285
|
+
{
|
|
286
|
+
"@context": "https://www.w3.org/ns/did/v1",
|
|
287
|
+
"id": "did:example:123456789abcdefghi",
|
|
288
|
+
"authentication": [{
|
|
289
|
+
"id": "did:example:123456789abcdefghi#keys-1",
|
|
290
|
+
"type": "RsaVerificationKey2018",
|
|
291
|
+
"controller": "did:example:123456789abcdefghi",
|
|
292
|
+
"publicKeyPem": "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
|
293
|
+
}],
|
|
294
|
+
"service": [{
|
|
295
|
+
"id":"did:example:123456789abcdefghi#vcs",
|
|
296
|
+
"type": "VerifiableCredentialService",
|
|
297
|
+
"serviceEndpoint": "https://example.com/vc/"
|
|
298
|
+
}]
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
</pre>
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{
|
|
305
|
+
"@context": "https://www.w3.org/ns/did/v1",
|
|
306
|
+
"id": "did:example:123456789abcdefghi",
|
|
307
|
+
"authentication": [{
|
|
308
|
+
"id": "did:example:123456789abcdefghi#keys-1",
|
|
309
|
+
"type": "RsaVerificationKey2018",
|
|
310
|
+
"controller": "did:example:123456789abcdefghi",
|
|
311
|
+
"publicKeyPem": "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
|
312
|
+
}],
|
|
313
|
+
"service": [{
|
|
314
|
+
"id":"did:example:123456789abcdefghi#vcs",
|
|
315
|
+
"type": "VerifiableCredentialService",
|
|
316
|
+
"serviceEndpoint": "https://example.com/vc/"
|
|
317
|
+
}]
|
|
318
|
+
}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### TeX Math Equations
|
|
322
|
+
|
|
323
|
+
When the `katex` option is enabled, the KaTeX math engine is used for TeX rendering. You can find a list of supported features and examples here: <https://katex.org/docs/supported.html>.
|
|
324
|
+
|
|
325
|
+
$$\begin{pmatrix}x_2 \\ y_2 \end{pmatrix} =
|
|
326
|
+
\begin{pmatrix} A & B \\ C & D \end{pmatrix}\cdot
|
|
327
|
+
\begin{pmatrix} x_1 \\ y_1 \end{pmatrix}$$
|
|
328
|
+
|
|
329
|
+
$$\def\arraystretch{1.5}
|
|
330
|
+
\begin{array}{c:c:c}
|
|
331
|
+
a & b & c \\ \hline
|
|
332
|
+
d & e & f \\
|
|
333
|
+
\hdashline
|
|
334
|
+
g & h & i
|
|
335
|
+
\end{array}$$
|
|
336
|
+
|
|
337
|
+
$$
|
|
338
|
+
\underbrace{a+b+c}_{\text{Note: such math, much wow.}}
|
|
339
|
+
$$
|
|
340
|
+
|
|
341
|
+
### Tab Panels
|
|
342
|
+
|
|
343
|
+
<tab-panels selected-index="0">
|
|
344
|
+
<nav>
|
|
345
|
+
<button type="button">First Tab</button>
|
|
346
|
+
<button type="button">Second Tab</button>
|
|
347
|
+
</nav>
|
|
348
|
+
|
|
349
|
+
<section>
|
|
350
|
+
|
|
351
|
+
```json
|
|
352
|
+
{
|
|
353
|
+
"foo": "foo",
|
|
354
|
+
"baz": 1
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
</section>
|
|
359
|
+
<section>
|
|
360
|
+
|
|
361
|
+
```json
|
|
362
|
+
{
|
|
363
|
+
"foo": "bar",
|
|
364
|
+
"baz": 2
|
|
365
|
+
}
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
</section>
|
|
369
|
+
</tab-panels>
|
|
370
|
+
|
|
371
|
+
### Fancy Links
|
|
372
|
+
|
|
373
|
+
Spec-Up automatically upgrades the links of certain sites, like GitHub. GitHub is the only supported site with Fancy Links right now, but we'll be adding more as we go.
|
|
374
|
+
|
|
375
|
+
### GitHub
|
|
376
|
+
|
|
377
|
+
- **Issues**
|
|
378
|
+
- Source: `https://github.com/decentralized-identity/presentation-exchange/issues/119`
|
|
379
|
+
- Render: https://github.com/decentralized-identity/presentation-exchange/issues/119
|
|
380
|
+
- **Pull Requests**
|
|
381
|
+
- Source: `https://github.com/decentralized-identity/sidetree/pull/863`
|
|
382
|
+
- Render: https://github.com/decentralized-identity/sidetree/pull/863
|
|
383
|
+
- **Releases**
|
|
384
|
+
- Source: `https://github.com/decentralized-identity/sidetree/releases/tag/v0.9.1`
|
|
385
|
+
- Render: https://github.com/decentralized-identity/sidetree/releases/tag/v0.9.1
|
|
386
|
+
- **Projects**
|
|
387
|
+
- Source: `https://github.com/decentralized-identity/sidetree/projects/1`
|
|
388
|
+
- Render: https://github.com/decentralized-identity/sidetree/projects/1
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
## Outro
|
|
2
|
+
|
|
3
|
+
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Spec-Up-T Demo
|
|
2
|
+
|
|
3
|
+
## Intro
|
|
4
|
+
|
|
5
|
+
This is a default Spec-Up-T installation. Find information on the [Spec-Up-T documentation website](https://trustoverip.github.io/spec-up-t-website/).
|
|
6
|
+
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[[def: term 1, term one, Term One]]
|
|
2
|
+
|
|
3
|
+
~ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum faucibus volutpat justo, sed ornare velit.
|
|
4
|
+
|
|
5
|
+
~ Refs examples: [[ref: Term 2]], [[ref: Term Two]], [[ref: Term 3]].
|
|
6
|
+
|
|
7
|
+
~ Xref example: [[xref: test-1, Aal]]
|
|
8
|
+
|
|
9
|
+
~ This Xref example does not work: [[xref: does-not-exist, Foo]]
|
|
10
|
+
|
|
11
|
+
~ Donec aliquam et ligula id congue. Sed eu urna et tellus placerat viverra. Quisque ut posuere magna, nec accumsan augue. Nullam mauris tortor, semper finibus elementum maximus, imperdiet in felis. Suspendisse quis imperdiet nibh, eget ultrices justo. Pellentesque vitae malesuada justo. Vestibulum quis scelerisque lectus, non rutrum odio. Aenean leo orci, semper non massa sed, facilisis ornare ipsum. Morbi at sem orci. Integer eros mi, faucibus sed lorem id, pharetra imperdiet nisl. Integer viverra enim vel luctus lobortis. Ut turpis tellus, consequat nec lectus et, dictum elementum nunc. Integer rhoncus venenatis molestie. Donec egestas condimentum ligula in porttitor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
|
|
12
|
+
|
|
13
|
+
~ Extra text for testing purposes.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
[[def: term 2, term two, Term Two]]
|
|
2
|
+
|
|
3
|
+
~ Pellentesque suscipit ipsum varius, mattis diam in, elementum nunc [[ref: Term 1]], [[ref: Term Three]], [[ref: Term 3]], [[ref: Term 4]]. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec placerat, elit sed tempor viverra, magna ligula porttitor tortor, eget suscipit erat enim vel nisl. Integer vel urna in quam viverra dignissim at in orci. Aliquam erat volutpat. Nam vitae neque nibh. In sollicitudin felis vitae ex finibus, in eleifend lectus efficitur. Vestibulum enim ex, condimentum nec accumsan ut, vestibulum at lacus. Maecenas non vulputate ante. Sed porttitor et eros sit amet venenatis.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
[[def: term 3, term three, Term Three]]
|
|
2
|
+
|
|
3
|
+
~ Nam euismod augue sed tempus imperdiet. Pellentesque ac porta ipsum, sed sodales leo. Suspendisse molestie est sit amet est porta, sit amet molestie dolor pharetra. Duis porta mollis sem vel aliquam. Maecenas laoreet turpis nunc, vitae mattis urna auctor ac. Donec mattis quis urna nec porta. Sed sit amet viverra ligula. Vivamus vitae sem sodales, malesuada dui sit amet, viverra lectus. Integer ullamcorper molestie ante, in blandit nunc tempus auctor.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
[[def: term 4, term four, Term Four]]
|
|
2
|
+
|
|
3
|
+
~ Sed lorem nunc, ultricies nec nibh eu, bibendum sollicitudin arcu. Nullam porttitor condimentum elit ac commodo. Aenean ac augue quis arcu congue aliquam vitae in massa. Aliquam erat volutpat. Curabitur lobortis, sapien vitae mattis dignissim, risus augue iaculis risus, sed tempus sapien ex nec massa. Integer quis maximus nunc. Nunc ultrices sapien erat, at congue augue mattis sit amet. Aliquam condimentum luctus nunc, ut euismod augue commodo in.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specs": [
|
|
3
|
+
{
|
|
4
|
+
"title": "Spec-Up-T Starterpack",
|
|
5
|
+
"description": "Create technical specifications in markdown. Based on the original Spec-Up, extended with Terminology tooling",
|
|
6
|
+
"author": "Trust over IP Foundation",
|
|
7
|
+
"spec_directory": "./spec",
|
|
8
|
+
"spec_terms_directory": "terms-definitions",
|
|
9
|
+
"output_path": "./docs",
|
|
10
|
+
"markdown_paths": [
|
|
11
|
+
"spec-head.md",
|
|
12
|
+
"terms-and-definitions-intro.md",
|
|
13
|
+
"example-markup-in-markdown.md",
|
|
14
|
+
"spec-body.md"
|
|
15
|
+
],
|
|
16
|
+
"logo": "https://raw.githubusercontent.com/trustoverip/spec-up-t-starter-pack/main/spec-up-t-boilerplate/static/logo.svg",
|
|
17
|
+
"logo_link": "https://github.com/trustoverip/spec-up-t",
|
|
18
|
+
"favicon": "https://raw.githubusercontent.com/trustoverip/spec-up-t-starter-pack/main/spec-up-t-boilerplate/static/favicon.ico",
|
|
19
|
+
"source": {
|
|
20
|
+
"host": "github",
|
|
21
|
+
"account": "trustoverip",
|
|
22
|
+
"repo": "spec-up-t-starter-pack"
|
|
23
|
+
},
|
|
24
|
+
"external_specs": [
|
|
25
|
+
{
|
|
26
|
+
"external_spec": "test-1",
|
|
27
|
+
"gh_page": "https://blockchainbird.github.io/spec-up-xref-test-1/",
|
|
28
|
+
"url": "https://github.com/blockchainbird/spec-up-xref-test-1",
|
|
29
|
+
"terms_dir": "spec/term-definitions"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"external_spec": "test-2",
|
|
33
|
+
"gh_page": "https://blockchainbird.github.io/spec-up-xref-test-2/",
|
|
34
|
+
"url": "https://github.com/blockchainbird/spec-up-xref-test-2",
|
|
35
|
+
"terms_dir": "spec/term-definitions"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"katex": false
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" id="svg3368" width="242.589" height="108.4" version="1.1">
|
|
2
|
+
<g id="g3355">
|
|
3
|
+
<style id="style2" type="text/css">
|
|
4
|
+
.st1 {
|
|
5
|
+
fill: #a9dde0
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.st2 {
|
|
9
|
+
fill: #2589ca
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.st3 {
|
|
13
|
+
fill: #3653a4
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<g id="g187">
|
|
17
|
+
<radialGradient id="SVGID_1_" cx="-885.783" cy="352.247" r="3.374"
|
|
18
|
+
gradientTransform="translate(14279.635 -5602.752) scale(16.0596)" gradientUnits="userSpaceOnUse">
|
|
19
|
+
<stop id="stop12" offset="0" style="stop-color:#01579b" />
|
|
20
|
+
<stop id="stop14" offset="1" style="stop-color:#03a9f4" />
|
|
21
|
+
</radialGradient>
|
|
22
|
+
<path id="path17"
|
|
23
|
+
d="M54.5 64.4c-5.7 0-10.4-4.6-10.4-10.3 0-5.7 4.6-10.4 10.3-10.4 5.7 0 10.4 4.6 10.4 10.3 0 2.8-1.1 5.4-3 7.4s-4.5 3-7.3 3z"
|
|
24
|
+
style="fill:url(#SVGID_1_)" />
|
|
25
|
+
<radialGradient id="SVGID_2_" cx="-879.674" cy="358.976" r="3.72"
|
|
26
|
+
gradientTransform="matrix(14.5677 0 0 14.5676 12869.116 -5175.213)" gradientUnits="userSpaceOnUse">
|
|
27
|
+
<stop id="stop19" offset="0" style="stop-color:#01579b" />
|
|
28
|
+
<stop id="stop21" offset="1" style="stop-color:#03a9f4" />
|
|
29
|
+
</radialGradient>
|
|
30
|
+
<path id="path24"
|
|
31
|
+
d="M54.5 87.6c-3.8 0-7.2-2.3-8.7-5.8-1.5-3.5-.7-7.5 2-10.2 2.7-2.7 6.8-3.5 10.3-2 3.5 1.5 5.8 4.9 5.8 8.7 0 5.1-4.2 9.3-9.4 9.3z"
|
|
32
|
+
style="fill:url(#SVGID_2_)" />
|
|
33
|
+
<radialGradient id="SVGID_3_" cx="-877.914" cy="360.871" r="3.746"
|
|
34
|
+
gradientTransform="translate(12754.668 -5166.342) scale(14.4665)" gradientUnits="userSpaceOnUse">
|
|
35
|
+
<stop id="stop26" offset="0" style="stop-color:#01579b" />
|
|
36
|
+
<stop id="stop28" offset="1" style="stop-color:#03a9f4" />
|
|
37
|
+
</radialGradient>
|
|
38
|
+
<path id="path31"
|
|
39
|
+
d="M20.9 53.9c0-3.8 2.3-7.1 5.8-8.6s7.5-.6 10.2 2.1c2.7 2.7 3.4 6.7 1.9 10.2-1.5 3.5-4.9 5.7-8.7 5.7-2.5 0-4.9-1-6.6-2.8-1.7-1.7-2.7-4.1-2.6-6.6z"
|
|
40
|
+
style="fill:url(#SVGID_3_)" />
|
|
41
|
+
<radialGradient id="SVGID_4_" cx="-879.111" cy="362.735" r="3.826"
|
|
42
|
+
gradientTransform="translate(12504.983 -5083.149) scale(14.1628)" gradientUnits="userSpaceOnUse">
|
|
43
|
+
<stop id="stop33" offset="0" style="stop-color:#01579b" />
|
|
44
|
+
<stop id="stop35" offset="1" style="stop-color:#03a9f4" />
|
|
45
|
+
</radialGradient>
|
|
46
|
+
<path id="path38"
|
|
47
|
+
d="M87.7 54c0 5-4.1 9.1-9.2 9.1S69.4 59 69.4 54s4.1-9.1 9.2-9.1c2.4 0 4.8 1 6.5 2.7 1.7 1.7 2.7 4 2.6 6.4z"
|
|
48
|
+
style="fill:url(#SVGID_4_)" />
|
|
49
|
+
<radialGradient id="SVGID_5_" cx="-877.437" cy="364.531" r="3.847"
|
|
50
|
+
gradientTransform="matrix(14.0876 0 0 14.0877 12415.329 -5081.21)" gradientUnits="userSpaceOnUse">
|
|
51
|
+
<stop id="stop40" offset="0" style="stop-color:#01579b" />
|
|
52
|
+
<stop id="stop42" offset="1" style="stop-color:#03a9f4" />
|
|
53
|
+
</radialGradient>
|
|
54
|
+
<path id="path45"
|
|
55
|
+
d="M54.4 39.1c-5-.1-9-4.2-9-9.2.1-5 4.2-9 9.2-8.9 5 .1 9 4.2 9 9.2 0 2.4-1 4.7-2.7 6.4-1.7 1.6-4.1 2.5-6.5 2.5z"
|
|
56
|
+
style="fill:url(#SVGID_5_)" />
|
|
57
|
+
<radialGradient id="SVGID_6_" cx="-872.009" cy="367.059" r="4.074"
|
|
58
|
+
gradientTransform="translate(11654.73 -4828.824) scale(13.3031)" gradientUnits="userSpaceOnUse">
|
|
59
|
+
<stop id="stop47" offset="0" style="stop-color:#01579b" />
|
|
60
|
+
<stop id="stop49" offset="1" style="stop-color:#03a9f4" />
|
|
61
|
+
</radialGradient>
|
|
62
|
+
<path id="path52"
|
|
63
|
+
d="M30.2 86.8c-3.5 0-6.6-2.1-7.9-5.3-1.3-3.2-.6-6.9 1.9-9.3 2.5-2.4 6.2-3.2 9.4-1.8 3.2 1.3 5.3 4.5 5.3 7.9-.1 4.7-4 8.5-8.7 8.5z"
|
|
64
|
+
style="fill:url(#SVGID_6_)" />
|
|
65
|
+
<radialGradient id="SVGID_7_" cx="-873.457" cy="368.865" r="4.153"
|
|
66
|
+
gradientTransform="translate(11452.818 -4759.468) scale(13.0499)" gradientUnits="userSpaceOnUse">
|
|
67
|
+
<stop id="stop54" offset="0" style="stop-color:#01579b" />
|
|
68
|
+
<stop id="stop56" offset="1" style="stop-color:#03a9f4" />
|
|
69
|
+
</radialGradient>
|
|
70
|
+
<path id="path59"
|
|
71
|
+
d="M78.7 69.8c4.7 0 8.4 3.8 8.4 8.5 0 4.6-3.8 8.4-8.5 8.3-4.7 0-8.4-3.8-8.4-8.5.1-4.6 3.8-8.3 8.5-8.3z"
|
|
72
|
+
style="fill:url(#SVGID_7_)" />
|
|
73
|
+
<radialGradient id="SVGID_8_" cx="-870.149" cy="372.307" r="4.177"
|
|
74
|
+
gradientTransform="translate(11343.728 -4776.147) scale(12.9741)" gradientUnits="userSpaceOnUse">
|
|
75
|
+
<stop id="stop61" offset="0" style="stop-color:#01579b" />
|
|
76
|
+
<stop id="stop63" offset="1" style="stop-color:#03a9f4" />
|
|
77
|
+
</radialGradient>
|
|
78
|
+
<path id="path66"
|
|
79
|
+
d="M30.2 38.3c-4.6 0-8.4-3.8-8.4-8.4 0-4.6 3.8-8.3 8.4-8.3 4.6 0 8.4 3.8 8.4 8.4 0 4.6-3.8 8.3-8.4 8.3z"
|
|
80
|
+
style="fill:url(#SVGID_8_)" />
|
|
81
|
+
<radialGradient id="SVGID_9_" cx="-871.154" cy="374.866" r="4.285"
|
|
82
|
+
gradientTransform="translate(11070.364 -4686.093) scale(12.6453)" gradientUnits="userSpaceOnUse">
|
|
83
|
+
<stop id="stop68" offset="0" style="stop-color:#01579b" />
|
|
84
|
+
<stop id="stop70" offset="1" style="stop-color:#03a9f4" />
|
|
85
|
+
</radialGradient>
|
|
86
|
+
<path id="path73"
|
|
87
|
+
d="M86.8 30c0 4.5-3.7 8.1-8.2 8.1-4.5 0-8.2-3.6-8.2-8.1s3.7-8.1 8.2-8.1c4.5 0 8.1 3.6 8.2 8.1z"
|
|
88
|
+
style="fill:url(#SVGID_9_)" />
|
|
89
|
+
<radialGradient id="SVGID_10_" cx="-857.346" cy="386.195" r="4.983"
|
|
90
|
+
gradientTransform="translate(9377.96 -4145.677) scale(10.875)" gradientUnits="userSpaceOnUse">
|
|
91
|
+
<stop id="stop75" offset="0" style="stop-color:#01579b" />
|
|
92
|
+
<stop id="stop77" offset="1" style="stop-color:#03a9f4" />
|
|
93
|
+
</radialGradient>
|
|
94
|
+
<path id="path80"
|
|
95
|
+
d="M54.5 108.4c-3.9 0-7-3.1-7.1-6.9 0-3.9 3.1-7 7-7.1 3.9 0 7 3.1 7.1 6.9 0 1.9-.7 3.7-2 5-1.3 1.3-3.1 2.1-5 2.1z"
|
|
96
|
+
style="fill:url(#SVGID_10_)" />
|
|
97
|
+
<radialGradient id="SVGID_11_" cx="-853.967" cy="389.578" r="4.983"
|
|
98
|
+
gradientTransform="translate(9341.21 -4182.464) scale(10.875)" gradientUnits="userSpaceOnUse">
|
|
99
|
+
<stop id="stop82" offset="0" style="stop-color:#01579b" />
|
|
100
|
+
<stop id="stop84" offset="1" style="stop-color:#03a9f4" />
|
|
101
|
+
</radialGradient>
|
|
102
|
+
<path id="path87" d="M7 61c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z" style="fill:url(#SVGID_11_)" />
|
|
103
|
+
<radialGradient id="SVGID_12_" cx="-852.267" cy="399.827" r="5.264"
|
|
104
|
+
gradientTransform="translate(8817.304 -4056.828) scale(10.282)" gradientUnits="userSpaceOnUse">
|
|
105
|
+
<stop id="stop89" offset="0" style="stop-color:#01579b" />
|
|
106
|
+
<stop id="stop91" offset="1" style="stop-color:#03a9f4" />
|
|
107
|
+
</radialGradient>
|
|
108
|
+
<path id="path94"
|
|
109
|
+
d="M54.5 0c1.8 0 3.5.6 4.8 1.9 1.3 1.2 2 3 1.9 4.7 0 2.4-1.3 4.6-3.3 5.7-2.1 1.2-4.6 1.2-6.6 0S47.9 9 47.9 6.6c0-1.8.7-3.5 1.9-4.7C51 .7 52.7 0 54.5 0Z"
|
|
110
|
+
style="fill:url(#SVGID_12_)" />
|
|
111
|
+
<radialGradient id="SVGID_13_" cx="-855.95" cy="396.104" r="5.264"
|
|
112
|
+
gradientTransform="translate(8865.556 -4023.343) scale(10.2941)" gradientUnits="userSpaceOnUse">
|
|
113
|
+
<stop id="stop96" offset="0" style="stop-color:#01579b" />
|
|
114
|
+
<stop id="stop98" offset="1" style="stop-color:#03a9f4" />
|
|
115
|
+
</radialGradient>
|
|
116
|
+
<path id="path101"
|
|
117
|
+
d="M102 47.4c3.7 0 6.6 3 6.6 6.6 0 3.7-3 6.6-6.6 6.6-3.6 0-6.6-3-6.6-6.6 0-1.8.7-3.5 1.9-4.7 1.3-1.3 3-2 4.7-1.9z"
|
|
118
|
+
style="fill:url(#SVGID_13_)" />
|
|
119
|
+
<radialGradient id="SVGID_14_" cx="-847.164" cy="396.76" r="5.452"
|
|
120
|
+
gradientTransform="translate(8474.734 -3889.398) scale(9.9395)" gradientUnits="userSpaceOnUse">
|
|
121
|
+
<stop id="stop103" offset="0" style="stop-color:#01579b" />
|
|
122
|
+
<stop id="stop105" offset="1" style="stop-color:#03a9f4" />
|
|
123
|
+
</radialGradient>
|
|
124
|
+
<path id="path108"
|
|
125
|
+
d="M30.2 95c2.6 0 4.9 1.6 5.9 4s.4 5.2-1.4 7c-1.8 1.8-4.6 2.4-7 1.4-2.4-1-4-3.3-3.9-5.9 0-1.7.7-3.3 1.9-4.5 1.2-1.2 2.8-2 4.5-2z"
|
|
126
|
+
style="fill:url(#SVGID_14_)" />
|
|
127
|
+
<radialGradient id="SVGID_15_" cx="-844.841" cy="399.227" r="5.48"
|
|
128
|
+
gradientTransform="translate(8408.668 -3893.643) scale(9.8887)" gradientUnits="userSpaceOnUse">
|
|
129
|
+
<stop id="stop110" offset="0" style="stop-color:#01579b" />
|
|
130
|
+
<stop id="stop112" offset="1" style="stop-color:#03a9f4" />
|
|
131
|
+
</radialGradient>
|
|
132
|
+
<path id="path115"
|
|
133
|
+
d="M6.9 84.4C3.4 84.4.5 81.5.5 78c0-3.5 2.9-6.4 6.4-6.3 3.5.1 6.4 2.9 6.4 6.4 0 1.7-.7 3.3-1.9 4.5-1.1 1.1-2.8 1.8-4.5 1.8z"
|
|
134
|
+
style="fill:url(#SVGID_15_)" />
|
|
135
|
+
<radialGradient id="SVGID_16_" cx="-848.468" cy="399.968" r="5.595"
|
|
136
|
+
gradientTransform="translate(8272.994 -3820.1) scale(9.6865)" gradientUnits="userSpaceOnUse">
|
|
137
|
+
<stop id="stop117" offset="0" style="stop-color:#01579b" />
|
|
138
|
+
<stop id="stop119" offset="1" style="stop-color:#03a9f4" />
|
|
139
|
+
</radialGradient>
|
|
140
|
+
<path id="path122"
|
|
141
|
+
d="M78.6 107.6c-3.4 0-6.2-2.8-6.2-6.3s2.8-6.2 6.3-6.2c3.4 0 6.2 2.8 6.2 6.3 0 1.7-.7 3.3-1.9 4.4-1.1 1.2-2.8 1.8-4.4 1.8z"
|
|
142
|
+
style="fill:url(#SVGID_16_)" />
|
|
143
|
+
<radialGradient id="SVGID_17_" cx="-842.011" cy="406.734" r="5.498"
|
|
144
|
+
gradientTransform="translate(8146.474 -3854.719) scale(9.6105)" gradientUnits="userSpaceOnUse">
|
|
145
|
+
<stop id="stop124" offset="0" style="stop-color:#01579b" />
|
|
146
|
+
<stop id="stop126" offset="1" style="stop-color:#03a9f4" />
|
|
147
|
+
</radialGradient>
|
|
148
|
+
<path id="path129"
|
|
149
|
+
d="M13.2 30c0 1.6-.6 3.2-1.8 4.4-1.2 1.2-2.8 1.8-4.4 1.8-2.3.1-4.5-1-5.6-3-1.1-2-1.2-4.4 0-6.4s3.3-3.1 5.6-3c1.7 0 3.2.6 4.4 1.8 1.1 1.2 1.8 2.8 1.8 4.4z"
|
|
150
|
+
style="fill:url(#SVGID_17_)" />
|
|
151
|
+
<radialGradient id="SVGID_18_" cx="-839.577" cy="414.251" r="5.815"
|
|
152
|
+
gradientTransform="translate(7799.596 -3767.348) scale(9.2252)" gradientUnits="userSpaceOnUse">
|
|
153
|
+
<stop id="stop131" offset="0" style="stop-color:#01579b" />
|
|
154
|
+
<stop id="stop133" offset="1" style="stop-color:#03a9f4" />
|
|
155
|
+
</radialGradient>
|
|
156
|
+
<path id="path136" d="M30.2.6c1.6 0 3.1.6 4.2 1.7s1.8 2.6 1.8 4.2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-5.9 6-5.9z"
|
|
157
|
+
style="fill:url(#SVGID_18_)" />
|
|
158
|
+
<radialGradient id="SVGID_19_" cx="-846.461" cy="407.039" r="5.822"
|
|
159
|
+
gradientTransform="translate(7932.355 -3734.11) scale(9.307)" gradientUnits="userSpaceOnUse">
|
|
160
|
+
<stop id="stop138" offset="0" style="stop-color:#01579b" />
|
|
161
|
+
<stop id="stop140" offset="1" style="stop-color:#03a9f4" />
|
|
162
|
+
</radialGradient>
|
|
163
|
+
<path id="path143"
|
|
164
|
+
d="M102.1 84.2c-3.3 0-6-2.7-6-6s2.6-6 6-6 6 2.6 6.1 5.9c0 1.6-.6 3.1-1.7 4.3-1.3 1.2-2.8 1.8-4.4 1.8z"
|
|
165
|
+
style="fill:url(#SVGID_19_)" />
|
|
166
|
+
<radialGradient id="SVGID_20_" cx="-843.42" cy="415.274" r="6.002"
|
|
167
|
+
gradientTransform="translate(7670.064 -3695.568) scale(9.0296)" gradientUnits="userSpaceOnUse">
|
|
168
|
+
<stop id="stop145" offset="0" style="stop-color:#01579b" />
|
|
169
|
+
<stop id="stop147" offset="1" style="stop-color:#03a9f4" />
|
|
170
|
+
</radialGradient>
|
|
171
|
+
<path id="path150"
|
|
172
|
+
d="M101.9 35.8c-2.4-.1-4.5-1.5-5.3-3.7-.8-2.2-.3-4.7 1.4-6.3 1.7-1.6 4.2-2 6.4-1.1 2.2 1 3.5 3.1 3.4 5.5 0 1.5-.7 3-1.8 4-1.1 1.1-2.6 1.7-4.1 1.6z"
|
|
173
|
+
style="fill:url(#SVGID_20_)" />
|
|
174
|
+
<radialGradient id="SVGID_21_" cx="-841.546" cy="417.095" r="5.994"
|
|
175
|
+
gradientTransform="translate(7663.091 -3716.93) scale(9.0414)" gradientUnits="userSpaceOnUse">
|
|
176
|
+
<stop id="stop152" offset="0" style="stop-color:#01579b" />
|
|
177
|
+
<stop id="stop154" offset="1" style="stop-color:#03a9f4" />
|
|
178
|
+
</radialGradient>
|
|
179
|
+
<path id="path157"
|
|
180
|
+
d="M84.4 6.7c0 3.2-2.6 5.8-5.8 5.8-3.2 0-5.8-2.6-5.8-5.8 0-3.2 2.6-5.8 5.8-5.8 3.2 0 5.8 2.5 5.8 5.8z"
|
|
181
|
+
style="fill:url(#SVGID_21_)" />
|
|
182
|
+
<radialGradient id="SVGID_22_" cx="-797.586" cy="455.396" r="8.056"
|
|
183
|
+
gradientTransform="translate(5420.165 -3009.524) scale(6.7276)" gradientUnits="userSpaceOnUse">
|
|
184
|
+
<stop id="stop159" offset="0" style="stop-color:#01579b" />
|
|
185
|
+
<stop id="stop161" offset="1" style="stop-color:#03a9f4" />
|
|
186
|
+
</radialGradient>
|
|
187
|
+
<path id="path164"
|
|
188
|
+
d="M11.4 101.4c0 2.4-1.9 4.3-4.3 4.3s-4.4-1.9-4.4-4.3S4.6 97.1 7 97c1.2 0 2.3.4 3.1 1.2.8.8 1.3 2 1.3 3.2z"
|
|
189
|
+
style="fill:url(#SVGID_22_)" />
|
|
190
|
+
<radialGradient id="SVGID_23_" cx="-796.17" cy="471.761" r="8.782"
|
|
191
|
+
gradientTransform="translate(4967.579 -2857.087) scale(6.1711)" gradientUnits="userSpaceOnUse">
|
|
192
|
+
<stop id="stop166" offset="0" style="stop-color:#01579b" />
|
|
193
|
+
<stop id="stop168" offset="1" style="stop-color:#03a9f4" />
|
|
194
|
+
</radialGradient>
|
|
195
|
+
<path id="path171"
|
|
196
|
+
d="M106 101.4c0 1.6-1 3.1-2.4 3.7-1.5.6-3.2.3-4.3-.9-1.1-1.1-1.5-2.8-.9-4.3s2.1-2.5 3.7-2.5c1.1 0 2.1.4 2.8 1.1.7.8 1.1 1.8 1.1 2.9z"
|
|
197
|
+
style="fill:url(#SVGID_23_)" />
|
|
198
|
+
<radialGradient id="SVGID_24_" cx="-780.865" cy="488.079" r="8.966"
|
|
199
|
+
gradientTransform="translate(4774.133 -2895.903) scale(6.0443)" gradientUnits="userSpaceOnUse">
|
|
200
|
+
<stop id="stop173" offset="0" style="stop-color:#01579b" />
|
|
201
|
+
<stop id="stop175" offset="1" style="stop-color:#03a9f4" />
|
|
202
|
+
</radialGradient>
|
|
203
|
+
<path id="path178"
|
|
204
|
+
d="M6.9 10.5C4.8 10.5 3 8.7 3 6.6c0-2.1 1.8-3.9 3.9-3.9 2.1 0 3.9 1.7 3.9 3.9 0 1-.4 2-1.2 2.8-.6.7-1.6 1.1-2.7 1.1Z"
|
|
205
|
+
style="fill:url(#SVGID_24_)" />
|
|
206
|
+
<radialGradient id="SVGID_25_" cx="-781.927" cy="503.72" r="9.652"
|
|
207
|
+
gradientTransform="translate(4458.785 -2783.157) scale(5.6328)" gradientUnits="userSpaceOnUse">
|
|
208
|
+
<stop id="stop180" offset="0" style="stop-color:#01579b" />
|
|
209
|
+
<stop id="stop182" offset="1" style="stop-color:#03a9f4" />
|
|
210
|
+
</radialGradient>
|
|
211
|
+
<path id="path185"
|
|
212
|
+
d="M102.1 10.2c-2 0-3.7-1.6-3.7-3.6 0-1.3.7-2.5 1.8-3.1 1.1-.6 2.5-.6 3.6 0s1.8 1.8 1.8 3.1c.1 2-1.5 3.6-3.5 3.6z"
|
|
213
|
+
style="fill:url(#SVGID_25_)" />
|
|
214
|
+
</g>
|
|
215
|
+
</g>
|
|
216
|
+
<g id="g3366" transform="translate(132.677) scale(.26157)">
|
|
217
|
+
<path id="path3224"
|
|
218
|
+
d="M272 10.313c13.6-7.8 25.9-8.5 34.7-3.1l98.6 57.4c.2.1.3.2.5.3-8.8-5.2-21.1-4.6-34.6 3.2l-177 101.8-173.7-101.1c-27.3-15.8-27.3-41.3 0-57 27.3-15.8 71.5-15.7 98.8 0l75.6 43.1 77.1-44.6"
|
|
219
|
+
class="st1" />
|
|
220
|
+
<path id="path3226"
|
|
221
|
+
d="M99.5 57.413c-16.4 9.4-42.9 9.4-59.3 0-16.4-9.5-16.4-24.8 0-34.2 16.4-9.4 42.9-9.4 59.3 0 16.4 9.5 16.4 24.8 0 34.2"
|
|
222
|
+
class="st2" />
|
|
223
|
+
<path id="path3228"
|
|
224
|
+
d="M295.2 312.113c0 15.8-5.5 27-14.3 32.2l-100.8 57.9s-.1 0-.1.1c8.8-5.3 14.3-16.4 14.3-32.2v-200.2l177-101.8c27-15.6 48.9-2.6 48.9 29s-21.9 69.9-48.9 85.5l-76.1 43.9z"
|
|
225
|
+
class="st3" />
|
|
226
|
+
<path id="path3230"
|
|
227
|
+
d="M341.9 142.313c0 19 13.1 26.8 29.3 17.4 16.2-9.4 29.3-32.3 29.3-51.3s-13.1-26.8-29.3-17.4c-16.1 9.3-29.3 32.3-29.3 51.3"
|
|
228
|
+
class="st1" />
|
|
229
|
+
<path id="path3232"
|
|
230
|
+
d="M96.5 313.513c0 31.6 21.9 69.9 48.9 85.5 27 15.6 48.9 2.6 48.9-29v-200.1L20.5 68.813C6.8 61.013 0 50.613 0 40.313v115.7c0 10.3 6.8 20.6 20.5 28.5l76 43.8z"
|
|
231
|
+
class="st2" />
|
|
232
|
+
<path id="path3234"
|
|
233
|
+
d="M174.7 358.713c0 19-13.1 26.8-29.3 17.4-16.2-9.4-29.3-32.3-29.3-51.3s13.1-26.8 29.3-17.4c16.2 9.3 29.3 32.3 29.3 51.3"
|
|
234
|
+
class="st3" />
|
|
235
|
+
</g>
|
|
236
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const configScriptsKeys = {
|
|
2
|
+
"edit": "node -e \"require('spec-up-t')()\"",
|
|
3
|
+
"render": "node --no-warnings -e \"require('spec-up-t/index.js')({ nowatch: true })\"",
|
|
4
|
+
"dev": "node -e \"require('spec-up-t')({ dev: true })\"",
|
|
5
|
+
"collectExternalReferencesCache": "node --no-warnings -e \"require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: true})\"",
|
|
6
|
+
"collectExternalReferencesNoCache": "node --no-warnings -e \"require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: false})\"",
|
|
7
|
+
"topdf": "node -e \"require('spec-up-t/src/create-pdf.js')\"",
|
|
8
|
+
"freeze": "node -e \"require('spec-up-t/src/freeze.js')\"",
|
|
9
|
+
"references": "node -e \"require('spec-up-t/src/references.js')\"",
|
|
10
|
+
"help": "cat help.txt",
|
|
11
|
+
"menu": "bash ./main.sh",
|
|
12
|
+
"addremovexrefsource": "node --no-warnings -e \"require('spec-up-t/src/add-remove-xref-source.js')\"",
|
|
13
|
+
"configure": "node --no-warnings -e \"require('spec-up-t/src/configure.js')\""
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = { configScriptsKeys };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const fs = require('fs-extra');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
function copyBoilerplate() {
|
|
5
|
+
const sourceDir = path.join(__dirname, './', 'boilerplate');
|
|
6
|
+
const items = fs.readdirSync(sourceDir);
|
|
7
|
+
items.forEach(item => {
|
|
8
|
+
const srcPath = path.join(sourceDir, item);
|
|
9
|
+
// Root of the project
|
|
10
|
+
const destPath = path.join(__dirname, '../../../../', item);
|
|
11
|
+
fs.cpSync(srcPath, destPath, { recursive: true });
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// Rename the copied gitignore file to .gitignore
|
|
15
|
+
const gitignorePath = path.join(__dirname, '../../../../', 'gitignore');
|
|
16
|
+
const gitignoreDestPath = path.join(__dirname, '../../../../', '.gitignore');
|
|
17
|
+
fs.renameSync(gitignorePath, gitignoreDestPath);
|
|
18
|
+
|
|
19
|
+
console.log('✅ Copied spec-up-t-boilerplate to current directory.');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module.exports = copyBoilerplate;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const copyBoilerplate = require('./copy-boilerplate');
|
|
2
|
+
const { configScriptsKeys } = require('./config-scripts-keys');
|
|
3
|
+
const addScriptsKeys = require('./add-scripts-keys');
|
|
4
|
+
|
|
5
|
+
copyBoilerplate();
|
|
6
|
+
addScriptsKeys(configScriptsKeys);
|
|
7
|
+
|
|
8
|
+
require('./postinstall-message');
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// load path module
|
|
2
|
+
const path = require('path');
|
|
3
|
+
// get current directory name
|
|
4
|
+
const dirName = path.basename(path.resolve(__dirname, '../../../../'));
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
process.nextTick(() => {
|
|
8
|
+
console.log(`
|
|
9
|
+
*************
|
|
10
|
+
Next:
|
|
11
|
+
* 1: Type the following and press ENTER: cd ${dirName}
|
|
12
|
+
* 2: Type the following and press ENTER: npm run menu
|
|
13
|
+
*************
|
|
14
|
+
`);
|
|
15
|
+
});
|