@riboseinc/anafero-cli 0.0.21 → 0.0.23
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/bootstrap.css +46 -136
- package/bootstrap.css.map +3 -3
- package/bootstrap.js +42 -8
- package/bootstrap.js.map +3 -3
- package/build-site.css +46 -136
- package/build-site.mjs +34 -11
- package/generate-to-filesystem.tsx +18 -3
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.23.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.21.tgz +0 -0
package/build-site.css
CHANGED
|
@@ -31065,6 +31065,36 @@ tbody.vars_bd693cb4_hm005a_spectrum-Table-body .vars_bd693cb4_hm005a_spectrum-Ta
|
|
|
31065
31065
|
background: var(--spectrum-alias-highlight-selected-hover);
|
|
31066
31066
|
}
|
|
31067
31067
|
}
|
|
31068
|
+
.style_lastVisibleResourceMarkerIntersection {
|
|
31069
|
+
position: relative;
|
|
31070
|
+
top: -100px;
|
|
31071
|
+
z-index: 22;
|
|
31072
|
+
float: right;
|
|
31073
|
+
width: 12px;
|
|
31074
|
+
}
|
|
31075
|
+
.style_resourceLoadingOrMissingPlaceholder {
|
|
31076
|
+
color: var(--spectrum-alias-text-color);
|
|
31077
|
+
opacity: 0.6;
|
|
31078
|
+
white-space: nowrap;
|
|
31079
|
+
overflow: hidden;
|
|
31080
|
+
text-overflow: ellipsis;
|
|
31081
|
+
transition: margin-left .5s ease-in-out;
|
|
31082
|
+
&.style_withNav {
|
|
31083
|
+
margin-left: 330px !important;
|
|
31084
|
+
}
|
|
31085
|
+
a {
|
|
31086
|
+
&:link,
|
|
31087
|
+
&:visited {
|
|
31088
|
+
text-decoration: none;
|
|
31089
|
+
}
|
|
31090
|
+
&:hover {
|
|
31091
|
+
text-decoration: underline;
|
|
31092
|
+
}
|
|
31093
|
+
}
|
|
31094
|
+
padding: 0 2em 2em;
|
|
31095
|
+
margin-right: 10px;
|
|
31096
|
+
margin-bottom: 10px;
|
|
31097
|
+
}
|
|
31068
31098
|
.style_resource {
|
|
31069
31099
|
padding: 0 2em 2em;
|
|
31070
31100
|
font-size: 16px;
|
|
@@ -31130,140 +31160,6 @@ tbody.vars_bd693cb4_hm005a_spectrum-Table-body .vars_bd693cb4_hm005a_spectrum-Ta
|
|
|
31130
31160
|
}
|
|
31131
31161
|
}
|
|
31132
31162
|
}
|
|
31133
|
-
> :nth-child(2) {
|
|
31134
|
-
> nav {
|
|
31135
|
-
ul {
|
|
31136
|
-
margin: 0;
|
|
31137
|
-
padding: 0;
|
|
31138
|
-
margin-top: 1em;
|
|
31139
|
-
list-style: none;
|
|
31140
|
-
columns: 2;
|
|
31141
|
-
> li {
|
|
31142
|
-
overflow: hidden;
|
|
31143
|
-
text-overflow: ellipsis;
|
|
31144
|
-
&::before {
|
|
31145
|
-
content: "\23f5";
|
|
31146
|
-
margin-right: 0.5em;
|
|
31147
|
-
}
|
|
31148
|
-
> a {
|
|
31149
|
-
font-weight: 500;
|
|
31150
|
-
font-size: 16px;
|
|
31151
|
-
white-space: nowrap;
|
|
31152
|
-
padding-top: .5em 0;
|
|
31153
|
-
&:link {
|
|
31154
|
-
text-decoration: none;
|
|
31155
|
-
}
|
|
31156
|
-
&:hover {
|
|
31157
|
-
text-decoration: underline;
|
|
31158
|
-
}
|
|
31159
|
-
}
|
|
31160
|
-
}
|
|
31161
|
-
}
|
|
31162
|
-
}
|
|
31163
|
-
> article {
|
|
31164
|
-
line-height: 1.42;
|
|
31165
|
-
overflow-wrap: anywhere;
|
|
31166
|
-
html[lang=en] & h1 + p:first-letter {
|
|
31167
|
-
font-size: 230%;
|
|
31168
|
-
float: left;
|
|
31169
|
-
line-height: 1;
|
|
31170
|
-
display: inline-block;
|
|
31171
|
-
}
|
|
31172
|
-
&[contenteditable=false] br.ProseMirror-trailingBreak {
|
|
31173
|
-
display: none;
|
|
31174
|
-
}
|
|
31175
|
-
p {
|
|
31176
|
-
margin: 0;
|
|
31177
|
-
}
|
|
31178
|
-
ul,
|
|
31179
|
-
ol {
|
|
31180
|
-
margin: 0;
|
|
31181
|
-
padding: 0;
|
|
31182
|
-
padding-left: 2em;
|
|
31183
|
-
}
|
|
31184
|
-
p + p {
|
|
31185
|
-
text-indent: 1em;
|
|
31186
|
-
}
|
|
31187
|
-
p + figure,
|
|
31188
|
-
figure + p,
|
|
31189
|
-
ul + figure,
|
|
31190
|
-
figure + ul,
|
|
31191
|
-
ol + figure,
|
|
31192
|
-
figure + ol,
|
|
31193
|
-
figure + figure {
|
|
31194
|
-
margin-top: 1em;
|
|
31195
|
-
}
|
|
31196
|
-
dl {
|
|
31197
|
-
display: grid;
|
|
31198
|
-
grid-template-columns: 25% 75%;
|
|
31199
|
-
}
|
|
31200
|
-
ol {
|
|
31201
|
-
list-style: lower-latin;
|
|
31202
|
-
}
|
|
31203
|
-
li:has(figure) {
|
|
31204
|
-
margin-bottom: 1em;
|
|
31205
|
-
}
|
|
31206
|
-
pre {
|
|
31207
|
-
white-space: pre;
|
|
31208
|
-
}
|
|
31209
|
-
figure {
|
|
31210
|
-
margin: 0;
|
|
31211
|
-
margin-right: 1em;
|
|
31212
|
-
padding: 0;
|
|
31213
|
-
> pre {
|
|
31214
|
-
padding: .5em;
|
|
31215
|
-
margin: 0;
|
|
31216
|
-
overflow: auto;
|
|
31217
|
-
}
|
|
31218
|
-
&:has(> img) {
|
|
31219
|
-
padding: .5em 1em;
|
|
31220
|
-
border-radius: 5px;
|
|
31221
|
-
text-align: center;
|
|
31222
|
-
background: white;
|
|
31223
|
-
> img {
|
|
31224
|
-
margin: .5em;
|
|
31225
|
-
}
|
|
31226
|
-
> figcaption {
|
|
31227
|
-
color: var(--spectrum-global-color-static-black);
|
|
31228
|
-
}
|
|
31229
|
-
}
|
|
31230
|
-
}
|
|
31231
|
-
figcaption {
|
|
31232
|
-
font-weight: 400;
|
|
31233
|
-
}
|
|
31234
|
-
img {
|
|
31235
|
-
max-width: 100%;
|
|
31236
|
-
}
|
|
31237
|
-
table {
|
|
31238
|
-
--table-highlight-background: rgba(120, 120, 120, 0.5);
|
|
31239
|
-
--table-border: 1px solid var(--table-highlight-background);
|
|
31240
|
-
width: 100%;
|
|
31241
|
-
border-collapse: collapse;
|
|
31242
|
-
border: var(--table-border);
|
|
31243
|
-
font-size: 16px;
|
|
31244
|
-
tr {
|
|
31245
|
-
border-bottom: var(--table-border);
|
|
31246
|
-
}
|
|
31247
|
-
td,
|
|
31248
|
-
th {
|
|
31249
|
-
border-right: var(--table-border);
|
|
31250
|
-
word-break: break-word;
|
|
31251
|
-
vertical-align: top;
|
|
31252
|
-
text-align: left;
|
|
31253
|
-
padding: 0.25em;
|
|
31254
|
-
}
|
|
31255
|
-
td:nth-child(1),
|
|
31256
|
-
td:nth-child(2),
|
|
31257
|
-
td:nth-child(3) {
|
|
31258
|
-
word-break: unset !important;
|
|
31259
|
-
}
|
|
31260
|
-
th {
|
|
31261
|
-
font-weight: 400;
|
|
31262
|
-
background: var(--table-highlight-background);
|
|
31263
|
-
}
|
|
31264
|
-
}
|
|
31265
|
-
}
|
|
31266
|
-
}
|
|
31267
31163
|
}
|
|
31268
31164
|
.style_browserBar {
|
|
31269
31165
|
position: fixed;
|
|
@@ -31279,16 +31175,30 @@ tbody.vars_bd693cb4_hm005a_spectrum-Table-body .vars_bd693cb4_hm005a_spectrum-Ta
|
|
|
31279
31175
|
.style_browserBarTitle {
|
|
31280
31176
|
flex: 1;
|
|
31281
31177
|
overflow: hidden;
|
|
31178
|
+
display: flex;
|
|
31179
|
+
flex-flow: column nowrap;
|
|
31180
|
+
align-items: center;
|
|
31282
31181
|
h1 {
|
|
31283
|
-
transform: rotate(-90deg)
|
|
31182
|
+
transform: translateX(50%) rotate(-90deg) translateY(-25%) translateX(-100%) translateX(-20px);
|
|
31284
31183
|
color: var(--spectrum-alias-border-color);
|
|
31285
31184
|
font-size: 20px;
|
|
31286
31185
|
line-height: 1;
|
|
31287
31186
|
margin: 0;
|
|
31288
31187
|
padding: 0;
|
|
31289
31188
|
transform-origin: top left;
|
|
31290
|
-
text-align: right;
|
|
31291
31189
|
width: 80vh;
|
|
31190
|
+
height: 30px;
|
|
31191
|
+
overflow: hidden;
|
|
31192
|
+
text-align: right;
|
|
31193
|
+
text-overflow: ellipsis;
|
|
31194
|
+
html[lang=ja] & {
|
|
31195
|
+
transform: unset;
|
|
31196
|
+
width: unset;
|
|
31197
|
+
height: unset;
|
|
31198
|
+
text-align: unset;
|
|
31199
|
+
writing-mode: vertical-rl;
|
|
31200
|
+
margin-top: 20px;
|
|
31201
|
+
}
|
|
31292
31202
|
}
|
|
31293
31203
|
}
|
|
31294
31204
|
.style_browserBarToolbar[data-orientation=vertical] {
|
package/build-site.mjs
CHANGED
|
@@ -316448,8 +316448,10 @@ var StoredAppStateSchema = Struct2({
|
|
|
316448
316448
|
var style_default = {
|
|
316449
316449
|
floatingSubresourceLink: "style_floatingSubresourceLink",
|
|
316450
316450
|
floatingSubresourceLinkAnchor: "style_floatingSubresourceLinkAnchor",
|
|
316451
|
-
|
|
316451
|
+
lastVisibleResourceMarkerIntersection: "style_lastVisibleResourceMarkerIntersection",
|
|
316452
|
+
resourceLoadingOrMissingPlaceholder: "style_resourceLoadingOrMissingPlaceholder",
|
|
316452
316453
|
withNav: "style_withNav",
|
|
316454
|
+
resource: "style_resource",
|
|
316453
316455
|
active: "style_active",
|
|
316454
316456
|
"is-disabled": "style_is-disabled",
|
|
316455
316457
|
resourceBreadcrumbsNav: "style_resourceBreadcrumbsNav",
|
|
@@ -316991,6 +316993,9 @@ var makeContentReader = async function(entryPointURI, storeAdapters, contentAdap
|
|
|
316991
316993
|
while (queue.length > 0) {
|
|
316992
316994
|
const currentResource = queue.pop();
|
|
316993
316995
|
if (!cache3.has(`edges-from/${currentResource}`)) {
|
|
316996
|
+
if (entryPointURI === currentResource) {
|
|
316997
|
+
throw new Error(`No resource graph found for ${currentResource}`);
|
|
316998
|
+
}
|
|
316994
316999
|
} else {
|
|
316995
317000
|
const relations = cache3.list(`edges-from/${currentResource}`);
|
|
316996
317001
|
cache3.add(
|
|
@@ -317010,13 +317015,20 @@ var makeContentReader = async function(entryPointURI, storeAdapters, contentAdap
|
|
|
317010
317015
|
}
|
|
317011
317016
|
return cache3.list(`graphs/${resourceURI}`);
|
|
317012
317017
|
}
|
|
317013
|
-
function processResourceContents(resourceURI, containingResourcePath) {
|
|
317018
|
+
function processResourceContents(resourceURI, containingResourcePath, _seen) {
|
|
317019
|
+
const seen = _seen ?? /* @__PURE__ */ new Set();
|
|
317014
317020
|
cache3.set({
|
|
317015
317021
|
[`path-for/${resourceURI}`]: `${containingResourcePath}#${resourceURI}`
|
|
317016
317022
|
});
|
|
317017
317023
|
for (const rel of generateRelations(resourceURI)) {
|
|
317018
317024
|
if (isURIString(rel.target) && !contentAdapter.crossReferences?.(rel)) {
|
|
317019
|
-
|
|
317025
|
+
const key = JSON.stringify({ rel, resourceURI, containingResourcePath });
|
|
317026
|
+
if (seen.has(key)) {
|
|
317027
|
+
throw new Error(`Duplicate ${rel.predicate} to ${rel.target} from ${resourceURI} at ${containingResourcePath}`);
|
|
317028
|
+
} else {
|
|
317029
|
+
seen.add(key);
|
|
317030
|
+
processResourceContents(rel.target, containingResourcePath, seen);
|
|
317031
|
+
}
|
|
317020
317032
|
}
|
|
317021
317033
|
}
|
|
317022
317034
|
}
|
|
@@ -317184,8 +317196,6 @@ function* generateResourceAssets(resourceURI, relations, parentChain, directDesc
|
|
|
317184
317196
|
data-workspace-title="${workspaceTitle}">
|
|
317185
317197
|
<head>
|
|
317186
317198
|
<meta charset="utf-8">
|
|
317187
|
-
<!-- devtools
|
|
317188
|
-
<script src="http://192.168.0.179:8097"></script> -->
|
|
317189
317199
|
${helmet2.title.toString()}
|
|
317190
317200
|
${helmet2.meta.toString()}
|
|
317191
317201
|
${helmet2.link.toString()}
|
|
@@ -317503,12 +317513,17 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
|
|
|
317503
317513
|
const expanded = path3.startsWith("/") ? `${opts.pathPrefix}${path3}` : `${prefixWithTrailing}${path3}`;
|
|
317504
317514
|
return expanded;
|
|
317505
317515
|
}
|
|
317506
|
-
const htmlAttrs =
|
|
317507
|
-
data-path-prefix="${opts.pathPrefix}"
|
|
317508
|
-
|
|
317516
|
+
const htmlAttrs = `
|
|
317517
|
+
${opts.pathPrefix ? `data-path-prefix="${opts.pathPrefix}"` : ""}
|
|
317518
|
+
${opts.debug?.reactStrictMode ? 'data-use-react-strict="true"' : ""}
|
|
317519
|
+
`;
|
|
317509
317520
|
const globalCSS = ["bootstrap.css"].map(
|
|
317510
317521
|
(url3) => `<link rel="stylesheet" href="${expandGlobalPath(url3)}" />`
|
|
317511
317522
|
).join("\n");
|
|
317523
|
+
const head6 = `
|
|
317524
|
+
${globalCSS}
|
|
317525
|
+
${opts.debug?.reactDevTools ? '<script src="http://localhost:8097"></script>' : ""}
|
|
317526
|
+
`;
|
|
317512
317527
|
const globalJS = ["bootstrap.js"].map(
|
|
317513
317528
|
(url3) => `<script src="${expandGlobalPath(url3)}"></script>`
|
|
317514
317529
|
).join("\n");
|
|
@@ -317542,7 +317557,7 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
|
|
|
317542
317557
|
reportProgress: versionSubtask,
|
|
317543
317558
|
reportNotice: versionNotice
|
|
317544
317559
|
},
|
|
317545
|
-
{ htmlAttrs, head:
|
|
317560
|
+
{ htmlAttrs, head: head6, tail: globalJS },
|
|
317546
317561
|
function expandVersionedPath(versionRelativePath) {
|
|
317547
317562
|
const isNonSlashPrepended = !versionRelativePath.startsWith("/");
|
|
317548
317563
|
if (isNonSlashPrepended) {
|
|
@@ -321945,7 +321960,11 @@ var build2 = Command_exports2.make(
|
|
|
321945
321960
|
currentRevision: unpackOption(currentRevision)
|
|
321946
321961
|
}, (task, progress) => onProgress(`build site|${task}`, progress), {
|
|
321947
321962
|
pathPrefix: prefix,
|
|
321948
|
-
|
|
321963
|
+
debug: {
|
|
321964
|
+
dumpCache: debug3 || false,
|
|
321965
|
+
reactDevTools: debug3 || false,
|
|
321966
|
+
reactStrictMode: debug3 || false
|
|
321967
|
+
}
|
|
321949
321968
|
});
|
|
321950
321969
|
const [writeProgress, writingSubtask] = onProgress("build site|write files");
|
|
321951
321970
|
for await (const blobchunk of generator) {
|
|
@@ -322157,6 +322176,10 @@ async function* generateSite(revisionsToBuild, onProgress, opts) {
|
|
|
322157
322176
|
},
|
|
322158
322177
|
getDOMStub: () => new import_jsdom2.JSDOM("<html></html>").window.document,
|
|
322159
322178
|
cache: cache3,
|
|
322179
|
+
debug: {
|
|
322180
|
+
reactStrictMode: opts?.debug?.reactStrictMode || false,
|
|
322181
|
+
reactDevTools: opts?.debug?.reactDevTools || false
|
|
322182
|
+
},
|
|
322160
322183
|
pathPrefix: opts?.pathPrefix,
|
|
322161
322184
|
decodeXML: (blob) => new import_jsdom2.JSDOM(
|
|
322162
322185
|
decoder3.decode(blob).replace("xmlns", "wtf"),
|
|
@@ -322167,7 +322190,7 @@ async function* generateSite(revisionsToBuild, onProgress, opts) {
|
|
|
322167
322190
|
}
|
|
322168
322191
|
);
|
|
322169
322192
|
} finally {
|
|
322170
|
-
if (opts?.dumpCache) {
|
|
322193
|
+
if (opts?.debug?.dumpCache) {
|
|
322171
322194
|
try {
|
|
322172
322195
|
fs4.writeFileSync(
|
|
322173
322196
|
"cacheDump.json",
|
|
@@ -112,7 +112,11 @@ const build = Command.
|
|
|
112
112
|
currentRevision: unpackOption(currentRevision)!,
|
|
113
113
|
}, (task, progress) => onProgress(`build site|${task}`, progress), {
|
|
114
114
|
pathPrefix: prefix,
|
|
115
|
-
|
|
115
|
+
debug: {
|
|
116
|
+
dumpCache: debug || false,
|
|
117
|
+
reactDevTools: debug || false,
|
|
118
|
+
reactStrictMode: debug || false,
|
|
119
|
+
},
|
|
116
120
|
});
|
|
117
121
|
const [writeProgress, writingSubtask] = onProgress('build site|write files');
|
|
118
122
|
for await (const blobchunk of generator) {
|
|
@@ -350,7 +354,14 @@ async function getRefsToBuild(revisionsToBuild: VersionBuildConfig) {
|
|
|
350
354
|
async function * generateSite(
|
|
351
355
|
revisionsToBuild: VersionBuildConfig | undefined,
|
|
352
356
|
onProgress: TaskProgressCallback,
|
|
353
|
-
opts?: {
|
|
357
|
+
opts?: {
|
|
358
|
+
pathPrefix?: string | undefined;
|
|
359
|
+
debug?: {
|
|
360
|
+
dumpCache?: boolean;
|
|
361
|
+
reactDevTools?: boolean;
|
|
362
|
+
reactStrictMode?: boolean;
|
|
363
|
+
};
|
|
364
|
+
},
|
|
354
365
|
) {
|
|
355
366
|
if (revisionsToBuild !== undefined) {
|
|
356
367
|
|
|
@@ -417,6 +428,10 @@ async function * generateSite(
|
|
|
417
428
|
},
|
|
418
429
|
getDOMStub: (() => (new JSDOM('<html></html>')).window.document),
|
|
419
430
|
cache,
|
|
431
|
+
debug: {
|
|
432
|
+
reactStrictMode: opts?.debug?.reactStrictMode || false,
|
|
433
|
+
reactDevTools: opts?.debug?.reactDevTools || false,
|
|
434
|
+
},
|
|
420
435
|
pathPrefix: opts?.pathPrefix,
|
|
421
436
|
decodeXML: (blob) =>
|
|
422
437
|
new JSDOM(
|
|
@@ -427,7 +442,7 @@ async function * generateSite(
|
|
|
427
442
|
},
|
|
428
443
|
);
|
|
429
444
|
} finally {
|
|
430
|
-
if (opts?.dumpCache) {
|
|
445
|
+
if (opts?.debug?.dumpCache) {
|
|
431
446
|
try {
|
|
432
447
|
fs.writeFileSync(
|
|
433
448
|
'cacheDump.json',
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|