mystmd 1.6.1__tar.gz → 1.6.2__tar.gz
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.
- {mystmd-1.6.1 → mystmd-1.6.2}/PKG-INFO +1 -1
- {mystmd-1.6.1 → mystmd-1.6.2}/_package.json +2 -2
- {mystmd-1.6.1 → mystmd-1.6.2}/src/mystmd_py/myst.cjs +155 -106
- {mystmd-1.6.1 → mystmd-1.6.2}/.gitignore +0 -0
- {mystmd-1.6.1 → mystmd-1.6.2}/LICENSE +0 -0
- {mystmd-1.6.1 → mystmd-1.6.2}/README.md +0 -0
- {mystmd-1.6.1 → mystmd-1.6.2}/pyproject.toml +0 -0
- {mystmd-1.6.1 → mystmd-1.6.2}/src/mystmd_py/__init__.py +0 -0
- {mystmd-1.6.1 → mystmd-1.6.2}/src/mystmd_py/main.py +0 -0
- {mystmd-1.6.1 → mystmd-1.6.2}/src/mystmd_py/nodeenv.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mystmd",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.2",
|
4
4
|
"description": "Command line tools for MyST Markdown",
|
5
5
|
"author": "Rowan Cockett <rowan@curvenote.com>",
|
6
6
|
"license": "MIT",
|
@@ -45,6 +45,6 @@
|
|
45
45
|
"commander": "^10.0.1",
|
46
46
|
"core-js": "^3.31.1",
|
47
47
|
"js-yaml": "^4.1.0",
|
48
|
-
"myst-cli": "^1.6.
|
48
|
+
"myst-cli": "^1.6.2"
|
49
49
|
}
|
50
50
|
}
|
@@ -884,7 +884,7 @@ var require_make_built_in = __commonJS({
|
|
884
884
|
var defineProperty = Object.defineProperty;
|
885
885
|
var stringSlice = uncurryThis("".slice);
|
886
886
|
var replace = uncurryThis("".replace);
|
887
|
-
var
|
887
|
+
var join19 = uncurryThis([].join);
|
888
888
|
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() {
|
889
889
|
return defineProperty(function() {
|
890
890
|
}, "length", { value: 8 }).length !== 8;
|
@@ -917,7 +917,7 @@ var require_make_built_in = __commonJS({
|
|
917
917
|
}
|
918
918
|
var state = enforceInternalState(value);
|
919
919
|
if (!hasOwn(state, "source")) {
|
920
|
-
state.source =
|
920
|
+
state.source = join19(TEMPLATE, typeof name3 == "string" ? name3 : "");
|
921
921
|
}
|
922
922
|
return value;
|
923
923
|
};
|
@@ -3920,7 +3920,7 @@ var require_es_array_join = __commonJS({
|
|
3920
3920
|
var ES3_STRINGS = IndexedObject != Object;
|
3921
3921
|
var FORCED = ES3_STRINGS || !arrayMethodIsStrict("join", ",");
|
3922
3922
|
$2({ target: "Array", proto: true, forced: FORCED }, {
|
3923
|
-
join: function
|
3923
|
+
join: function join19(separator) {
|
3924
3924
|
return nativeJoin(toIndexedObject(this), separator === void 0 ? "," : separator);
|
3925
3925
|
}
|
3926
3926
|
});
|
@@ -5796,13 +5796,13 @@ var require_function_bind = __commonJS({
|
|
5796
5796
|
var NATIVE_BIND = require_function_bind_native();
|
5797
5797
|
var $Function = Function;
|
5798
5798
|
var concat2 = uncurryThis([].concat);
|
5799
|
-
var
|
5799
|
+
var join19 = uncurryThis([].join);
|
5800
5800
|
var factories = {};
|
5801
5801
|
var construct = function(C, argsLength, args) {
|
5802
5802
|
if (!hasOwn(factories, argsLength)) {
|
5803
5803
|
for (var list6 = [], i2 = 0; i2 < argsLength; i2++)
|
5804
5804
|
list6[i2] = "a[" + i2 + "]";
|
5805
|
-
factories[argsLength] = $Function("C,a", "return new C(" +
|
5805
|
+
factories[argsLength] = $Function("C,a", "return new C(" + join19(list6, ",") + ")");
|
5806
5806
|
}
|
5807
5807
|
return factories[argsLength](C, args);
|
5808
5808
|
};
|
@@ -9991,7 +9991,7 @@ var require_es_string_from_code_point = __commonJS({
|
|
9991
9991
|
var $RangeError = RangeError;
|
9992
9992
|
var fromCharCode = String.fromCharCode;
|
9993
9993
|
var $fromCodePoint = String.fromCodePoint;
|
9994
|
-
var
|
9994
|
+
var join19 = uncurryThis([].join);
|
9995
9995
|
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;
|
9996
9996
|
$2({ target: "String", stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
|
9997
9997
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
@@ -10006,7 +10006,7 @@ var require_es_string_from_code_point = __commonJS({
|
|
10006
10006
|
throw $RangeError(code7 + " is not a valid code point");
|
10007
10007
|
elements[i2] = code7 < 65536 ? fromCharCode(code7) : fromCharCode(((code7 -= 65536) >> 10) + 55296, code7 % 1024 + 56320);
|
10008
10008
|
}
|
10009
|
-
return
|
10009
|
+
return join19(elements, "");
|
10010
10010
|
}
|
10011
10011
|
});
|
10012
10012
|
}
|
@@ -10397,7 +10397,7 @@ var require_es_string_raw = __commonJS({
|
|
10397
10397
|
var toString6 = require_to_string();
|
10398
10398
|
var lengthOfArrayLike = require_length_of_array_like();
|
10399
10399
|
var push = uncurryThis([].push);
|
10400
|
-
var
|
10400
|
+
var join19 = uncurryThis([].join);
|
10401
10401
|
$2({ target: "String", stat: true }, {
|
10402
10402
|
raw: function raw2(template) {
|
10403
10403
|
var rawTemplate = toIndexedObject(toObject(template).raw);
|
@@ -10410,7 +10410,7 @@ var require_es_string_raw = __commonJS({
|
|
10410
10410
|
while (true) {
|
10411
10411
|
push(elements, toString6(rawTemplate[i2++]));
|
10412
10412
|
if (i2 === literalSegments)
|
10413
|
-
return
|
10413
|
+
return join19(elements, "");
|
10414
10414
|
if (i2 < argumentsLength)
|
10415
10415
|
push(elements, toString6(arguments[i2]));
|
10416
10416
|
}
|
@@ -10940,7 +10940,7 @@ var require_es_string_to_well_formed = __commonJS({
|
|
10940
10940
|
var $Array = Array;
|
10941
10941
|
var charAt = uncurryThis("".charAt);
|
10942
10942
|
var charCodeAt = uncurryThis("".charCodeAt);
|
10943
|
-
var
|
10943
|
+
var join19 = uncurryThis([].join);
|
10944
10944
|
var $toWellFormed = "".toWellFormed;
|
10945
10945
|
var REPLACEMENT_CHARACTER2 = "\uFFFD";
|
10946
10946
|
var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function() {
|
@@ -10964,7 +10964,7 @@ var require_es_string_to_well_formed = __commonJS({
|
|
10964
10964
|
result[++i2] = charAt(S3, i2);
|
10965
10965
|
}
|
10966
10966
|
}
|
10967
|
-
return
|
10967
|
+
return join19(result, "");
|
10968
10968
|
}
|
10969
10969
|
});
|
10970
10970
|
}
|
@@ -12021,7 +12021,7 @@ var require_es_typed_array_join = __commonJS({
|
|
12021
12021
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
12022
12022
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
12023
12023
|
var $join = uncurryThis([].join);
|
12024
|
-
exportTypedArrayMethod("join", function
|
12024
|
+
exportTypedArrayMethod("join", function join19(separator) {
|
12025
12025
|
return $join(aTypedArray(this), separator);
|
12026
12026
|
});
|
12027
12027
|
}
|
@@ -12392,12 +12392,12 @@ var require_es_typed_array_to_string = __commonJS({
|
|
12392
12392
|
var Uint8Array2 = global2.Uint8Array;
|
12393
12393
|
var Uint8ArrayPrototype = Uint8Array2 && Uint8Array2.prototype || {};
|
12394
12394
|
var arrayToString = [].toString;
|
12395
|
-
var
|
12395
|
+
var join19 = uncurryThis([].join);
|
12396
12396
|
if (fails(function() {
|
12397
12397
|
arrayToString.call({});
|
12398
12398
|
})) {
|
12399
12399
|
arrayToString = function toString6() {
|
12400
|
-
return
|
12400
|
+
return join19(this);
|
12401
12401
|
};
|
12402
12402
|
}
|
12403
12403
|
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
|
@@ -14085,7 +14085,7 @@ var require_string_punycode_to_ascii = __commonJS({
|
|
14085
14085
|
var floor = Math.floor;
|
14086
14086
|
var fromCharCode = String.fromCharCode;
|
14087
14087
|
var charCodeAt = uncurryThis("".charCodeAt);
|
14088
|
-
var
|
14088
|
+
var join19 = uncurryThis([].join);
|
14089
14089
|
var push = uncurryThis([].push);
|
14090
14090
|
var replace = uncurryThis("".replace);
|
14091
14091
|
var split2 = uncurryThis("".split);
|
@@ -14183,7 +14183,7 @@ var require_string_punycode_to_ascii = __commonJS({
|
|
14183
14183
|
delta++;
|
14184
14184
|
n++;
|
14185
14185
|
}
|
14186
|
-
return
|
14186
|
+
return join19(output2, "");
|
14187
14187
|
};
|
14188
14188
|
module2.exports = function(input3) {
|
14189
14189
|
var encoded = [];
|
@@ -14193,7 +14193,7 @@ var require_string_punycode_to_ascii = __commonJS({
|
|
14193
14193
|
label = labels[i2];
|
14194
14194
|
push(encoded, exec3(regexNonASCII, label) ? "xn--" + encode(label) : label);
|
14195
14195
|
}
|
14196
|
-
return
|
14196
|
+
return join19(encoded, ".");
|
14197
14197
|
};
|
14198
14198
|
}
|
14199
14199
|
});
|
@@ -14253,7 +14253,7 @@ var require_web_url_search_params_constructor = __commonJS({
|
|
14253
14253
|
var decodeURIComponent2 = global2.decodeURIComponent;
|
14254
14254
|
var encodeURIComponent2 = global2.encodeURIComponent;
|
14255
14255
|
var charAt = uncurryThis("".charAt);
|
14256
|
-
var
|
14256
|
+
var join19 = uncurryThis([].join);
|
14257
14257
|
var push = uncurryThis([].push);
|
14258
14258
|
var replace = uncurryThis("".replace);
|
14259
14259
|
var shift = uncurryThis([].shift);
|
@@ -14361,7 +14361,7 @@ var require_web_url_search_params_constructor = __commonJS({
|
|
14361
14361
|
entry = split2(attribute2, "=");
|
14362
14362
|
push(this.entries, {
|
14363
14363
|
key: deserialize(shift(entry)),
|
14364
|
-
value: deserialize(
|
14364
|
+
value: deserialize(join19(entry, "="))
|
14365
14365
|
});
|
14366
14366
|
}
|
14367
14367
|
}
|
@@ -14376,7 +14376,7 @@ var require_web_url_search_params_constructor = __commonJS({
|
|
14376
14376
|
entry = entries2[index4++];
|
14377
14377
|
push(result, serialize3(entry.key) + "=" + serialize3(entry.value));
|
14378
14378
|
}
|
14379
|
-
return
|
14379
|
+
return join19(result, "&");
|
14380
14380
|
},
|
14381
14381
|
update: function() {
|
14382
14382
|
this.entries.length = 0;
|
@@ -14635,7 +14635,7 @@ var require_web_url_constructor = __commonJS({
|
|
14635
14635
|
var pow = Math.pow;
|
14636
14636
|
var charAt = uncurryThis("".charAt);
|
14637
14637
|
var exec3 = uncurryThis(/./.exec);
|
14638
|
-
var
|
14638
|
+
var join19 = uncurryThis([].join);
|
14639
14639
|
var numberToString = uncurryThis(1 .toString);
|
14640
14640
|
var pop = uncurryThis([].pop);
|
14641
14641
|
var push = uncurryThis([].push);
|
@@ -14828,7 +14828,7 @@ var require_web_url_constructor = __commonJS({
|
|
14828
14828
|
unshift(result, host % 256);
|
14829
14829
|
host = floor(host / 256);
|
14830
14830
|
}
|
14831
|
-
return
|
14831
|
+
return join19(result, ".");
|
14832
14832
|
} else if (typeof host == "object") {
|
14833
14833
|
result = "";
|
14834
14834
|
compress = findLongestZeroSequence(host);
|
@@ -15219,7 +15219,7 @@ var require_web_url_constructor = __commonJS({
|
|
15219
15219
|
url.fragment = "";
|
15220
15220
|
state = FRAGMENT;
|
15221
15221
|
} else {
|
15222
|
-
if (!startsWithWindowsDriveLetter(
|
15222
|
+
if (!startsWithWindowsDriveLetter(join19(arraySlice(codePoints, pointer), ""))) {
|
15223
15223
|
url.host = base5.host;
|
15224
15224
|
url.path = arraySlice(base5.path);
|
15225
15225
|
url.shortenPath();
|
@@ -15237,7 +15237,7 @@ var require_web_url_constructor = __commonJS({
|
|
15237
15237
|
state = FILE_HOST;
|
15238
15238
|
break;
|
15239
15239
|
}
|
15240
|
-
if (base5 && base5.scheme == "file" && !startsWithWindowsDriveLetter(
|
15240
|
+
if (base5 && base5.scheme == "file" && !startsWithWindowsDriveLetter(join19(arraySlice(codePoints, pointer), ""))) {
|
15241
15241
|
if (isWindowsDriveLetter(base5.path[0], true))
|
15242
15242
|
push(url.path, base5.path[0]);
|
15243
15243
|
else
|
@@ -15425,7 +15425,7 @@ var require_web_url_constructor = __commonJS({
|
|
15425
15425
|
output2 += ":" + port;
|
15426
15426
|
} else if (scheme == "file")
|
15427
15427
|
output2 += "//";
|
15428
|
-
output2 += url.cannotBeABaseURL ? path44[0] : path44.length ? "/" +
|
15428
|
+
output2 += url.cannotBeABaseURL ? path44[0] : path44.length ? "/" + join19(path44, "/") : "";
|
15429
15429
|
if (query !== null)
|
15430
15430
|
output2 += "?" + query;
|
15431
15431
|
if (fragment !== null)
|
@@ -15524,7 +15524,7 @@ var require_web_url_constructor = __commonJS({
|
|
15524
15524
|
// https://url.spec.whatwg.org/#dom-url-pathname
|
15525
15525
|
getPathname: function() {
|
15526
15526
|
var path44 = this.path;
|
15527
|
-
return this.cannotBeABaseURL ? path44[0] : path44.length ? "/" +
|
15527
|
+
return this.cannotBeABaseURL ? path44[0] : path44.length ? "/" + join19(path44, "/") : "";
|
15528
15528
|
},
|
15529
15529
|
setPathname: function(pathname) {
|
15530
15530
|
if (this.cannotBeABaseURL)
|
@@ -47025,7 +47025,7 @@ var require_util2 = __commonJS({
|
|
47025
47025
|
return path44;
|
47026
47026
|
});
|
47027
47027
|
exports2.normalize = normalize6;
|
47028
|
-
function
|
47028
|
+
function join19(aRoot, aPath) {
|
47029
47029
|
if (aRoot === "") {
|
47030
47030
|
aRoot = ".";
|
47031
47031
|
}
|
@@ -47057,7 +47057,7 @@ var require_util2 = __commonJS({
|
|
47057
47057
|
}
|
47058
47058
|
return joined;
|
47059
47059
|
}
|
47060
|
-
exports2.join =
|
47060
|
+
exports2.join = join19;
|
47061
47061
|
exports2.isAbsolute = function(aPath) {
|
47062
47062
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
47063
47063
|
};
|
@@ -47271,7 +47271,7 @@ var require_util2 = __commonJS({
|
|
47271
47271
|
parsed.path = parsed.path.substring(0, index4 + 1);
|
47272
47272
|
}
|
47273
47273
|
}
|
47274
|
-
sourceURL =
|
47274
|
+
sourceURL = join19(urlGenerate(parsed), sourceURL);
|
47275
47275
|
}
|
47276
47276
|
return normalize6(sourceURL);
|
47277
47277
|
}
|
@@ -48713,7 +48713,7 @@ var require_previous_map = __commonJS({
|
|
48713
48713
|
"../../node_modules/postcss/lib/previous-map.js"(exports2, module2) {
|
48714
48714
|
"use strict";
|
48715
48715
|
var { existsSync: existsSync2, readFileSync: readFileSync2 } = require("fs");
|
48716
|
-
var { dirname: dirname8, join:
|
48716
|
+
var { dirname: dirname8, join: join19 } = require("path");
|
48717
48717
|
var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
|
48718
48718
|
function fromBase64(str2) {
|
48719
48719
|
if (Buffer) {
|
@@ -48818,7 +48818,7 @@ var require_previous_map = __commonJS({
|
|
48818
48818
|
} else if (this.annotation) {
|
48819
48819
|
let map14 = this.annotation;
|
48820
48820
|
if (file)
|
48821
|
-
map14 =
|
48821
|
+
map14 = join19(dirname8(file), map14);
|
48822
48822
|
return this.loadFile(map14);
|
48823
48823
|
}
|
48824
48824
|
}
|
@@ -91208,7 +91208,7 @@ var require_isexe = __commonJS({
|
|
91208
91208
|
var require_lib15 = __commonJS({
|
91209
91209
|
"../../node_modules/which/lib/index.js"(exports2, module2) {
|
91210
91210
|
var isexe = require_isexe();
|
91211
|
-
var { join:
|
91211
|
+
var { join: join19, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
|
91212
91212
|
var isWindows = process.platform === "win32";
|
91213
91213
|
var rSlash = new RegExp(`[${posix2.sep}${sep5 === posix2.sep ? "" : sep5}]`.replace(/(\\)/g, "\\$1"));
|
91214
91214
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
@@ -91241,7 +91241,7 @@ var require_lib15 = __commonJS({
|
|
91241
91241
|
var getPathPart = (raw2, cmd) => {
|
91242
91242
|
const pathPart = /^".*"$/.test(raw2) ? raw2.slice(1, -1) : raw2;
|
91243
91243
|
const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
|
91244
|
-
return prefix2 +
|
91244
|
+
return prefix2 + join19(pathPart, cmd);
|
91245
91245
|
};
|
91246
91246
|
var which8 = async (cmd, opt = {}) => {
|
91247
91247
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
@@ -97912,8 +97912,8 @@ var require_adm_zip = __commonJS({
|
|
97912
97912
|
return null;
|
97913
97913
|
}
|
97914
97914
|
function fixPath(zipPath) {
|
97915
|
-
const { join:
|
97916
|
-
return
|
97915
|
+
const { join: join19, normalize: normalize6, sep: sep5 } = pth.posix;
|
97916
|
+
return join19(".", normalize6(sep5 + zipPath.split("\\").join(sep5) + sep5));
|
97917
97917
|
}
|
97918
97918
|
return {
|
97919
97919
|
/**
|
@@ -98806,7 +98806,7 @@ var require_cjs2 = __commonJS({
|
|
98806
98806
|
var require_lib16 = __commonJS({
|
98807
98807
|
"../myst-execute/node_modules/which/lib/index.js"(exports2, module2) {
|
98808
98808
|
var { isexe, sync: isexeSync } = require_cjs2();
|
98809
|
-
var { join:
|
98809
|
+
var { join: join19, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
|
98810
98810
|
var isWindows = process.platform === "win32";
|
98811
98811
|
var rSlash = new RegExp(`[${posix2.sep}${sep5 === posix2.sep ? "" : sep5}]`.replace(/(\\)/g, "\\$1"));
|
98812
98812
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
@@ -98835,7 +98835,7 @@ var require_lib16 = __commonJS({
|
|
98835
98835
|
var getPathPart = (raw2, cmd) => {
|
98836
98836
|
const pathPart = /^".*"$/.test(raw2) ? raw2.slice(1, -1) : raw2;
|
98837
98837
|
const prefix2 = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
|
98838
|
-
return prefix2 +
|
98838
|
+
return prefix2 + join19(pathPart, cmd);
|
98839
98839
|
};
|
98840
98840
|
var which8 = async (cmd, opt = {}) => {
|
98841
98841
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
@@ -108055,7 +108055,7 @@ var require_filters = __commonJS({
|
|
108055
108055
|
return r2.copySafeness(str2, res);
|
108056
108056
|
}
|
108057
108057
|
_exports.indent = indent2;
|
108058
|
-
function
|
108058
|
+
function join19(arr, del2, attr) {
|
108059
108059
|
del2 = del2 || "";
|
108060
108060
|
if (attr) {
|
108061
108061
|
arr = lib.map(arr, function(v) {
|
@@ -108064,7 +108064,7 @@ var require_filters = __commonJS({
|
|
108064
108064
|
}
|
108065
108065
|
return arr.join(del2);
|
108066
108066
|
}
|
108067
|
-
_exports.join =
|
108067
|
+
_exports.join = join19;
|
108068
108068
|
function last(arr) {
|
108069
108069
|
return arr[arr.length - 1];
|
108070
108070
|
}
|
@@ -134304,7 +134304,7 @@ var require_view = __commonJS({
|
|
134304
134304
|
var dirname8 = path44.dirname;
|
134305
134305
|
var basename4 = path44.basename;
|
134306
134306
|
var extname8 = path44.extname;
|
134307
|
-
var
|
134307
|
+
var join19 = path44.join;
|
134308
134308
|
var resolve9 = path44.resolve;
|
134309
134309
|
module2.exports = View;
|
134310
134310
|
function View(name3, options) {
|
@@ -134352,12 +134352,12 @@ var require_view = __commonJS({
|
|
134352
134352
|
};
|
134353
134353
|
View.prototype.resolve = function resolve10(dir, file) {
|
134354
134354
|
var ext2 = this.ext;
|
134355
|
-
var path45 =
|
134355
|
+
var path45 = join19(dir, file);
|
134356
134356
|
var stat2 = tryStat(path45);
|
134357
134357
|
if (stat2 && stat2.isFile()) {
|
134358
134358
|
return path45;
|
134359
134359
|
}
|
134360
|
-
path45 =
|
134360
|
+
path45 = join19(dir, basename4(file, ext2), "index" + ext2);
|
134361
134361
|
stat2 = tryStat(path45);
|
134362
134362
|
if (stat2 && stat2.isFile()) {
|
134363
134363
|
return path45;
|
@@ -135438,7 +135438,7 @@ var require_send = __commonJS({
|
|
135438
135438
|
var Stream4 = require("stream");
|
135439
135439
|
var util4 = require("util");
|
135440
135440
|
var extname8 = path44.extname;
|
135441
|
-
var
|
135441
|
+
var join19 = path44.join;
|
135442
135442
|
var normalize6 = path44.normalize;
|
135443
135443
|
var resolve9 = path44.resolve;
|
135444
135444
|
var sep5 = path44.sep;
|
@@ -135657,7 +135657,7 @@ var require_send = __commonJS({
|
|
135657
135657
|
return res;
|
135658
135658
|
}
|
135659
135659
|
parts = path45.split(sep5);
|
135660
|
-
path45 = normalize6(
|
135660
|
+
path45 = normalize6(join19(root6, path45));
|
135661
135661
|
} else {
|
135662
135662
|
if (UP_PATH_REGEXP.test(path45)) {
|
135663
135663
|
debug('malicious path "%s"', path45);
|
@@ -135798,7 +135798,7 @@ var require_send = __commonJS({
|
|
135798
135798
|
return self2.onStatError(err);
|
135799
135799
|
return self2.error(404);
|
135800
135800
|
}
|
135801
|
-
var p5 =
|
135801
|
+
var p5 = join19(path45, self2._index[i2]);
|
135802
135802
|
debug('stat "%s"', p5);
|
135803
135803
|
fs50.stat(p5, function(err2, stat2) {
|
135804
135804
|
if (err2)
|
@@ -162378,7 +162378,7 @@ var require_buffer_list = __commonJS({
|
|
162378
162378
|
}
|
162379
162379
|
}, {
|
162380
162380
|
key: "join",
|
162381
|
-
value: function
|
162381
|
+
value: function join19(s5) {
|
162382
162382
|
if (this.length === 0)
|
162383
162383
|
return "";
|
162384
162384
|
var p5 = this.head;
|
@@ -175899,7 +175899,7 @@ var require_minimist = __commonJS({
|
|
175899
175899
|
var require_rc = __commonJS({
|
175900
175900
|
"../../node_modules/rc/index.js"(exports2, module2) {
|
175901
175901
|
var cc = require_utils13();
|
175902
|
-
var
|
175902
|
+
var join19 = require("path").join;
|
175903
175903
|
var deepExtend = require_deep_extend();
|
175904
175904
|
var etc = "/etc";
|
175905
175905
|
var win = process.platform === "win32";
|
@@ -175925,15 +175925,15 @@ var require_rc = __commonJS({
|
|
175925
175925
|
}
|
175926
175926
|
if (!win)
|
175927
175927
|
[
|
175928
|
-
|
175929
|
-
|
175928
|
+
join19(etc, name3, "config"),
|
175929
|
+
join19(etc, name3 + "rc")
|
175930
175930
|
].forEach(addConfigFile);
|
175931
175931
|
if (home)
|
175932
175932
|
[
|
175933
|
-
|
175934
|
-
|
175935
|
-
|
175936
|
-
|
175933
|
+
join19(home, ".config", name3, "config"),
|
175934
|
+
join19(home, ".config", name3),
|
175935
|
+
join19(home, "." + name3, "config"),
|
175936
|
+
join19(home, "." + name3 + "rc")
|
175937
175937
|
].forEach(addConfigFile);
|
175938
175938
|
addConfigFile(cc.find("." + name3 + "rc"));
|
175939
175939
|
if (env7.config)
|
@@ -184116,7 +184116,7 @@ var require_url = __commonJS({
|
|
184116
184116
|
return url && parse16(url).toString();
|
184117
184117
|
}
|
184118
184118
|
URLExt2.normalize = normalize6;
|
184119
|
-
function
|
184119
|
+
function join19(...parts) {
|
184120
184120
|
let u3 = (0, url_parse_1.default)(parts[0], {});
|
184121
184121
|
const isSchemaLess = u3.protocol === "" && u3.slashes;
|
184122
184122
|
if (isSchemaLess) {
|
@@ -184126,9 +184126,9 @@ var require_url = __commonJS({
|
|
184126
184126
|
const path44 = path_1.posix.join(`${!!prefix2 && u3.pathname[0] !== "/" ? "/" : ""}${u3.pathname}`, ...parts.slice(1));
|
184127
184127
|
return `${prefix2}${path44 === "." ? "" : path44}`;
|
184128
184128
|
}
|
184129
|
-
URLExt2.join =
|
184129
|
+
URLExt2.join = join19;
|
184130
184130
|
function encodeParts(url) {
|
184131
|
-
return
|
184131
|
+
return join19(...url.split("/").map(encodeURIComponent));
|
184132
184132
|
}
|
184133
184133
|
URLExt2.encodeParts = encodeParts;
|
184134
184134
|
function objectToQueryString(value) {
|
@@ -184348,11 +184348,11 @@ var require_path2 = __commonJS({
|
|
184348
184348
|
var path_1 = require("path");
|
184349
184349
|
var PathExt;
|
184350
184350
|
(function(PathExt2) {
|
184351
|
-
function
|
184351
|
+
function join19(...paths) {
|
184352
184352
|
const path44 = path_1.posix.join(...paths);
|
184353
184353
|
return path44 === "." ? "" : removeSlash(path44);
|
184354
184354
|
}
|
184355
|
-
PathExt2.join =
|
184355
|
+
PathExt2.join = join19;
|
184356
184356
|
function joinWithLeadingSlash(...paths) {
|
184357
184357
|
const path44 = path_1.posix.join(...paths);
|
184358
184358
|
return path44 === "." ? "" : path44;
|
@@ -193391,7 +193391,7 @@ var {
|
|
193391
193391
|
} = import_index.default;
|
193392
193392
|
|
193393
193393
|
// src/version.ts
|
193394
|
-
var version = "1.6.
|
193394
|
+
var version = "1.6.2";
|
193395
193395
|
var version_default = version;
|
193396
193396
|
|
193397
193397
|
// ../myst-cli/dist/build/build.js
|
@@ -210391,16 +210391,16 @@ function collectText(node3, info) {
|
|
210391
210391
|
start = end + 1;
|
210392
210392
|
}
|
210393
210393
|
let index4 = -1;
|
210394
|
-
let
|
210394
|
+
let join19;
|
210395
210395
|
while (++index4 < lines.length) {
|
210396
210396
|
if (lines[index4].charCodeAt(lines[index4].length - 1) === 8203 || index4 < lines.length - 1 && lines[index4 + 1].charCodeAt(0) === 8203) {
|
210397
210397
|
result.push(lines[index4]);
|
210398
|
-
|
210398
|
+
join19 = void 0;
|
210399
210399
|
} else if (lines[index4]) {
|
210400
|
-
if (typeof
|
210401
|
-
result.push(
|
210400
|
+
if (typeof join19 === "number")
|
210401
|
+
result.push(join19);
|
210402
210402
|
result.push(lines[index4]);
|
210403
|
-
|
210403
|
+
join19 = 0;
|
210404
210404
|
} else if (index4 === 0 || index4 === lines.length - 1) {
|
210405
210405
|
result.push(0);
|
210406
210406
|
}
|
@@ -290066,7 +290066,7 @@ var import_mime_types = __toESM(require_mime_types(), 1);
|
|
290066
290066
|
var import_node_path16 = __toESM(require("path"), 1);
|
290067
290067
|
|
290068
290068
|
// ../myst-cli/dist/version.js
|
290069
|
-
var version2 = "1.6.
|
290069
|
+
var version2 = "1.6.2";
|
290070
290070
|
var version_default2 = version2;
|
290071
290071
|
|
290072
290072
|
// ../myst-cli/dist/utils/headers.js
|
@@ -290169,14 +290169,14 @@ function notNullish(value) {
|
|
290169
290169
|
|
290170
290170
|
// ../myst-cli/dist/utils/fileInfo.js
|
290171
290171
|
var import_node_path10 = __toESM(require("path"), 1);
|
290172
|
-
function input2name(input3, allowed,
|
290173
|
-
let name3 = `\xB6${input3}`.toLowerCase().split("").map((char) => allowed.test(char) ? char : "\xB6").join("").split("").reduce((p5, n) => p5.charAt(p5.length - 1) === "\xB6" && n === "\xB6" ? p5 : p5 + n).slice(1).replace(/¶/g,
|
290174
|
-
if (
|
290175
|
-
name3 = name3.replace(new RegExp(`${
|
290172
|
+
function input2name(input3, allowed, join19) {
|
290173
|
+
let name3 = `\xB6${input3}`.toLowerCase().split("").map((char) => allowed.test(char) ? char : "\xB6").join("").split("").reduce((p5, n) => p5.charAt(p5.length - 1) === "\xB6" && n === "\xB6" ? p5 : p5 + n).slice(1).replace(/¶/g, join19);
|
290174
|
+
if (join19) {
|
290175
|
+
name3 = name3.replace(new RegExp(`${join19}+`, "g"), join19);
|
290176
290176
|
}
|
290177
|
-
if (name3.charAt(0) ===
|
290177
|
+
if (name3.charAt(0) === join19)
|
290178
290178
|
name3 = name3.slice(1);
|
290179
|
-
if (name3.charAt(name3.length - 1) ===
|
290179
|
+
if (name3.charAt(name3.length - 1) === join19)
|
290180
290180
|
name3 = name3.slice(0, name3.length - 1);
|
290181
290181
|
return name3;
|
290182
290182
|
}
|
@@ -291748,11 +291748,11 @@ function emptyConfig() {
|
|
291748
291748
|
};
|
291749
291749
|
}
|
291750
291750
|
function defaultConfigFile(session, path44) {
|
291751
|
-
return (0, import_node_path18.
|
291751
|
+
return (0, import_node_path18.resolve)(path44, session.configFiles[0]);
|
291752
291752
|
}
|
291753
291753
|
function configFromPath(session, path44) {
|
291754
291754
|
const configs = session.configFiles.map((file) => {
|
291755
|
-
return (0, import_node_path18.
|
291755
|
+
return (0, import_node_path18.resolve)(path44, file);
|
291756
291756
|
}).filter((file) => {
|
291757
291757
|
return import_node_fs13.default.existsSync(file);
|
291758
291758
|
});
|
@@ -307194,6 +307194,20 @@ var handlers3 = {
|
|
307194
307194
|
} else if ((_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6.length) {
|
307195
307195
|
state.renderChildren(node3);
|
307196
307196
|
}
|
307197
|
+
},
|
307198
|
+
toc(node3, state) {
|
307199
|
+
var _a6;
|
307200
|
+
const title = (_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6[0];
|
307201
|
+
if (title) {
|
307202
|
+
state.write("\\renewcommand{\\contentsname}{");
|
307203
|
+
state.text(toText(title));
|
307204
|
+
state.write("}\n");
|
307205
|
+
}
|
307206
|
+
if (node3.depth) {
|
307207
|
+
state.write(`\\setcounter{tocdepth}{${node3.depth}}
|
307208
|
+
`);
|
307209
|
+
}
|
307210
|
+
state.write("\\tableofcontents\n");
|
307197
307211
|
}
|
307198
307212
|
};
|
307199
307213
|
var TexSerializer = class {
|
@@ -309274,6 +309288,21 @@ ${node3.value}
|
|
309274
309288
|
state.renderChildren(node3);
|
309275
309289
|
state.write("\n]\n\n");
|
309276
309290
|
},
|
309291
|
+
toc(node3, state) {
|
309292
|
+
var _a6;
|
309293
|
+
const title = (_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6[0];
|
309294
|
+
state.write("#outline(");
|
309295
|
+
if (node3.depth) {
|
309296
|
+
state.write(`depth: ${node3.depth},
|
309297
|
+
`);
|
309298
|
+
}
|
309299
|
+
if (title) {
|
309300
|
+
state.write("title: [");
|
309301
|
+
state.text(toText(title));
|
309302
|
+
state.write("],\n");
|
309303
|
+
}
|
309304
|
+
state.write(")\n\n");
|
309305
|
+
},
|
309277
309306
|
card(node3, state) {
|
309278
309307
|
var _a6;
|
309279
309308
|
if (node3.url) {
|
@@ -317138,7 +317167,7 @@ var handle5 = {
|
|
317138
317167
|
};
|
317139
317168
|
|
317140
317169
|
// ../../node_modules/mdast-util-to-markdown/lib/join.js
|
317141
|
-
var
|
317170
|
+
var join13 = [joinDefaults];
|
317142
317171
|
function joinDefaults(left2, right2, parent2, state) {
|
317143
317172
|
if (right2.type === "code" && formatCodeAsIndented(right2, state) && (left2.type === "list" || left2.type === right2.type && formatCodeAsIndented(left2, state))) {
|
317144
317173
|
return false;
|
@@ -317310,7 +317339,7 @@ function toMarkdown(tree, options = {}) {
|
|
317310
317339
|
// @ts-expect-error: we’ll add `handle` later.
|
317311
317340
|
handle: void 0
|
317312
317341
|
};
|
317313
|
-
configure(state, { unsafe, join:
|
317342
|
+
configure(state, { unsafe, join: join13, handlers: handle5 });
|
317314
317343
|
configure(state, options);
|
317315
317344
|
if (state.options.tightDefinitions) {
|
317316
317345
|
configure(state, { join: [joinDefinition] });
|
@@ -318465,7 +318494,7 @@ var import_websocket = __toESM(require_websocket(), 1);
|
|
318465
318494
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
318466
318495
|
|
318467
318496
|
// ../myst-cli/dist/build/site/logger.js
|
318468
|
-
function createServerLogger(session,
|
318497
|
+
function createServerLogger(session, opts) {
|
318469
318498
|
const logger = {
|
318470
318499
|
debug(data) {
|
318471
318500
|
var _a6;
|
@@ -318477,8 +318506,8 @@ function createServerLogger(session, ready) {
|
|
318477
318506
|
if (line2.includes("started at http://")) {
|
318478
318507
|
const [, ipAndPort] = line2.split("http://");
|
318479
318508
|
const port = ipAndPort.split(":")[1].replace(/[^0-9]/g, "");
|
318480
|
-
const local = `http
|
318481
|
-
ready();
|
318509
|
+
const local = `http://${opts.host}:${port}`;
|
318510
|
+
opts.ready();
|
318482
318511
|
session.log.info(`
|
318483
318512
|
\u{1F50C} Server started on port ${port}! \u{1F973} \u{1F389}
|
318484
318513
|
|
@@ -318664,9 +318693,11 @@ function watchContent(session, serverReload, opts) {
|
|
318664
318693
|
}
|
318665
318694
|
|
318666
318695
|
// ../myst-cli/dist/build/site/start.js
|
318696
|
+
var DEFAULT_HOST = "localhost";
|
318667
318697
|
var DEFAULT_START_COMMAND = "npm run start";
|
318668
318698
|
async function startContentServer(session, opts) {
|
318669
318699
|
var _a6;
|
318700
|
+
const host = (opts === null || opts === void 0 ? void 0 : opts.serverHost) || DEFAULT_HOST;
|
318670
318701
|
const port = (_a6 = opts === null || opts === void 0 ? void 0 : opts.serverPort) !== null && _a6 !== void 0 ? _a6 : await getPorts({ port: portNumbers(3100, 3200) });
|
318671
318702
|
const app = (0, import_express.default)();
|
318672
318703
|
app.use((0, import_cors.default)());
|
@@ -318674,7 +318705,7 @@ async function startContentServer(session, opts) {
|
|
318674
318705
|
res.json({
|
318675
318706
|
version: version_default2,
|
318676
318707
|
links: {
|
318677
|
-
site: `http
|
318708
|
+
site: `http://${host}:${port}/config.json`
|
318678
318709
|
}
|
318679
318710
|
});
|
318680
318711
|
});
|
@@ -318684,7 +318715,7 @@ async function startContentServer(session, opts) {
|
|
318684
318715
|
app.use("/objects.inv", import_express.default.static((0, import_node_path56.join)(session.sitePath(), "objects.inv")));
|
318685
318716
|
app.use("/myst.xref.json", import_express.default.static((0, import_node_path56.join)(session.sitePath(), "myst.xref.json")));
|
318686
318717
|
app.use("/myst.search.json", import_express.default.static((0, import_node_path56.join)(session.sitePath(), "myst.search.json")));
|
318687
|
-
const server = app.listen(port, () => {
|
318718
|
+
const server = app.listen(port, host, () => {
|
318688
318719
|
session.log.debug(`Content server listening on port ${port}`);
|
318689
318720
|
});
|
318690
318721
|
const wss = new import_websocket_server.default({
|
@@ -318717,37 +318748,39 @@ async function startContentServer(session, opts) {
|
|
318717
318748
|
server.close();
|
318718
318749
|
wss.close();
|
318719
318750
|
};
|
318720
|
-
return { port, reload, log, stop };
|
318751
|
+
return { host, port, reload, log, stop };
|
318721
318752
|
}
|
318722
318753
|
function warnOnHostEnvironmentVariable(session, opts) {
|
318723
|
-
if (process.env.HOST
|
318724
|
-
|
318725
|
-
|
318754
|
+
if (!process.env.HOST || process.env.HOST === "localhost" || process.env.HOST === "127.0.0.1") {
|
318755
|
+
return process.env.HOST || DEFAULT_HOST;
|
318756
|
+
}
|
318757
|
+
if (opts === null || opts === void 0 ? void 0 : opts.keepHost) {
|
318758
|
+
session.log.warn(`
|
318726
318759
|
The HOST environment variable is set to "${process.env.HOST}", this may cause issues for the web server.
|
318727
318760
|
`);
|
318728
|
-
|
318729
|
-
|
318730
|
-
|
318761
|
+
return process.env.HOST;
|
318762
|
+
}
|
318763
|
+
session.log.warn(`
|
318764
|
+
The HOST environment variable is set to "${process.env.HOST}", we are overwriting this to "${DEFAULT_HOST}".
|
318731
318765
|
To keep this value use the \`--keep-host\` flag.
|
318732
318766
|
`);
|
318733
|
-
|
318734
|
-
|
318735
|
-
}
|
318767
|
+
process.env.HOST = DEFAULT_HOST;
|
318768
|
+
return DEFAULT_HOST;
|
318736
318769
|
}
|
318737
318770
|
async function startServer(session, opts) {
|
318738
318771
|
var _a6;
|
318739
318772
|
await session.reload();
|
318740
|
-
warnOnHostEnvironmentVariable(session, opts);
|
318773
|
+
const host = warnOnHostEnvironmentVariable(session, opts);
|
318741
318774
|
const mystTemplate = await getSiteTemplate(session, opts);
|
318742
318775
|
if (!opts.headless && !opts.template)
|
318743
318776
|
await installSiteTemplate(session, mystTemplate);
|
318744
318777
|
await buildSite(session, opts);
|
318745
|
-
const server = await startContentServer(session, opts);
|
318778
|
+
const server = await startContentServer(session, { ...opts, serverHost: host });
|
318746
318779
|
if (!opts.buildStatic) {
|
318747
318780
|
watchContent(session, server.reload, opts);
|
318748
318781
|
}
|
318749
318782
|
if (opts.headless) {
|
318750
|
-
const local = source_default.green(`http
|
318783
|
+
const local = source_default.green(`http://${host}:${server.port}`);
|
318751
318784
|
session.log.info(`
|
318752
318785
|
\u{1F50C} Content server started on port ${server.port}! \u{1F973} \u{1F389}
|
318753
318786
|
|
@@ -318766,10 +318799,11 @@ async function startServer(session, opts) {
|
|
318766
318799
|
const appServer = { port };
|
318767
318800
|
await new Promise((resolve9) => {
|
318768
318801
|
var _a7, _b;
|
318769
|
-
const start = makeExecutable((_b = (_a7 = mystTemplate.getValidatedTemplateYml().build) === null || _a7 === void 0 ? void 0 : _a7.start) !== null && _b !== void 0 ? _b : DEFAULT_START_COMMAND, createServerLogger(session, resolve9), {
|
318802
|
+
const start = makeExecutable((_b = (_a7 = mystTemplate.getValidatedTemplateYml().build) === null || _a7 === void 0 ? void 0 : _a7.start) !== null && _b !== void 0 ? _b : DEFAULT_START_COMMAND, createServerLogger(session, { host, ready: resolve9 }), {
|
318770
318803
|
cwd: mystTemplate.templatePath,
|
318771
318804
|
env: {
|
318772
318805
|
...process.env,
|
318806
|
+
HOST: host,
|
318773
318807
|
CONTENT_CDN_PORT: String(server.port),
|
318774
318808
|
PORT: String(port),
|
318775
318809
|
MODE: opts.buildStatic ? "static" : "app",
|
@@ -318791,14 +318825,20 @@ async function startServer(session, opts) {
|
|
318791
318825
|
// ../myst-cli/dist/build/html/index.js
|
318792
318826
|
var import_p_limit2 = __toESM(require_p_limit(), 1);
|
318793
318827
|
var limitConnections = (0, import_p_limit2.default)(5);
|
318794
|
-
async function currentSiteRoutes(session, host, baseurl
|
318828
|
+
async function currentSiteRoutes(session, host, baseurl) {
|
318795
318829
|
var _a6, _b;
|
318796
|
-
const
|
318797
|
-
|
318830
|
+
const state = session.store.getState();
|
318831
|
+
const siteConfig = selectors_exports.selectCurrentSiteConfig(state);
|
318832
|
+
return (_b = (_a6 = siteConfig === null || siteConfig === void 0 ? void 0 : siteConfig.projects) !== null && _a6 !== void 0 ? _a6 : []) === null || _b === void 0 ? void 0 : _b.map((proj) => {
|
318798
318833
|
var _a7, _b2;
|
318834
|
+
if (!proj.path)
|
318835
|
+
return [];
|
318836
|
+
const localProj = selectors_exports.selectLocalProject(state, proj.path);
|
318837
|
+
if (!localProj)
|
318838
|
+
return [];
|
318799
318839
|
const projSlug = proj.slug ? `/${proj.slug}` : "";
|
318800
|
-
const siteIndex = baseurl ? `/${
|
318801
|
-
const pages =
|
318840
|
+
const siteIndex = baseurl ? `/${localProj.index}` : "";
|
318841
|
+
const pages = localProj.pages.filter((page) => !!page.slug);
|
318802
318842
|
return [
|
318803
318843
|
{ url: `${host}${projSlug}${siteIndex}`, path: import_node_path57.default.join((_a7 = proj.slug) !== null && _a7 !== void 0 ? _a7 : "", "index.html") },
|
318804
318844
|
...pages.map((page) => {
|
@@ -318811,8 +318851,8 @@ async function currentSiteRoutes(session, host, baseurl, opts) {
|
|
318811
318851
|
}),
|
318812
318852
|
// Download all of the configured JSON
|
318813
318853
|
{
|
318814
|
-
url: `${host}${projSlug}/${
|
318815
|
-
path: import_node_path57.default.join((_b2 = proj.slug) !== null && _b2 !== void 0 ? _b2 : "", `${
|
318854
|
+
url: `${host}${projSlug}/${localProj.index}.json`,
|
318855
|
+
path: import_node_path57.default.join((_b2 = proj.slug) !== null && _b2 !== void 0 ? _b2 : "", `${localProj.index}.json`)
|
318816
318856
|
},
|
318817
318857
|
...pages.map((page) => {
|
318818
318858
|
var _a8;
|
@@ -318879,7 +318919,7 @@ async function buildHtml(session, opts) {
|
|
318879
318919
|
if (!appServer)
|
318880
318920
|
return;
|
318881
318921
|
const host = `http://localhost:${appServer.port}`;
|
318882
|
-
const routes = await currentSiteRoutes(session, host, baseurl
|
318922
|
+
const routes = await currentSiteRoutes(session, host, baseurl);
|
318883
318923
|
await Promise.all(routes.map(async (route) => limitConnections(async () => {
|
318884
318924
|
const resp = await fetchWithRetry(session, route.url);
|
318885
318925
|
if (!resp.ok) {
|
@@ -319003,7 +319043,7 @@ async function collectAllBuildExportOptions(session, files, opts) {
|
|
319003
319043
|
if (!format) {
|
319004
319044
|
throw new Error(`Cannot specify format from output "${output2}" - please specify format option, e.g. --pdf`);
|
319005
319045
|
}
|
319006
|
-
exportOptionsList = resolveExportListArticles(session, files[0], [{ format, output: import_node_path58.default.
|
319046
|
+
exportOptionsList = resolveExportListArticles(session, files[0], [{ format, output: import_node_path58.default.resolve(".", output2) }], projectPath, opts).map((exp) => {
|
319007
319047
|
return { ...exp, $file: files[0], $project: projectPath };
|
319008
319048
|
});
|
319009
319049
|
} else if (files.length) {
|
@@ -333456,7 +333496,7 @@ var Session = class {
|
|
333456
333496
|
this._shownUpgrade = false;
|
333457
333497
|
this._clones = [];
|
333458
333498
|
this.API_URL = API_URL;
|
333459
|
-
this.configFiles = CONFIG_FILES;
|
333499
|
+
this.configFiles = (opts.configFiles ? opts.configFiles : CONFIG_FILES).slice();
|
333460
333500
|
this.$logger = (_a6 = opts.logger) !== null && _a6 !== void 0 ? _a6 : chalkLogger(LogLevel.info, process.cwd());
|
333461
333501
|
this.doiLimiter = (_b = opts.doiLimiter) !== null && _b !== void 0 ? _b : (0, import_p_limit3.default)(3);
|
333462
333502
|
const proxyUrl = process.env.HTTPS_PROXY;
|
@@ -333530,7 +333570,11 @@ var Session = class {
|
|
333530
333570
|
return import_node_path65.default.join(this.sitePath(), "public");
|
333531
333571
|
}
|
333532
333572
|
async clone() {
|
333533
|
-
const cloneSession = new Session({
|
333573
|
+
const cloneSession = new Session({
|
333574
|
+
logger: this.log,
|
333575
|
+
doiLimiter: this.doiLimiter,
|
333576
|
+
configFiles: this.configFiles
|
333577
|
+
});
|
333534
333578
|
await cloneSession.reload();
|
333535
333579
|
cloneSession._jupyterSessionManagerPromise = this._jupyterSessionManagerPromise;
|
333536
333580
|
this._clones.push(cloneSession);
|
@@ -333603,7 +333647,8 @@ function clirun2(sessionClass, func, program3, runOptions) {
|
|
333603
333647
|
var _a6;
|
333604
333648
|
const opts = program3.opts();
|
333605
333649
|
const logger = chalkLogger((opts == null ? void 0 : opts.debug) ? LogLevel.debug : LogLevel.info, process.cwd());
|
333606
|
-
const
|
333650
|
+
const configFiles = (opts == null ? void 0 : opts.config) ? [opts.config] : null;
|
333651
|
+
const session = new sessionClass({ logger, configFiles });
|
333607
333652
|
await session.reload();
|
333608
333653
|
const versions = await getNodeVersion(session);
|
333609
333654
|
logVersions(session, versions);
|
@@ -334365,6 +334410,10 @@ program2.addCommand(makeCleanCLI(program2));
|
|
334365
334410
|
program2.addCommand(makeTemplatesCLI(program2));
|
334366
334411
|
program2.version(`v${version_default}`, "-v, --version", `Print the current version of ${readableName()}`);
|
334367
334412
|
program2.option("-d, --debug", "Log out any errors to the console");
|
334413
|
+
program2.option(
|
334414
|
+
"--config <config-file>",
|
334415
|
+
"Use an alternate YAML config file, named relative to the project directory"
|
334416
|
+
);
|
334368
334417
|
addDefaultCommand(program2);
|
334369
334418
|
program2.parse(process.argv);
|
334370
334419
|
/**
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|