mystmd 1.6.0__py3-none-any.whl → 1.6.2__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mystmd
3
- Version: 1.6.0
3
+ Version: 1.6.2
4
4
  Summary: Command line tools for MyST Markdown
5
5
  Project-URL: Homepage, https://github.com/jupyter-book/mystmd
6
6
  Project-URL: Bug Tracker, https://github.com/jupyter-book/mystmd/issues
@@ -0,0 +1,9 @@
1
+ mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mystmd_py/main.py,sha256=qFAnpbiqjx7jXMMmPSVUBA7SSxuRjmr6SiRDBH0rhKQ,2767
3
+ mystmd_py/myst.cjs,sha256=rEFQImu9wSQN-crtZbsSqJ-ncqegcHmKDr_0XLzOhD0,13213138
4
+ mystmd_py/nodeenv.py,sha256=8KER0P-WIXM2MsRJF4vcedBKscGoc26lJKojbkDxjbg,2447
5
+ mystmd-1.6.2.dist-info/METADATA,sha256=K7U1h9ywk_xKKbfyhrqt93i9OXQfQ-xBtkqjNuvWuDc,3019
6
+ mystmd-1.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ mystmd-1.6.2.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
8
+ mystmd-1.6.2.dist-info/licenses/LICENSE,sha256=4BcikqvulW5nh_MxaocO-lC7ydIX23dMbcqtNTUSxr4,1082
9
+ mystmd-1.6.2.dist-info/RECORD,,
mystmd_py/myst.cjs CHANGED
@@ -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 join20 = uncurryThis([].join);
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 = join20(TEMPLATE, typeof name3 == "string" ? name3 : "");
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 join20(separator) {
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 join20 = uncurryThis([].join);
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(" + join20(list6, ",") + ")");
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 join20 = uncurryThis([].join);
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 join20(elements, "");
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 join20 = uncurryThis([].join);
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 join20(elements, "");
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 join20 = uncurryThis([].join);
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 join20(result, "");
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 join20(separator) {
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 join20 = uncurryThis([].join);
12395
+ var join19 = uncurryThis([].join);
12396
12396
  if (fails(function() {
12397
12397
  arrayToString.call({});
12398
12398
  })) {
12399
12399
  arrayToString = function toString6() {
12400
- return join20(this);
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 join20 = uncurryThis([].join);
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 join20(output2, "");
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 join20(encoded, ".");
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 join20 = uncurryThis([].join);
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(join20(entry, "="))
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 join20(result, "&");
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 join20 = uncurryThis([].join);
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 join20(result, ".");
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(join20(arraySlice(codePoints, pointer), ""))) {
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(join20(arraySlice(codePoints, pointer), ""))) {
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 ? "/" + join20(path44, "/") : "";
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 ? "/" + join20(path44, "/") : "";
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 join20(aRoot, aPath) {
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 = join20;
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 = join20(urlGenerate(parsed), 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: join20 } = require("path");
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 = join20(dirname8(file), 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: join20, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
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 + join20(pathPart, cmd);
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: join20, normalize: normalize6, sep: sep5 } = pth.posix;
97916
- return join20(".", normalize6(sep5 + zipPath.split("\\").join(sep5) + sep5));
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: join20, delimiter: delimiter2, sep: sep5, posix: posix2 } = require("path");
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 + join20(pathPart, cmd);
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 join20(arr, del2, attr) {
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 = join20;
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 join20 = path44.join;
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 = join20(dir, file);
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 = join20(dir, basename4(file, ext2), "index" + ext2);
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 join20 = path44.join;
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(join20(root6, path45));
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 = join20(path45, self2._index[i2]);
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 join20(s5) {
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 join20 = require("path").join;
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
- join20(etc, name3, "config"),
175929
- join20(etc, name3 + "rc")
175928
+ join19(etc, name3, "config"),
175929
+ join19(etc, name3 + "rc")
175930
175930
  ].forEach(addConfigFile);
175931
175931
  if (home)
175932
175932
  [
175933
- join20(home, ".config", name3, "config"),
175934
- join20(home, ".config", name3),
175935
- join20(home, "." + name3, "config"),
175936
- join20(home, "." + name3 + "rc")
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 join20(...parts) {
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 = join20;
184129
+ URLExt2.join = join19;
184130
184130
  function encodeParts(url) {
184131
- return join20(...url.split("/").map(encodeURIComponent));
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 join20(...paths) {
184351
+ function join19(...paths) {
184352
184352
  const path44 = path_1.posix.join(...paths);
184353
184353
  return path44 === "." ? "" : removeSlash(path44);
184354
184354
  }
184355
- PathExt2.join = join20;
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.0";
193394
+ var version = "1.6.2";
193395
193395
  var version_default = version;
193396
193396
 
193397
193397
  // ../myst-cli/dist/build/build.js
@@ -195264,6 +195264,7 @@ var PROJECT_AND_PAGE_FRONTMATTER_KEYS = [
195264
195264
  "settings",
195265
195265
  // We maybe want to move this into site frontmatter in the future
195266
195266
  "edit_url",
195267
+ "source_url",
195267
195268
  ...KNOWN_EXTERNAL_IDENTIFIERS,
195268
195269
  // Do not add any project specific keys here!
195269
195270
  ...SITE_FRONTMATTER_KEYS
@@ -199366,6 +199367,11 @@ function validateProjectAndPageFrontmatterKeys(value, opts) {
199366
199367
  } else if (defined(value.edit_url)) {
199367
199368
  output2.edit_url = validateUrl(value.edit_url, incrementOptions("edit_url", opts));
199368
199369
  }
199370
+ if (value.source_url === null) {
199371
+ output2.source_url = null;
199372
+ } else if (defined(value.source_url)) {
199373
+ output2.source_url = validateUrl(value.source_url, incrementOptions("source_url", opts));
199374
+ }
199369
199375
  return output2;
199370
199376
  }
199371
199377
  function validateProjectFrontmatterKeys(value, opts) {
@@ -205195,10 +205201,19 @@ function buffer(value) {
205195
205201
 
205196
205202
  // ../myst-transforms/dist/admonitions.js
205197
205203
  var githubAdmonitionKinds = ["note", "tip", "important", "warning", "caution"];
205204
+ function getPossibleAdmonitionHeaderChildren(possibleHeading) {
205205
+ var _a6;
205206
+ if ((possibleHeading === null || possibleHeading === void 0 ? void 0 : possibleHeading.type) === "paragraph" && ((_a6 = possibleHeading.children) === null || _a6 === void 0 ? void 0 : _a6.length) === 1 && possibleHeading.children[0].type === "strong") {
205207
+ return possibleHeading.children[0].children;
205208
+ } else if ((possibleHeading === null || possibleHeading === void 0 ? void 0 : possibleHeading.type) === "heading") {
205209
+ return possibleHeading.children;
205210
+ }
205211
+ return void 0;
205212
+ }
205198
205213
  function admonitionHeadersTransform(tree, opts) {
205199
205214
  const admonitions = selectAll("admonition", tree);
205200
205215
  admonitions.forEach((node3) => {
205201
- var _a6, _b, _c, _d2, _e;
205216
+ var _a6, _b, _c, _d2;
205202
205217
  if (!node3.kind || node3.kind === AdmonitionKind.admonition || // This condition is legacy
205203
205218
  ((_b = (_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6[0]) === null || _b === void 0 ? void 0 : _b.type) === "admonitionTitle") {
205204
205219
  return;
@@ -205212,12 +205227,9 @@ function admonitionHeadersTransform(tree, opts) {
205212
205227
  ];
205213
205228
  if ((_d2 = opts === null || opts === void 0 ? void 0 : opts.replaceAdmonitionTitles) !== null && _d2 !== void 0 ? _d2 : true) {
205214
205229
  const [admonitionHeader, possibleHeading, ...rest] = node3.children;
205215
- if ((possibleHeading === null || possibleHeading === void 0 ? void 0 : possibleHeading.type) === "paragraph" && ((_e = possibleHeading.children) === null || _e === void 0 ? void 0 : _e.length) === 1 && possibleHeading.children[0].type === "strong") {
205216
- const strongTextChildren = possibleHeading.children[0].children;
205217
- admonitionHeader.children = strongTextChildren;
205218
- node3.children = [admonitionHeader, ...rest];
205219
- } else if ((possibleHeading === null || possibleHeading === void 0 ? void 0 : possibleHeading.type) === "heading") {
205220
- admonitionHeader.children = possibleHeading.children;
205230
+ const headerChildren = getPossibleAdmonitionHeaderChildren(possibleHeading);
205231
+ if (headerChildren) {
205232
+ admonitionHeader.children = headerChildren;
205221
205233
  node3.children = [admonitionHeader, ...rest];
205222
205234
  }
205223
205235
  }
@@ -210379,16 +210391,16 @@ function collectText(node3, info) {
210379
210391
  start = end + 1;
210380
210392
  }
210381
210393
  let index4 = -1;
210382
- let join20;
210394
+ let join19;
210383
210395
  while (++index4 < lines.length) {
210384
210396
  if (lines[index4].charCodeAt(lines[index4].length - 1) === 8203 || index4 < lines.length - 1 && lines[index4 + 1].charCodeAt(0) === 8203) {
210385
210397
  result.push(lines[index4]);
210386
- join20 = void 0;
210398
+ join19 = void 0;
210387
210399
  } else if (lines[index4]) {
210388
- if (typeof join20 === "number")
210389
- result.push(join20);
210400
+ if (typeof join19 === "number")
210401
+ result.push(join19);
210390
210402
  result.push(lines[index4]);
210391
- join20 = 0;
210403
+ join19 = 0;
210392
210404
  } else if (index4 === 0 || index4 === lines.length - 1) {
210393
210405
  result.push(0);
210394
210406
  }
@@ -288336,6 +288348,60 @@ function getTokenHandlers(specHandlers) {
288336
288348
  return handlers6;
288337
288349
  }
288338
288350
 
288351
+ // ../myst-parser/dist/transforms/listItemParagraphs.js
288352
+ function listItemParagraphsTransform(tree) {
288353
+ selectAll("listItem", tree).forEach((node3) => {
288354
+ if (!node3.children || node3.children.length === 0)
288355
+ return;
288356
+ const phrasingTypes2 = /* @__PURE__ */ new Set([
288357
+ "text",
288358
+ "emphasis",
288359
+ "strong",
288360
+ "delete",
288361
+ "link",
288362
+ "image",
288363
+ "break",
288364
+ "subscript",
288365
+ "superscript",
288366
+ "smallcaps",
288367
+ "inlineCode",
288368
+ "inlineMath",
288369
+ "mystRole",
288370
+ "footnoteReference",
288371
+ "crossReference",
288372
+ "cite",
288373
+ "citeGroup",
288374
+ "html"
288375
+ ]);
288376
+ const hasPhrasingContent = node3.children.some((child) => phrasingTypes2.has(child.type));
288377
+ if (hasPhrasingContent) {
288378
+ const newChildren = [];
288379
+ let currentPhrasingGroup = [];
288380
+ node3.children.forEach((child) => {
288381
+ if (phrasingTypes2.has(child.type)) {
288382
+ currentPhrasingGroup.push(child);
288383
+ } else {
288384
+ if (currentPhrasingGroup.length > 0) {
288385
+ newChildren.push({
288386
+ type: "paragraph",
288387
+ children: currentPhrasingGroup
288388
+ });
288389
+ currentPhrasingGroup = [];
288390
+ }
288391
+ newChildren.push(child);
288392
+ }
288393
+ });
288394
+ if (currentPhrasingGroup.length > 0) {
288395
+ newChildren.push({
288396
+ type: "paragraph",
288397
+ children: currentPhrasingGroup
288398
+ });
288399
+ }
288400
+ node3.children = newChildren;
288401
+ }
288402
+ });
288403
+ }
288404
+
288339
288405
  // ../myst-parser/dist/tokensToMyst.js
288340
288406
  function computeAmsmathTightness(src, map14) {
288341
288407
  var _a6;
@@ -288835,6 +288901,7 @@ function nestSingleImagesIntoParagraphs(tree) {
288835
288901
  var defaultOptions2 = {
288836
288902
  handlers: defaultMdast,
288837
288903
  hoistSingleImagesOutofParagraphs: true,
288904
+ listItemParagraphs: true,
288838
288905
  nestBlocks: true
288839
288906
  };
288840
288907
  function tokensToMyst(src, tokens, options = defaultOptions2) {
@@ -288864,6 +288931,9 @@ function tokensToMyst(src, tokens, options = defaultOptions2) {
288864
288931
  }
288865
288932
  }
288866
288933
  });
288934
+ if (opts.listItemParagraphs) {
288935
+ listItemParagraphsTransform(tree);
288936
+ }
288867
288937
  visit(tree, "crossReference", (node3) => {
288868
288938
  delete node3.children;
288869
288939
  if (node3.value) {
@@ -289790,11 +289860,9 @@ var tabItemDirective = {
289790
289860
  var tabDirectives = [tabSetDirective, tabItemDirective];
289791
289861
 
289792
289862
  // ../myst-cli/dist/process/myst.js
289793
- function parseMyst(session, content3, file, opts) {
289863
+ function getMystParserOptions(session, opts) {
289794
289864
  var _a6, _b, _c, _d2;
289795
- const vfile2 = new VFile();
289796
- vfile2.path = file;
289797
- const parsed = mystParse(content3, {
289865
+ return {
289798
289866
  markdownit: { linkify: true },
289799
289867
  directives: [
289800
289868
  cardDirective,
@@ -289807,9 +289875,14 @@ function parseMyst(session, content3, file, opts) {
289807
289875
  extensions: {
289808
289876
  frontmatter: !(opts === null || opts === void 0 ? void 0 : opts.ignoreFrontmatter)
289809
289877
  },
289810
- roles: [buttonRole, ...(_d2 = (_c = session.plugins) === null || _c === void 0 ? void 0 : _c.roles) !== null && _d2 !== void 0 ? _d2 : []],
289811
- vfile: vfile2
289812
- });
289878
+ roles: [buttonRole, ...(_d2 = (_c = session.plugins) === null || _c === void 0 ? void 0 : _c.roles) !== null && _d2 !== void 0 ? _d2 : []]
289879
+ };
289880
+ }
289881
+ function parseMyst(session, content3, file, opts) {
289882
+ const vfile2 = new VFile();
289883
+ vfile2.path = file;
289884
+ const parserOptions = getMystParserOptions(session, opts);
289885
+ const parsed = mystParse(content3, { ...parserOptions, vfile: vfile2 });
289813
289886
  logMessagesFromVFile(session, vfile2);
289814
289887
  return parsed;
289815
289888
  }
@@ -289993,7 +290066,7 @@ var import_mime_types = __toESM(require_mime_types(), 1);
289993
290066
  var import_node_path16 = __toESM(require("path"), 1);
289994
290067
 
289995
290068
  // ../myst-cli/dist/version.js
289996
- var version2 = "1.6.0";
290069
+ var version2 = "1.6.2";
289997
290070
  var version_default2 = version2;
289998
290071
 
289999
290072
  // ../myst-cli/dist/utils/headers.js
@@ -290096,14 +290169,14 @@ function notNullish(value) {
290096
290169
 
290097
290170
  // ../myst-cli/dist/utils/fileInfo.js
290098
290171
  var import_node_path10 = __toESM(require("path"), 1);
290099
- function input2name(input3, allowed, join20) {
290100
- 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, join20);
290101
- if (join20) {
290102
- name3 = name3.replace(new RegExp(`${join20}+`, "g"), join20);
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);
290103
290176
  }
290104
- if (name3.charAt(0) === join20)
290177
+ if (name3.charAt(0) === join19)
290105
290178
  name3 = name3.slice(1);
290106
- if (name3.charAt(name3.length - 1) === join20)
290179
+ if (name3.charAt(name3.length - 1) === join19)
290107
290180
  name3 = name3.slice(0, name3.length - 1);
290108
290181
  return name3;
290109
290182
  }
@@ -291675,11 +291748,11 @@ function emptyConfig() {
291675
291748
  };
291676
291749
  }
291677
291750
  function defaultConfigFile(session, path44) {
291678
- return (0, import_node_path18.join)(path44, session.configFiles[0]);
291751
+ return (0, import_node_path18.resolve)(path44, session.configFiles[0]);
291679
291752
  }
291680
291753
  function configFromPath(session, path44) {
291681
291754
  const configs = session.configFiles.map((file) => {
291682
- return (0, import_node_path18.join)(path44, file);
291755
+ return (0, import_node_path18.resolve)(path44, file);
291683
291756
  }).filter((file) => {
291684
291757
  return import_node_fs13.default.existsSync(file);
291685
291758
  });
@@ -291798,14 +291871,6 @@ async function getValidatedConfigsFromFile(session, file, vfile2, stack) {
291798
291871
  }
291799
291872
  const { site: rawSite, project: rawProject } = conf !== null && conf !== void 0 ? conf : {};
291800
291873
  const path44 = (0, import_node_path18.dirname)(file);
291801
- if (rawSite) {
291802
- site = fillSiteConfig(await validateSiteConfigAndThrow(session, path44, vfile2, rawSite), site !== null && site !== void 0 ? site : {}, incrementOptions("extend", opts));
291803
- }
291804
- if (site) {
291805
- session.log.debug(`Loaded site config from ${file}`);
291806
- } else {
291807
- session.log.debug(`No site config in ${file}`);
291808
- }
291809
291874
  if (rawProject) {
291810
291875
  project = fillProjectFrontmatter(await validateProjectConfigAndThrow(session, path44, vfile2, rawProject), project !== null && project !== void 0 ? project : {}, projectOpts);
291811
291876
  }
@@ -291814,6 +291879,14 @@ async function getValidatedConfigsFromFile(session, file, vfile2, stack) {
291814
291879
  } else {
291815
291880
  session.log.debug(`No project config defined in ${file}`);
291816
291881
  }
291882
+ if (rawSite) {
291883
+ site = fillSiteConfig(await validateSiteConfigAndThrow(session, path44, vfile2, rawSite), site !== null && site !== void 0 ? site : {}, incrementOptions("extend", opts));
291884
+ }
291885
+ if (site) {
291886
+ session.log.debug(`Loaded site config from ${file}`);
291887
+ } else {
291888
+ session.log.debug(`No site config in ${file}`);
291889
+ }
291817
291890
  logMessagesFromVFile(session, vfile2);
291818
291891
  return { site, project, extend: extend5 };
291819
291892
  }
@@ -291964,13 +292037,6 @@ async function writeConfigs(session, path44, newConfigs) {
291964
292037
  const file = configFromPath(session, path44) || defaultConfigFile(session, path44);
291965
292038
  const vfile2 = new VFile();
291966
292039
  vfile2.path = file;
291967
- if (siteConfig) {
291968
- saveSiteConfig(session, path44, await validateSiteConfigAndThrow(session, path44, vfile2, siteConfig));
291969
- }
291970
- siteConfig = selectors_exports.selectLocalSiteConfig(session.store.getState(), path44);
291971
- if (siteConfig) {
291972
- siteConfig = await resolveSiteConfigPaths(session, path44, siteConfig, resolveToRelative, file);
291973
- }
291974
292040
  if (projectConfig) {
291975
292041
  saveProjectConfig(session, path44, await validateProjectConfigAndThrow(session, path44, vfile2, projectConfig));
291976
292042
  }
@@ -291979,6 +292045,13 @@ async function writeConfigs(session, path44, newConfigs) {
291979
292045
  projectConfig = prepareToWrite(projectConfig);
291980
292046
  projectConfig = await resolveProjectConfigPaths(session, path44, projectConfig, resolveToRelative, file);
291981
292047
  }
292048
+ if (siteConfig) {
292049
+ saveSiteConfig(session, path44, await validateSiteConfigAndThrow(session, path44, vfile2, siteConfig));
292050
+ }
292051
+ siteConfig = selectors_exports.selectLocalSiteConfig(session.store.getState(), path44);
292052
+ if (siteConfig) {
292053
+ siteConfig = await resolveSiteConfigPaths(session, path44, siteConfig, resolveToRelative, file);
292054
+ }
291982
292055
  if (!siteConfig && !projectConfig) {
291983
292056
  session.log.debug(`No new config to write to ${file}`);
291984
292057
  return;
@@ -304720,7 +304793,8 @@ async function addEditUrl(session, frontmatter, file) {
304720
304793
  const getGitRoot = makeExecutable("git rev-parse --show-toplevel", gitLog);
304721
304794
  const gitRoot = (await getGitRoot()).trim();
304722
304795
  if (gitBranch && gitRoot && file.startsWith(gitRoot)) {
304723
- frontmatter.edit_url = `${frontmatter.github}/blob/${gitBranch}${file.replace(gitRoot, "")}`;
304796
+ frontmatter.source_url = `${frontmatter.github}/blob/${gitBranch}${file.replace(gitRoot, "")}`;
304797
+ frontmatter.edit_url = `${frontmatter.github}/edit/${gitBranch}${file.replace(gitRoot, "")}`;
304724
304798
  session.log.debug(`Added edit URL ${frontmatter.edit_url} to ${file}`);
304725
304799
  }
304726
304800
  } catch {
@@ -306907,8 +306981,13 @@ var handlers3 = {
306907
306981
  }
306908
306982
  },
306909
306983
  listItem(node3, state) {
306984
+ var _a6, _b;
306910
306985
  state.write("\\item ");
306911
- state.renderChildren(node3, true);
306986
+ if (((_b = (_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6[0]) === null || _b === void 0 ? void 0 : _b.type) === "paragraph" && node3.children.length === 1) {
306987
+ state.renderChildren(node3.children[0], true);
306988
+ } else {
306989
+ state.renderChildren(node3, true);
306990
+ }
306912
306991
  state.write("\n");
306913
306992
  },
306914
306993
  thematicBreak(node3, state) {
@@ -307115,6 +307194,20 @@ var handlers3 = {
307115
307194
  } else if ((_a6 = node3.children) === null || _a6 === void 0 ? void 0 : _a6.length) {
307116
307195
  state.renderChildren(node3);
307117
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");
307118
307211
  }
307119
307212
  };
307120
307213
  var TexSerializer = class {
@@ -309195,6 +309288,21 @@ ${node3.value}
309195
309288
  state.renderChildren(node3);
309196
309289
  state.write("\n]\n\n");
309197
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
+ },
309198
309306
  card(node3, state) {
309199
309307
  var _a6;
309200
309308
  if (node3.url) {
@@ -313424,7 +313532,7 @@ To resolve this, run: myst build --all`, {
313424
313532
  });
313425
313533
  }
313426
313534
  });
313427
- const manuscriptExports = (await collectExportOptions(session, articleFile ? [articleFile] : [], [ExportFormats.docx, ExportFormats.pdf, ExportFormats.tex], {
313535
+ const manuscriptExports = (await collectExportOptions(session, articleFile ? [articleFile] : [], [ExportFormats.docx, ExportFormats.pdf, ExportFormats.tex, ExportFormats.typst], {
313428
313536
  projectPath
313429
313537
  })).filter((exp) => {
313430
313538
  return exp.format !== ExportFormats.tex || import_node_path51.default.extname(exp.output) === ".zip";
@@ -317059,7 +317167,7 @@ var handle5 = {
317059
317167
  };
317060
317168
 
317061
317169
  // ../../node_modules/mdast-util-to-markdown/lib/join.js
317062
- var join14 = [joinDefaults];
317170
+ var join13 = [joinDefaults];
317063
317171
  function joinDefaults(left2, right2, parent2, state) {
317064
317172
  if (right2.type === "code" && formatCodeAsIndented(right2, state) && (left2.type === "list" || left2.type === right2.type && formatCodeAsIndented(left2, state))) {
317065
317173
  return false;
@@ -317231,7 +317339,7 @@ function toMarkdown(tree, options = {}) {
317231
317339
  // @ts-expect-error: we’ll add `handle` later.
317232
317340
  handle: void 0
317233
317341
  };
317234
- configure(state, { unsafe, join: join14, handlers: handle5 });
317342
+ configure(state, { unsafe, join: join13, handlers: handle5 });
317235
317343
  configure(state, options);
317236
317344
  if (state.options.tightDefinitions) {
317237
317345
  configure(state, { join: [joinDefinition] });
@@ -318386,7 +318494,7 @@ var import_websocket = __toESM(require_websocket(), 1);
318386
318494
  var import_websocket_server = __toESM(require_websocket_server(), 1);
318387
318495
 
318388
318496
  // ../myst-cli/dist/build/site/logger.js
318389
- function createServerLogger(session, ready) {
318497
+ function createServerLogger(session, opts) {
318390
318498
  const logger = {
318391
318499
  debug(data) {
318392
318500
  var _a6;
@@ -318398,8 +318506,8 @@ function createServerLogger(session, ready) {
318398
318506
  if (line2.includes("started at http://")) {
318399
318507
  const [, ipAndPort] = line2.split("http://");
318400
318508
  const port = ipAndPort.split(":")[1].replace(/[^0-9]/g, "");
318401
- const local = `http://localhost:${port}`;
318402
- ready();
318509
+ const local = `http://${opts.host}:${port}`;
318510
+ opts.ready();
318403
318511
  session.log.info(`
318404
318512
  \u{1F50C} Server started on port ${port}! \u{1F973} \u{1F389}
318405
318513
 
@@ -318585,9 +318693,11 @@ function watchContent(session, serverReload, opts) {
318585
318693
  }
318586
318694
 
318587
318695
  // ../myst-cli/dist/build/site/start.js
318696
+ var DEFAULT_HOST = "localhost";
318588
318697
  var DEFAULT_START_COMMAND = "npm run start";
318589
318698
  async function startContentServer(session, opts) {
318590
318699
  var _a6;
318700
+ const host = (opts === null || opts === void 0 ? void 0 : opts.serverHost) || DEFAULT_HOST;
318591
318701
  const port = (_a6 = opts === null || opts === void 0 ? void 0 : opts.serverPort) !== null && _a6 !== void 0 ? _a6 : await getPorts({ port: portNumbers(3100, 3200) });
318592
318702
  const app = (0, import_express.default)();
318593
318703
  app.use((0, import_cors.default)());
@@ -318595,7 +318705,7 @@ async function startContentServer(session, opts) {
318595
318705
  res.json({
318596
318706
  version: version_default2,
318597
318707
  links: {
318598
- site: `http://localhost:${port}/config.json`
318708
+ site: `http://${host}:${port}/config.json`
318599
318709
  }
318600
318710
  });
318601
318711
  });
@@ -318605,7 +318715,7 @@ async function startContentServer(session, opts) {
318605
318715
  app.use("/objects.inv", import_express.default.static((0, import_node_path56.join)(session.sitePath(), "objects.inv")));
318606
318716
  app.use("/myst.xref.json", import_express.default.static((0, import_node_path56.join)(session.sitePath(), "myst.xref.json")));
318607
318717
  app.use("/myst.search.json", import_express.default.static((0, import_node_path56.join)(session.sitePath(), "myst.search.json")));
318608
- const server = app.listen(port, () => {
318718
+ const server = app.listen(port, host, () => {
318609
318719
  session.log.debug(`Content server listening on port ${port}`);
318610
318720
  });
318611
318721
  const wss = new import_websocket_server.default({
@@ -318638,37 +318748,39 @@ async function startContentServer(session, opts) {
318638
318748
  server.close();
318639
318749
  wss.close();
318640
318750
  };
318641
- return { port, reload, log, stop };
318751
+ return { host, port, reload, log, stop };
318642
318752
  }
318643
318753
  function warnOnHostEnvironmentVariable(session, opts) {
318644
- if (process.env.HOST && process.env.HOST !== "localhost") {
318645
- if (opts === null || opts === void 0 ? void 0 : opts.keepHost) {
318646
- session.log.warn(`
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(`
318647
318759
  The HOST environment variable is set to "${process.env.HOST}", this may cause issues for the web server.
318648
318760
  `);
318649
- } else {
318650
- session.log.warn(`
318651
- The HOST environment variable is set to "${process.env.HOST}", we are overwriting this to "localhost".
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}".
318652
318765
  To keep this value use the \`--keep-host\` flag.
318653
318766
  `);
318654
- process.env.HOST = "localhost";
318655
- }
318656
- }
318767
+ process.env.HOST = DEFAULT_HOST;
318768
+ return DEFAULT_HOST;
318657
318769
  }
318658
318770
  async function startServer(session, opts) {
318659
318771
  var _a6;
318660
318772
  await session.reload();
318661
- warnOnHostEnvironmentVariable(session, opts);
318773
+ const host = warnOnHostEnvironmentVariable(session, opts);
318662
318774
  const mystTemplate = await getSiteTemplate(session, opts);
318663
318775
  if (!opts.headless && !opts.template)
318664
318776
  await installSiteTemplate(session, mystTemplate);
318665
318777
  await buildSite(session, opts);
318666
- const server = await startContentServer(session, opts);
318778
+ const server = await startContentServer(session, { ...opts, serverHost: host });
318667
318779
  if (!opts.buildStatic) {
318668
318780
  watchContent(session, server.reload, opts);
318669
318781
  }
318670
318782
  if (opts.headless) {
318671
- const local = source_default.green(`http://localhost:${server.port}`);
318783
+ const local = source_default.green(`http://${host}:${server.port}`);
318672
318784
  session.log.info(`
318673
318785
  \u{1F50C} Content server started on port ${server.port}! \u{1F973} \u{1F389}
318674
318786
 
@@ -318687,10 +318799,11 @@ async function startServer(session, opts) {
318687
318799
  const appServer = { port };
318688
318800
  await new Promise((resolve9) => {
318689
318801
  var _a7, _b;
318690
- 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 }), {
318691
318803
  cwd: mystTemplate.templatePath,
318692
318804
  env: {
318693
318805
  ...process.env,
318806
+ HOST: host,
318694
318807
  CONTENT_CDN_PORT: String(server.port),
318695
318808
  PORT: String(port),
318696
318809
  MODE: opts.buildStatic ? "static" : "app",
@@ -318712,14 +318825,20 @@ async function startServer(session, opts) {
318712
318825
  // ../myst-cli/dist/build/html/index.js
318713
318826
  var import_p_limit2 = __toESM(require_p_limit(), 1);
318714
318827
  var limitConnections = (0, import_p_limit2.default)(5);
318715
- async function currentSiteRoutes(session, host, baseurl, opts) {
318828
+ async function currentSiteRoutes(session, host, baseurl) {
318716
318829
  var _a6, _b;
318717
- const manifest = await getSiteManifest(session, opts);
318718
- return (_b = (_a6 = manifest.projects) !== null && _a6 !== void 0 ? _a6 : []) === null || _b === void 0 ? void 0 : _b.map((proj) => {
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) => {
318719
318833
  var _a7, _b2;
318834
+ if (!proj.path)
318835
+ return [];
318836
+ const localProj = selectors_exports.selectLocalProject(state, proj.path);
318837
+ if (!localProj)
318838
+ return [];
318720
318839
  const projSlug = proj.slug ? `/${proj.slug}` : "";
318721
- const siteIndex = baseurl ? `/${proj.index}` : "";
318722
- const pages = proj.pages.filter((page) => !!page.slug);
318840
+ const siteIndex = baseurl ? `/${localProj.index}` : "";
318841
+ const pages = localProj.pages.filter((page) => !!page.slug);
318723
318842
  return [
318724
318843
  { url: `${host}${projSlug}${siteIndex}`, path: import_node_path57.default.join((_a7 = proj.slug) !== null && _a7 !== void 0 ? _a7 : "", "index.html") },
318725
318844
  ...pages.map((page) => {
@@ -318732,8 +318851,8 @@ async function currentSiteRoutes(session, host, baseurl, opts) {
318732
318851
  }),
318733
318852
  // Download all of the configured JSON
318734
318853
  {
318735
- url: `${host}${projSlug}/${proj.index}.json`,
318736
- path: import_node_path57.default.join((_b2 = proj.slug) !== null && _b2 !== void 0 ? _b2 : "", `${proj.index}.json`)
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`)
318737
318856
  },
318738
318857
  ...pages.map((page) => {
318739
318858
  var _a8;
@@ -318800,7 +318919,7 @@ async function buildHtml(session, opts) {
318800
318919
  if (!appServer)
318801
318920
  return;
318802
318921
  const host = `http://localhost:${appServer.port}`;
318803
- const routes = await currentSiteRoutes(session, host, baseurl, opts);
318922
+ const routes = await currentSiteRoutes(session, host, baseurl);
318804
318923
  await Promise.all(routes.map(async (route) => limitConnections(async () => {
318805
318924
  const resp = await fetchWithRetry(session, route.url);
318806
318925
  if (!resp.ok) {
@@ -318924,7 +319043,7 @@ async function collectAllBuildExportOptions(session, files, opts) {
318924
319043
  if (!format) {
318925
319044
  throw new Error(`Cannot specify format from output "${output2}" - please specify format option, e.g. --pdf`);
318926
319045
  }
318927
- exportOptionsList = resolveExportListArticles(session, files[0], [{ format, output: import_node_path58.default.join(import_node_path58.default.resolve("."), output2) }], projectPath, opts).map((exp) => {
319046
+ exportOptionsList = resolveExportListArticles(session, files[0], [{ format, output: import_node_path58.default.resolve(".", output2) }], projectPath, opts).map((exp) => {
318928
319047
  return { ...exp, $file: files[0], $project: projectPath };
318929
319048
  });
318930
319049
  } else if (files.length) {
@@ -321748,7 +321867,7 @@ ${filename}
321748
321867
 
321749
321868
  ${githubPagesUrl}
321750
321869
  ` : "on your https://{{ organization }}.github.io/{{ repo }} domain"}
321751
- 7. \u{1F389} Celebrate and tell us about your site on Twitter or Mastodon! \u{1F426} \u{1F418}
321870
+ 7. \u{1F389} Celebrate and tell us about your site on BlueSky or Mastodon! \u{1F426} \u{1F418}
321752
321871
  `);
321753
321872
  }
321754
321873
  async function githubCurvenoteAction(session) {
@@ -321791,7 +321910,7 @@ ${filename}
321791
321910
  ${githubUrl}/actions
321792
321911
  ` : ""}
321793
321912
  7. Once the action completes, your site should be deployed
321794
- 8. \u{1F389} Celebrate and tell us about your site on Twitter or Mastodon! \u{1F426} \u{1F418}
321913
+ 8. \u{1F389} Celebrate and tell us about your site on BlueSky or Mastodon! \u{1F426} \u{1F418}
321795
321914
  `);
321796
321915
  }
321797
321916
 
@@ -333377,7 +333496,7 @@ var Session = class {
333377
333496
  this._shownUpgrade = false;
333378
333497
  this._clones = [];
333379
333498
  this.API_URL = API_URL;
333380
- this.configFiles = CONFIG_FILES;
333499
+ this.configFiles = (opts.configFiles ? opts.configFiles : CONFIG_FILES).slice();
333381
333500
  this.$logger = (_a6 = opts.logger) !== null && _a6 !== void 0 ? _a6 : chalkLogger(LogLevel.info, process.cwd());
333382
333501
  this.doiLimiter = (_b = opts.doiLimiter) !== null && _b !== void 0 ? _b : (0, import_p_limit3.default)(3);
333383
333502
  const proxyUrl = process.env.HTTPS_PROXY;
@@ -333451,7 +333570,11 @@ var Session = class {
333451
333570
  return import_node_path65.default.join(this.sitePath(), "public");
333452
333571
  }
333453
333572
  async clone() {
333454
- const cloneSession = new Session({ logger: this.log, doiLimiter: this.doiLimiter });
333573
+ const cloneSession = new Session({
333574
+ logger: this.log,
333575
+ doiLimiter: this.doiLimiter,
333576
+ configFiles: this.configFiles
333577
+ });
333455
333578
  await cloneSession.reload();
333456
333579
  cloneSession._jupyterSessionManagerPromise = this._jupyterSessionManagerPromise;
333457
333580
  this._clones.push(cloneSession);
@@ -333524,7 +333647,8 @@ function clirun2(sessionClass, func, program3, runOptions) {
333524
333647
  var _a6;
333525
333648
  const opts = program3.opts();
333526
333649
  const logger = chalkLogger((opts == null ? void 0 : opts.debug) ? LogLevel.debug : LogLevel.info, process.cwd());
333527
- const session = new sessionClass({ logger });
333650
+ const configFiles = (opts == null ? void 0 : opts.config) ? [opts.config] : null;
333651
+ const session = new sessionClass({ logger, configFiles });
333528
333652
  await session.reload();
333529
333653
  const versions = await getNodeVersion(session);
333530
333654
  logVersions(session, versions);
@@ -334286,6 +334410,10 @@ program2.addCommand(makeCleanCLI(program2));
334286
334410
  program2.addCommand(makeTemplatesCLI(program2));
334287
334411
  program2.version(`v${version_default}`, "-v, --version", `Print the current version of ${readableName()}`);
334288
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
+ );
334289
334417
  addDefaultCommand(program2);
334290
334418
  program2.parse(process.argv);
334291
334419
  /**
@@ -1,9 +0,0 @@
1
- mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mystmd_py/main.py,sha256=qFAnpbiqjx7jXMMmPSVUBA7SSxuRjmr6SiRDBH0rhKQ,2767
3
- mystmd_py/myst.cjs,sha256=ObOgbobs1A8pus4Dor3d99XXTGbZNO0w2n-FvHoXhdQ,13209079
4
- mystmd_py/nodeenv.py,sha256=8KER0P-WIXM2MsRJF4vcedBKscGoc26lJKojbkDxjbg,2447
5
- mystmd-1.6.0.dist-info/METADATA,sha256=VIGmCmKT-K3R6JvtI4cGee0ykOjZjohtf2d1J2VLDAs,3019
6
- mystmd-1.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- mystmd-1.6.0.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
8
- mystmd-1.6.0.dist-info/licenses/LICENSE,sha256=4BcikqvulW5nh_MxaocO-lC7ydIX23dMbcqtNTUSxr4,1082
9
- mystmd-1.6.0.dist-info/RECORD,,
File without changes