spec-up-t 1.1.36 → 1.1.38
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/head.css
CHANGED
|
@@ -12,7 +12,7 @@ dl>dd:has(table)>.meta-info-content-wrapper{max-height:100px;transition:max-heig
|
|
|
12
12
|
.spec-up-t-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:1000}.spec-up-t-modal{background-color:#fff;padding:2rem 20px 20px;border-radius:8px;max-width:80%;max-height:80%;overflow-y:auto;position:relative;box-shadow:0 2px 10px rgba(0,0,0,.1)}.spec-up-t-modal-close{position:absolute;top:0;right:5px;background-color:transparent;border:none;font-size:2rem;line-height:1;cursor:pointer}
|
|
13
13
|
.alphabet-index-container{margin-bottom:1em}.alphabet-index-container,.number-of-terms{font-size:.8em;text-align:center;width:100%}.alphabet-index-container a{background-color:#f5f5f5;border:1px solid #e0e0e0;border-radius:50%;color:#333;display:inline-block;font-size:.9rem;height:30px;line-height:30px;margin:2px;text-align:center;text-decoration:none;width:30px}
|
|
14
14
|
.button-pdf-download{padding-left:.1em;padding-right:.1em;border:none;background:red;color:#fff;box-shadow:2.8px 2.8px 2.2px rgba(0,0,0,.02),6.7px 6.7px 5.3px rgba(0,0,0,.028),12.5px 12.5px 10px rgba(0,0,0,.035),22.3px 22.3px 17.9px rgba(0,0,0,.042),41.8px 41.8px 33.4px rgba(0,0,0,.05),100px 100px 80px rgba(0,0,0,.07)}
|
|
15
|
-
h2,h3,h4,h5,h6{margin-top:1.5em!important}.toc-anchor{font-size:.875em;color:inherit;text-decoration:none;color:#73c2df;transition:opacity .3s ease}.toc-anchor:hover{opacity:1}#terminology-section-utility-container{display:flex;flex-wrap:wrap;justify-content:center;margin:1em auto;padding:0;width:100%}@media (min-width:576px){#terminology-section-utility-container{position:sticky;top:3.5em}}.transcluded-xref-term{background:#a9dde03b!important;padding:.5em;margin:1em 0}.transclusion-heading{font-size:1.3em;font-weight:700;margin:1em 0 .5em}.btn,.no-xref-found-message{font-variant:small-caps;text-transform:uppercase}.no-xref-found-message{background:#f8c481!important;color:#03365f!important;margin:0 .5em;padding:0 .8em;border-radius:.25rem;font-size:.8rem}dl.terms-and-definitions-list{margin:0;padding:0}dl.terms-and-definitions-list>dt{font-weight:700;margin:0;background-color:var(--card-bg-dt);border:1px solid var(--card-border);padding:.1rem 1.25rem;border-radius:.375rem .375rem 0 0;box-shadow:0 .125rem .25rem var(--card-shadow);color:var(--card-text)}dl.terms-and-definitions-list>dd{margin:0;background-color:var(--card-bg);border:1px solid var(--card-border);border-top:none;padding:1rem 1.25rem;box-shadow:0 .125rem .25rem var(--card-shadow);color:var(--card-text);overflow:scroll}dl.terms-and-definitions-list dd p{margin:0;color:var(--card-text)}dl.terms-and-definitions-list dt+dd{border-bottom:none}dl.terms-and-definitions-list dd+dd{border-top:none;border-bottom:none}dl.terms-and-definitions-list dd+dt{margin-top:1.5rem}dl.terms-and-definitions-list dd.last-dd{border-radius:0 0 .375rem .375rem;border-bottom:1px solid var(--card-border)}dl.terms-and-definitions-list>dt:hover{background-color:var(--card-hover-bg);transition:background-color .2s ease-in-out}
|
|
15
|
+
h2,h3,h4,h5,h6{margin-top:1.5em!important}.toc-anchor{font-size:.875em;color:inherit;text-decoration:none;color:#73c2df;transition:opacity .3s ease}.toc-anchor:hover{opacity:1}#terminology-section-utility-container{display:flex;flex-wrap:wrap;justify-content:center;margin:1em auto;padding:0;width:100%}@media (min-width:576px){#terminology-section-utility-container{position:sticky;top:3.5em}}.transcluded-xref-term{background:#a9dde03b!important;padding:.5em;margin:1em 0}.transclusion-heading{font-size:1.3em;font-weight:700;margin:1em 0 .5em}.btn,.no-xref-found-message{font-variant:small-caps;text-transform:uppercase}.no-xref-found-message{background:#f8c481!important;color:#03365f!important;margin:0 .5em;padding:0 .8em;border-radius:.25rem;font-size:.8rem}dl.terms-and-definitions-list{margin:0;padding:0}dl.terms-and-definitions-list>dt{font-weight:700;margin:0;background-color:var(--card-bg-dt);border:1px solid var(--card-border);padding:.1rem 1.25rem;border-radius:.375rem .375rem 0 0;box-shadow:0 .125rem .25rem var(--card-shadow);color:var(--card-text)}dl.terms-and-definitions-list>dd{margin:0;background-color:var(--card-bg);border:1px solid var(--card-border);border-top:none;padding:1rem 1.25rem;box-shadow:0 .125rem .25rem var(--card-shadow);color:var(--card-text);overflow:scroll;width:100%}dl.terms-and-definitions-list dd p{margin:0;color:var(--card-text)}dl.terms-and-definitions-list dt+dd{border-bottom:none}dl.terms-and-definitions-list dd+dd{border-top:none;border-bottom:none}dl.terms-and-definitions-list dd+dt{margin-top:1.5rem}dl.terms-and-definitions-list dd.last-dd{border-radius:0 0 .375rem .375rem;border-bottom:1px solid var(--card-border)}dl.terms-and-definitions-list>dt:hover{background-color:var(--card-hover-bg);transition:background-color .2s ease-in-out}
|
|
16
16
|
@charset "UTF-8";/*!
|
|
17
17
|
* Bootstrap v5.3.3 (https://getbootstrap.com/)
|
|
18
18
|
* Copyright 2011-2024 The Bootstrap Authors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.38",
|
|
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": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Menu
|
|
1
|
+
name: Run Menu
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
@@ -16,7 +16,7 @@ on:
|
|
|
16
16
|
- Collect external references (no cache)
|
|
17
17
|
- Convert to PDF
|
|
18
18
|
- Freeze specification
|
|
19
|
-
- List references
|
|
19
|
+
# - List references
|
|
20
20
|
# - Show help
|
|
21
21
|
# - Add/remove xref source
|
|
22
22
|
# - Configure specification
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
- name: Checkout 🛎️
|
|
32
32
|
uses: actions/checkout@v4
|
|
33
33
|
with:
|
|
34
|
-
persist-credentials:
|
|
34
|
+
persist-credentials: true # We’ll use MY_PAT for push
|
|
35
35
|
|
|
36
36
|
- name: Set up Node.js
|
|
37
37
|
uses: actions/setup-node@v4
|
|
@@ -60,46 +60,71 @@ jobs:
|
|
|
60
60
|
MY_PAT: ${{ secrets.MY_PAT }} # Make the secret available as an env var
|
|
61
61
|
run: |
|
|
62
62
|
case "${{ github.event.inputs.script }}" in
|
|
63
|
-
"Edit specification")
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
# "Edit specification")
|
|
64
|
+
# node -e "require('spec-up-t')()"
|
|
65
|
+
# ;;
|
|
66
66
|
"Render specification")
|
|
67
67
|
node --no-warnings -e "require('spec-up-t/index.js')({ nowatch: true })"
|
|
68
|
+
git config --global user.email "actions@github.com"
|
|
69
|
+
git config --global user.name "GitHub Actions"
|
|
70
|
+
git add .
|
|
71
|
+
git commit -m "Render specification: Update files" || echo "No changes to commit"
|
|
72
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
68
73
|
;;
|
|
69
|
-
"Develop specification")
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
# "Develop specification")
|
|
75
|
+
# node -e "require('spec-up-t')({ dev: true })"
|
|
76
|
+
# ;;
|
|
72
77
|
"Collect external references (cached)")
|
|
73
78
|
node --no-warnings -e "require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: true})"
|
|
79
|
+
git config --global user.email "actions@github.com"
|
|
80
|
+
git config --global user.name "GitHub Actions"
|
|
81
|
+
git add .
|
|
82
|
+
git commit -m "Collect external references (cached)" || echo "No changes to commit"
|
|
83
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
74
84
|
;;
|
|
75
85
|
"Collect external references (no cache)")
|
|
76
86
|
node --no-warnings -e "require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: false, pat: process.env.MY_PAT})"
|
|
87
|
+
git config --global user.email "actions@github.com"
|
|
88
|
+
git config --global user.name "GitHub Actions"
|
|
89
|
+
git add .
|
|
90
|
+
git commit -m "Collect external references (no cache)" || echo "No changes to commit"
|
|
91
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
77
92
|
;;
|
|
78
93
|
"Convert to PDF")
|
|
79
94
|
node -e "require('spec-up-t/src/create-pdf.js')"
|
|
95
|
+
git config --global user.email "actions@github.com"
|
|
96
|
+
git config --global user.name "GitHub Actions"
|
|
97
|
+
git add .
|
|
98
|
+
git commit -m "Convert to PDF" || echo "No changes to commit"
|
|
99
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
80
100
|
;;
|
|
81
101
|
"Freeze specification")
|
|
82
102
|
node -e "require('spec-up-t/src/freeze.js')"
|
|
103
|
+
git config --global user.email "actions@github.com"
|
|
104
|
+
git config --global user.name "GitHub Actions"
|
|
105
|
+
git add .
|
|
106
|
+
git commit -m "Freeze specification" || echo "No changes to commit"
|
|
107
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
83
108
|
;;
|
|
84
|
-
"List references")
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"Show help")
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"Add/remove xref source")
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"Configure specification")
|
|
94
|
-
|
|
95
|
-
|
|
109
|
+
# "List references")
|
|
110
|
+
# node -e "require('spec-up-t/src/references.js')"
|
|
111
|
+
# ;;
|
|
112
|
+
# "Show help")
|
|
113
|
+
# cat ./node_modules/spec-up-t/src/install-from-boilerplate/help.txt || echo "Help file not found"
|
|
114
|
+
# ;;
|
|
115
|
+
# "Add/remove xref source")
|
|
116
|
+
# node --no-warnings -e "require('spec-up-t/src/add-remove-xref-source.js')"
|
|
117
|
+
# ;;
|
|
118
|
+
# "Configure specification")
|
|
119
|
+
# node --no-warnings -e "require('spec-up-t/src/configure.js')"
|
|
120
|
+
# ;;
|
|
96
121
|
"Custom update")
|
|
97
122
|
npm update && node -e "require('spec-up-t/src/install-from-boilerplate/custom-update.js')"
|
|
98
123
|
git config --global user.email "actions@github.com"
|
|
99
124
|
git config --global user.name "GitHub Actions"
|
|
100
125
|
git add .
|
|
101
126
|
git commit -m "Custom update: Copy files from spec-up-t" || echo "No changes to commit"
|
|
102
|
-
git push https://x-access-token:${{ secrets.
|
|
127
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
103
128
|
;;
|
|
104
129
|
*)
|
|
105
130
|
echo "Unknown script: ${{ github.event.inputs.script }}"
|