@riboseinc/anafero-cli 0.0.22 → 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 -139
- package/bootstrap.css.map +3 -3
- package/bootstrap.js +56 -30
- package/bootstrap.js.map +3 -3
- package/build-site.css +46 -139
- package/build-site.mjs +22 -9
- 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.22.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,143 +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-wrap;
|
|
31208
|
-
}
|
|
31209
|
-
figure {
|
|
31210
|
-
margin: 0;
|
|
31211
|
-
padding: 0;
|
|
31212
|
-
> pre {
|
|
31213
|
-
padding: .5em;
|
|
31214
|
-
margin: 0;
|
|
31215
|
-
overflow: auto;
|
|
31216
|
-
}
|
|
31217
|
-
&:has(> img) {
|
|
31218
|
-
padding: .5em 1em;
|
|
31219
|
-
border-radius: 5px;
|
|
31220
|
-
text-align: center;
|
|
31221
|
-
background: white;
|
|
31222
|
-
> img {
|
|
31223
|
-
margin: .5em;
|
|
31224
|
-
}
|
|
31225
|
-
> figcaption {
|
|
31226
|
-
color: var(--spectrum-global-color-static-black);
|
|
31227
|
-
}
|
|
31228
|
-
}
|
|
31229
|
-
}
|
|
31230
|
-
figcaption {
|
|
31231
|
-
font-weight: 400;
|
|
31232
|
-
}
|
|
31233
|
-
img {
|
|
31234
|
-
max-width: 100%;
|
|
31235
|
-
}
|
|
31236
|
-
table {
|
|
31237
|
-
--table-highlight-background: rgba(120, 120, 120, 0.5);
|
|
31238
|
-
--table-border: 1px solid var(--table-highlight-background);
|
|
31239
|
-
width: 100%;
|
|
31240
|
-
border-collapse: collapse;
|
|
31241
|
-
border: var(--table-border);
|
|
31242
|
-
overflow: hidden;
|
|
31243
|
-
outline: 1px solid;
|
|
31244
|
-
outline-offset: -1px;
|
|
31245
|
-
outline-color: var(--spectrum-alias-border-color);
|
|
31246
|
-
font-size: 16px;
|
|
31247
|
-
tr {
|
|
31248
|
-
border-bottom: var(--table-border);
|
|
31249
|
-
}
|
|
31250
|
-
td,
|
|
31251
|
-
th {
|
|
31252
|
-
border-right: var(--table-border);
|
|
31253
|
-
word-break: break-word;
|
|
31254
|
-
vertical-align: top;
|
|
31255
|
-
text-align: left;
|
|
31256
|
-
padding: 0.25em;
|
|
31257
|
-
}
|
|
31258
|
-
td:nth-child(1),
|
|
31259
|
-
td:nth-child(2),
|
|
31260
|
-
td:nth-child(3) {
|
|
31261
|
-
word-break: unset !important;
|
|
31262
|
-
}
|
|
31263
|
-
th {
|
|
31264
|
-
font-weight: 400;
|
|
31265
|
-
background: var(--table-highlight-background);
|
|
31266
|
-
}
|
|
31267
|
-
}
|
|
31268
|
-
}
|
|
31269
|
-
}
|
|
31270
31163
|
}
|
|
31271
31164
|
.style_browserBar {
|
|
31272
31165
|
position: fixed;
|
|
@@ -31282,16 +31175,30 @@ tbody.vars_bd693cb4_hm005a_spectrum-Table-body .vars_bd693cb4_hm005a_spectrum-Ta
|
|
|
31282
31175
|
.style_browserBarTitle {
|
|
31283
31176
|
flex: 1;
|
|
31284
31177
|
overflow: hidden;
|
|
31178
|
+
display: flex;
|
|
31179
|
+
flex-flow: column nowrap;
|
|
31180
|
+
align-items: center;
|
|
31285
31181
|
h1 {
|
|
31286
|
-
transform: rotate(-90deg)
|
|
31182
|
+
transform: translateX(50%) rotate(-90deg) translateY(-25%) translateX(-100%) translateX(-20px);
|
|
31287
31183
|
color: var(--spectrum-alias-border-color);
|
|
31288
31184
|
font-size: 20px;
|
|
31289
31185
|
line-height: 1;
|
|
31290
31186
|
margin: 0;
|
|
31291
31187
|
padding: 0;
|
|
31292
31188
|
transform-origin: top left;
|
|
31293
|
-
text-align: right;
|
|
31294
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
|
+
}
|
|
31295
31202
|
}
|
|
31296
31203
|
}
|
|
31297
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",
|
|
@@ -317194,8 +317196,6 @@ function* generateResourceAssets(resourceURI, relations, parentChain, directDesc
|
|
|
317194
317196
|
data-workspace-title="${workspaceTitle}">
|
|
317195
317197
|
<head>
|
|
317196
317198
|
<meta charset="utf-8">
|
|
317197
|
-
<!-- devtools
|
|
317198
|
-
<script src="http://localhost:8097"></script> -->
|
|
317199
317199
|
${helmet2.title.toString()}
|
|
317200
317200
|
${helmet2.meta.toString()}
|
|
317201
317201
|
${helmet2.link.toString()}
|
|
@@ -317513,12 +317513,17 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
|
|
|
317513
317513
|
const expanded = path3.startsWith("/") ? `${opts.pathPrefix}${path3}` : `${prefixWithTrailing}${path3}`;
|
|
317514
317514
|
return expanded;
|
|
317515
317515
|
}
|
|
317516
|
-
const htmlAttrs =
|
|
317517
|
-
data-path-prefix="${opts.pathPrefix}"
|
|
317518
|
-
|
|
317516
|
+
const htmlAttrs = `
|
|
317517
|
+
${opts.pathPrefix ? `data-path-prefix="${opts.pathPrefix}"` : ""}
|
|
317518
|
+
${opts.debug?.reactStrictMode ? 'data-use-react-strict="true"' : ""}
|
|
317519
|
+
`;
|
|
317519
317520
|
const globalCSS = ["bootstrap.css"].map(
|
|
317520
317521
|
(url3) => `<link rel="stylesheet" href="${expandGlobalPath(url3)}" />`
|
|
317521
317522
|
).join("\n");
|
|
317523
|
+
const head6 = `
|
|
317524
|
+
${globalCSS}
|
|
317525
|
+
${opts.debug?.reactDevTools ? '<script src="http://localhost:8097"></script>' : ""}
|
|
317526
|
+
`;
|
|
317522
317527
|
const globalJS = ["bootstrap.js"].map(
|
|
317523
317528
|
(url3) => `<script src="${expandGlobalPath(url3)}"></script>`
|
|
317524
317529
|
).join("\n");
|
|
@@ -317552,7 +317557,7 @@ async function* generateStaticSiteAssets(versions, currentVersionID, opts) {
|
|
|
317552
317557
|
reportProgress: versionSubtask,
|
|
317553
317558
|
reportNotice: versionNotice
|
|
317554
317559
|
},
|
|
317555
|
-
{ htmlAttrs, head:
|
|
317560
|
+
{ htmlAttrs, head: head6, tail: globalJS },
|
|
317556
317561
|
function expandVersionedPath(versionRelativePath) {
|
|
317557
317562
|
const isNonSlashPrepended = !versionRelativePath.startsWith("/");
|
|
317558
317563
|
if (isNonSlashPrepended) {
|
|
@@ -321955,7 +321960,11 @@ var build2 = Command_exports2.make(
|
|
|
321955
321960
|
currentRevision: unpackOption(currentRevision)
|
|
321956
321961
|
}, (task, progress) => onProgress(`build site|${task}`, progress), {
|
|
321957
321962
|
pathPrefix: prefix,
|
|
321958
|
-
|
|
321963
|
+
debug: {
|
|
321964
|
+
dumpCache: debug3 || false,
|
|
321965
|
+
reactDevTools: debug3 || false,
|
|
321966
|
+
reactStrictMode: debug3 || false
|
|
321967
|
+
}
|
|
321959
321968
|
});
|
|
321960
321969
|
const [writeProgress, writingSubtask] = onProgress("build site|write files");
|
|
321961
321970
|
for await (const blobchunk of generator) {
|
|
@@ -322167,6 +322176,10 @@ async function* generateSite(revisionsToBuild, onProgress, opts) {
|
|
|
322167
322176
|
},
|
|
322168
322177
|
getDOMStub: () => new import_jsdom2.JSDOM("<html></html>").window.document,
|
|
322169
322178
|
cache: cache3,
|
|
322179
|
+
debug: {
|
|
322180
|
+
reactStrictMode: opts?.debug?.reactStrictMode || false,
|
|
322181
|
+
reactDevTools: opts?.debug?.reactDevTools || false
|
|
322182
|
+
},
|
|
322170
322183
|
pathPrefix: opts?.pathPrefix,
|
|
322171
322184
|
decodeXML: (blob) => new import_jsdom2.JSDOM(
|
|
322172
322185
|
decoder3.decode(blob).replace("xmlns", "wtf"),
|
|
@@ -322177,7 +322190,7 @@ async function* generateSite(revisionsToBuild, onProgress, opts) {
|
|
|
322177
322190
|
}
|
|
322178
322191
|
);
|
|
322179
322192
|
} finally {
|
|
322180
|
-
if (opts?.dumpCache) {
|
|
322193
|
+
if (opts?.debug?.dumpCache) {
|
|
322181
322194
|
try {
|
|
322182
322195
|
fs4.writeFileSync(
|
|
322183
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
|