mystmd 1.2.6__py3-none-any.whl → 1.2.8__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.
- {mystmd-1.2.6.dist-info → mystmd-1.2.8.dist-info}/METADATA +1 -1
- mystmd-1.2.8.dist-info/RECORD +8 -0
- mystmd_py/myst.cjs +87 -55
- mystmd-1.2.6.dist-info/RECORD +0 -8
- {mystmd-1.2.6.dist-info → mystmd-1.2.8.dist-info}/WHEEL +0 -0
- {mystmd-1.2.6.dist-info → mystmd-1.2.8.dist-info}/entry_points.txt +0 -0
- {mystmd-1.2.6.dist-info → mystmd-1.2.8.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
mystmd_py/main.py,sha256=AAcX3rJdJgYboCxwjHoCi1TdHSfBjNstbr562tjey44,1470
|
3
|
+
mystmd_py/myst.cjs,sha256=zF7uc1reD7Yrt0XG9Szj3BD0U4tIXCDQoNEcbbyQDDg,12890668
|
4
|
+
mystmd-1.2.8.dist-info/METADATA,sha256=LI1pjLgVF_xrAKY13gmwzQI5FIqaSBVuDjYVgv7X69Y,2968
|
5
|
+
mystmd-1.2.8.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
6
|
+
mystmd-1.2.8.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
|
7
|
+
mystmd-1.2.8.dist-info/licenses/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
|
8
|
+
mystmd-1.2.8.dist-info/RECORD,,
|
mystmd_py/myst.cjs
CHANGED
@@ -98777,7 +98777,7 @@ var require_p_limit = __commonJS({
|
|
98777
98777
|
"../myst-cli/node_modules/p-limit/index.js"(exports2, module2) {
|
98778
98778
|
"use strict";
|
98779
98779
|
var Queue = require_yocto_queue();
|
98780
|
-
var
|
98780
|
+
var pLimit3 = (concurrency) => {
|
98781
98781
|
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
98782
98782
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
98783
98783
|
}
|
@@ -98826,7 +98826,7 @@ var require_p_limit = __commonJS({
|
|
98826
98826
|
});
|
98827
98827
|
return generator;
|
98828
98828
|
};
|
98829
|
-
module2.exports =
|
98829
|
+
module2.exports = pLimit3;
|
98830
98830
|
}
|
98831
98831
|
});
|
98832
98832
|
|
@@ -193305,7 +193305,7 @@ var {
|
|
193305
193305
|
} = import_index.default;
|
193306
193306
|
|
193307
193307
|
// src/version.ts
|
193308
|
-
var version = "1.2.
|
193308
|
+
var version = "1.2.8";
|
193309
193309
|
var version_default = version;
|
193310
193310
|
|
193311
193311
|
// ../myst-cli/dist/build/build.js
|
@@ -198615,36 +198615,18 @@ function validatePageFrontmatter(input3, opts) {
|
|
198615
198615
|
function fillPageFrontmatter(pageFrontmatter, projectFrontmatter, opts) {
|
198616
198616
|
return fillProjectFrontmatter(pageFrontmatter, projectFrontmatter, opts, USE_PROJECT_FALLBACK);
|
198617
198617
|
}
|
198618
|
-
function
|
198619
|
-
var _a6, _b, _c, _d2, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
198618
|
+
function fillSiteFrontmatter(base5, filler, opts, keys2) {
|
198619
|
+
var _a6, _b, _c, _d2, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
198620
198620
|
const frontmatter = fillMissingKeys(base5, filler, keys2 !== null && keys2 !== void 0 ? keys2 : Object.keys(filler));
|
198621
|
-
if (filler.numbering || base5.numbering) {
|
198622
|
-
frontmatter.numbering = fillNumbering(base5.numbering, filler.numbering);
|
198623
|
-
}
|
198624
|
-
if (filler.math || base5.math) {
|
198625
|
-
frontmatter.math = { ...(_a6 = filler.math) !== null && _a6 !== void 0 ? _a6 : {}, ...(_b = base5.math) !== null && _b !== void 0 ? _b : {} };
|
198626
|
-
}
|
198627
|
-
if (filler.abbreviations || base5.abbreviations) {
|
198628
|
-
frontmatter.abbreviations = {
|
198629
|
-
...(_c = filler.abbreviations) !== null && _c !== void 0 ? _c : {},
|
198630
|
-
...(_d2 = base5.abbreviations) !== null && _d2 !== void 0 ? _d2 : {}
|
198631
|
-
};
|
198632
|
-
}
|
198633
198621
|
if (filler.options || base5.options) {
|
198634
198622
|
frontmatter.options = {
|
198635
|
-
...(
|
198636
|
-
...(
|
198637
|
-
};
|
198638
|
-
}
|
198639
|
-
if (filler.settings || base5.settings) {
|
198640
|
-
frontmatter.settings = {
|
198641
|
-
...(_g = filler.settings) !== null && _g !== void 0 ? _g : {},
|
198642
|
-
...(_h = base5.settings) !== null && _h !== void 0 ? _h : {}
|
198623
|
+
...(_a6 = filler.options) !== null && _a6 !== void 0 ? _a6 : {},
|
198624
|
+
...(_b = base5.options) !== null && _b !== void 0 ? _b : {}
|
198643
198625
|
};
|
198644
198626
|
}
|
198645
198627
|
const contributorIds = /* @__PURE__ */ new Set();
|
198646
198628
|
const affiliationIds = /* @__PURE__ */ new Set();
|
198647
|
-
(
|
198629
|
+
(_c = frontmatter.funding) === null || _c === void 0 ? void 0 : _c.forEach((fund) => {
|
198648
198630
|
var _a7;
|
198649
198631
|
(_a7 = fund.awards) === null || _a7 === void 0 ? void 0 : _a7.forEach((award) => {
|
198650
198632
|
var _a8, _b2, _c2;
|
@@ -198659,18 +198641,18 @@ function fillProjectFrontmatter(base5, filler, opts, keys2) {
|
|
198659
198641
|
});
|
198660
198642
|
});
|
198661
198643
|
});
|
198662
|
-
(
|
198644
|
+
(_d2 = frontmatter.reviewers) === null || _d2 === void 0 ? void 0 : _d2.forEach((reviewer) => {
|
198663
198645
|
contributorIds.add(reviewer);
|
198664
198646
|
});
|
198665
|
-
(
|
198647
|
+
(_e = frontmatter.editors) === null || _e === void 0 ? void 0 : _e.forEach((editor) => {
|
198666
198648
|
contributorIds.add(editor);
|
198667
198649
|
});
|
198668
|
-
if (((
|
198650
|
+
if (((_f = frontmatter.authors) === null || _f === void 0 ? void 0 : _f.length) || contributorIds.size) {
|
198669
198651
|
const people = [
|
198670
|
-
...(
|
198671
|
-
...(
|
198672
|
-
...(
|
198673
|
-
...(
|
198652
|
+
...(_g = base5.authors) !== null && _g !== void 0 ? _g : [],
|
198653
|
+
...(_h = filler.authors) !== null && _h !== void 0 ? _h : [],
|
198654
|
+
...(_j = base5.contributors) !== null && _j !== void 0 ? _j : [],
|
198655
|
+
...(_k = filler.contributors) !== null && _k !== void 0 ? _k : []
|
198674
198656
|
];
|
198675
198657
|
const peopleLookup = {};
|
198676
198658
|
people.forEach((auth) => {
|
@@ -198682,7 +198664,7 @@ function fillProjectFrontmatter(base5, filler, opts, keys2) {
|
|
198682
198664
|
validationWarning(`Duplicate contributor id within project: ${auth.id}`, incrementOptions("authors", opts));
|
198683
198665
|
}
|
198684
198666
|
});
|
198685
|
-
if ((
|
198667
|
+
if ((_l = frontmatter.authors) === null || _l === void 0 ? void 0 : _l.length) {
|
198686
198668
|
frontmatter.authors = frontmatter.authors.map((auth) => {
|
198687
198669
|
var _a7;
|
198688
198670
|
if (!auth.id)
|
@@ -198698,18 +198680,18 @@ function fillProjectFrontmatter(base5, filler, opts, keys2) {
|
|
198698
198680
|
});
|
198699
198681
|
}
|
198700
198682
|
}
|
198701
|
-
[...(
|
198683
|
+
[...(_m = frontmatter.authors) !== null && _m !== void 0 ? _m : [], ...(_o = frontmatter.contributors) !== null && _o !== void 0 ? _o : []].forEach((auth) => {
|
198702
198684
|
var _a7;
|
198703
198685
|
(_a7 = auth.affiliations) === null || _a7 === void 0 ? void 0 : _a7.forEach((aff) => {
|
198704
198686
|
affiliationIds.add(aff);
|
198705
198687
|
});
|
198706
198688
|
});
|
198707
|
-
(
|
198689
|
+
(_p = frontmatter.affiliations) === null || _p === void 0 ? void 0 : _p.forEach((aff) => {
|
198708
198690
|
if (aff.id)
|
198709
198691
|
affiliationIds.add(aff.id);
|
198710
198692
|
});
|
198711
198693
|
if (affiliationIds.size) {
|
198712
|
-
const affiliations2 = [...(
|
198694
|
+
const affiliations2 = [...(_q = base5.affiliations) !== null && _q !== void 0 ? _q : [], ...(_r = filler.affiliations) !== null && _r !== void 0 ? _r : []];
|
198713
198695
|
const affiliationLookup = {};
|
198714
198696
|
affiliations2.forEach((aff) => {
|
198715
198697
|
if (!aff.id || isStashPlaceholder(aff))
|
@@ -198727,6 +198709,29 @@ function fillProjectFrontmatter(base5, filler, opts, keys2) {
|
|
198727
198709
|
}
|
198728
198710
|
return frontmatter;
|
198729
198711
|
}
|
198712
|
+
function fillProjectFrontmatter(base5, filler, opts, keys2) {
|
198713
|
+
var _a6, _b, _c, _d2, _e, _f;
|
198714
|
+
const frontmatter = fillSiteFrontmatter(base5, filler, opts, keys2 !== null && keys2 !== void 0 ? keys2 : Object.keys(filler));
|
198715
|
+
if (filler.numbering || base5.numbering) {
|
198716
|
+
frontmatter.numbering = fillNumbering(base5.numbering, filler.numbering);
|
198717
|
+
}
|
198718
|
+
if (filler.math || base5.math) {
|
198719
|
+
frontmatter.math = { ...(_a6 = filler.math) !== null && _a6 !== void 0 ? _a6 : {}, ...(_b = base5.math) !== null && _b !== void 0 ? _b : {} };
|
198720
|
+
}
|
198721
|
+
if (filler.abbreviations || base5.abbreviations) {
|
198722
|
+
frontmatter.abbreviations = {
|
198723
|
+
...(_c = filler.abbreviations) !== null && _c !== void 0 ? _c : {},
|
198724
|
+
...(_d2 = base5.abbreviations) !== null && _d2 !== void 0 ? _d2 : {}
|
198725
|
+
};
|
198726
|
+
}
|
198727
|
+
if (filler.settings || base5.settings) {
|
198728
|
+
frontmatter.settings = {
|
198729
|
+
...(_e = filler.settings) !== null && _e !== void 0 ? _e : {},
|
198730
|
+
...(_f = base5.settings) !== null && _f !== void 0 ? _f : {}
|
198731
|
+
};
|
198732
|
+
}
|
198733
|
+
return frontmatter;
|
198734
|
+
}
|
198730
198735
|
|
198731
198736
|
// ../myst-frontmatter/dist/utils/unnestKernelSpec.js
|
198732
198737
|
function unnestKernelSpec(pageFrontmatter) {
|
@@ -220934,6 +220939,15 @@ var defaultHtmlToMdastOptions = {
|
|
220934
220939
|
attrs.alt = node3.properties.alt;
|
220935
220940
|
return h4(node3, "image", attrs);
|
220936
220941
|
},
|
220942
|
+
video(h4, node3) {
|
220943
|
+
const attrs = addClassAndIdentifier(node3);
|
220944
|
+
attrs.url = String(node3.properties.src || "");
|
220945
|
+
if (node3.properties.title)
|
220946
|
+
attrs.title = node3.properties.title;
|
220947
|
+
if (node3.properties.alt)
|
220948
|
+
attrs.alt = node3.properties.alt;
|
220949
|
+
return h4(node3, "image", attrs);
|
220950
|
+
},
|
220937
220951
|
figure(h4, node3) {
|
220938
220952
|
const attrs = addClassAndIdentifier(node3);
|
220939
220953
|
return h4(node3, "container", attrs, all5(h4, node3));
|
@@ -240572,8 +240586,8 @@ function configValidationOpts(vfile2, property, ruleId) {
|
|
240572
240586
|
}
|
240573
240587
|
};
|
240574
240588
|
}
|
240575
|
-
function fillSiteConfig(base5, filler) {
|
240576
|
-
return
|
240589
|
+
function fillSiteConfig(base5, filler, opts) {
|
240590
|
+
return fillSiteFrontmatter(base5, filler, opts, Object.keys(filler));
|
240577
240591
|
}
|
240578
240592
|
async function getValidatedConfigsFromFile(session, file, vfile2, stack) {
|
240579
240593
|
var _a6, _b, _c, _d2;
|
@@ -240636,7 +240650,7 @@ async function getValidatedConfigsFromFile(session, file, vfile2, stack) {
|
|
240636
240650
|
const { site: extSite, project: extProject } = await getValidatedConfigsFromFile(session, extFile, vfile2, stack);
|
240637
240651
|
session.store.dispatch(config.actions.receiveConfigExtension({ file: extFile }));
|
240638
240652
|
if (extSite) {
|
240639
|
-
site = site ? fillSiteConfig(extSite, site) : extSite;
|
240653
|
+
site = site ? fillSiteConfig(extSite, site, incrementOptions("extend", opts)) : extSite;
|
240640
240654
|
}
|
240641
240655
|
if (extProject) {
|
240642
240656
|
project = project ? fillProjectFrontmatter(extProject, project, projectOpts) : extProject;
|
@@ -240646,7 +240660,7 @@ async function getValidatedConfigsFromFile(session, file, vfile2, stack) {
|
|
240646
240660
|
const { site: rawSite, project: rawProject } = conf !== null && conf !== void 0 ? conf : {};
|
240647
240661
|
const path41 = (0, import_node_path8.dirname)(file);
|
240648
240662
|
if (rawSite) {
|
240649
|
-
site = fillSiteConfig(await validateSiteConfigAndThrow(session, path41, vfile2, rawSite), site !== null && site !== void 0 ? site : {});
|
240663
|
+
site = fillSiteConfig(await validateSiteConfigAndThrow(session, path41, vfile2, rawSite), site !== null && site !== void 0 ? site : {}, incrementOptions("extend", opts));
|
240650
240664
|
}
|
240651
240665
|
if (site) {
|
240652
240666
|
session.log.debug(`Loaded site config from ${file}`);
|
@@ -240694,12 +240708,12 @@ async function loadConfig(session, path41, opts) {
|
|
240694
240708
|
async function resolveToAbsolute(session, basePath, relativePath, opts) {
|
240695
240709
|
let message;
|
240696
240710
|
if ((opts === null || opts === void 0 ? void 0 : opts.allowRemote) && isUrl(relativePath)) {
|
240697
|
-
const cacheFilename = `config-item-${computeHash(relativePath)}${(0, import_node_path8.extname)(relativePath)}`;
|
240711
|
+
const cacheFilename = `config-item-${computeHash(relativePath)}${(0, import_node_path8.extname)(new URL(relativePath).pathname)}`;
|
240698
240712
|
if (!loadFromCache(session, cacheFilename, { maxAge: 30 })) {
|
240699
240713
|
try {
|
240700
240714
|
const resp = await session.fetch(relativePath);
|
240701
240715
|
if (resp.ok) {
|
240702
|
-
writeToCache(session, cacheFilename, await resp.
|
240716
|
+
writeToCache(session, cacheFilename, Buffer.from(await resp.arrayBuffer()));
|
240703
240717
|
} else {
|
240704
240718
|
message = `Bad response from config URL: ${relativePath}`;
|
240705
240719
|
}
|
@@ -287772,7 +287786,7 @@ var import_node_path16 = __toESM(require("path"), 1);
|
|
287772
287786
|
var import_nbtx = __toESM(require_cjs2(), 1);
|
287773
287787
|
|
287774
287788
|
// ../myst-cli/dist/version.js
|
287775
|
-
var version2 = "1.2.
|
287789
|
+
var version2 = "1.2.8";
|
287776
287790
|
var version_default2 = version2;
|
287777
287791
|
|
287778
287792
|
// ../myst-cli/dist/utils/headers.js
|
@@ -297841,6 +297855,8 @@ function validateFile(session, input3, opts) {
|
|
297841
297855
|
const filename = validateString(input3, opts);
|
297842
297856
|
if (!filename)
|
297843
297857
|
return;
|
297858
|
+
if (opts.allowRemote && isUrl(filename))
|
297859
|
+
return filename;
|
297844
297860
|
let resolvedFile;
|
297845
297861
|
if (opts.file) {
|
297846
297862
|
resolvedFile = import_node_path23.default.resolve(import_node_path23.default.dirname(opts.file), filename);
|
@@ -299021,7 +299037,7 @@ async function resolveTemplateFileOptions(session, mystTemplate, options) {
|
|
299021
299037
|
await Promise.all(((_a6 = mystTemplate.getValidatedTemplateYml().options) !== null && _a6 !== void 0 ? _a6 : []).map(async (option3) => {
|
299022
299038
|
if (option3.type === TemplateOptionType.file && options[option3.id]) {
|
299023
299039
|
const configPath = selectors_exports.selectCurrentSitePath(session.store.getState());
|
299024
|
-
const absPath = configPath ? await resolveToAbsolute(session, configPath, options[option3.id]) : options[option3.id];
|
299040
|
+
const absPath = configPath ? await resolveToAbsolute(session, configPath, options[option3.id], { allowRemote: true }) : options[option3.id];
|
299025
299041
|
const fileHash = hashAndCopyStaticFile(session, absPath, session.publicPath(), (m2) => {
|
299026
299042
|
addWarningForFile(session, options[option3.id], m2, "error", {
|
299027
299043
|
ruleId: RuleId.templateFileCopied
|
@@ -299117,7 +299133,7 @@ async function getSiteManifest(session, opts) {
|
|
299117
299133
|
const actions = (_c = siteConfig.actions) === null || _c === void 0 ? void 0 : _c.map((action) => resolveSiteAction(session, action, siteConfigFile, "actions")).filter((action) => !!action);
|
299118
299134
|
const siteFrontmatter = filterKeys(siteConfig, SITE_FRONTMATTER_KEYS);
|
299119
299135
|
const mystTemplate = await getMystTemplate(session, opts);
|
299120
|
-
const validatedOptions = mystTemplate.validateOptions((_d2 = siteFrontmatter.options) !== null && _d2 !== void 0 ? _d2 : {}, siteConfigFile);
|
299136
|
+
const validatedOptions = mystTemplate.validateOptions((_d2 = siteFrontmatter.options) !== null && _d2 !== void 0 ? _d2 : {}, siteConfigFile, { allowRemote: true });
|
299121
299137
|
const validatedFrontmatter = mystTemplate.validateDoc(siteFrontmatter, validatedOptions, void 0, siteConfigFile);
|
299122
299138
|
const resolvedOptions = await resolveTemplateFileOptions(session, mystTemplate, validatedOptions);
|
299123
299139
|
validatedFrontmatter.options = resolvedOptions;
|
@@ -299780,6 +299796,7 @@ function transformLiftCodeBlocksInJupytext(mdast2) {
|
|
299780
299796
|
}
|
299781
299797
|
|
299782
299798
|
// ../myst-cli/dist/transforms/dois.js
|
299799
|
+
var import_p_limit = __toESM(require_p_limit(), 1);
|
299783
299800
|
var CSL_JSON_MIMETYPE = "application/vnd.citationstyles.csl+json";
|
299784
299801
|
var BIBTEX_MIMETYPE = "application/x-bibtex";
|
299785
299802
|
function doiCSLJSONCacheFilename(normalizedDoi) {
|
@@ -299949,10 +299966,18 @@ async function transformLinkedDOIs(session, vfile2, mdast2, doiRenderer, path41)
|
|
299949
299966
|
});
|
299950
299967
|
if (linkedDois.length === 0 && citeDois.length === 0)
|
299951
299968
|
return renderer;
|
299952
|
-
|
299969
|
+
const total = linkedDois.length + citeDois.length;
|
299970
|
+
session.log.debug(`Found ${plural("%s DOI(s)", total)} to auto link.`);
|
299971
|
+
const logData = { total, done: false };
|
299972
|
+
setTimeout(() => {
|
299973
|
+
if (!logData.done) {
|
299974
|
+
session.log.info(`\u23F3 Waiting to resolve up to ${plural("%s DOI(s)", logData.total)} from doi.org...`);
|
299975
|
+
}
|
299976
|
+
}, 5e3);
|
299953
299977
|
let number2 = 0;
|
299978
|
+
const limit = (0, import_p_limit.default)(3);
|
299954
299979
|
await Promise.all([
|
299955
|
-
...linkedDois.map(async (
|
299980
|
+
...linkedDois.map((node3) => limit(async () => {
|
299956
299981
|
var _a6;
|
299957
299982
|
const normalized = (_a6 = doi.normalize(node3.url)) === null || _a6 === void 0 ? void 0 : _a6.toLowerCase();
|
299958
299983
|
if (!normalized)
|
@@ -299978,8 +300003,8 @@ async function transformLinkedDOIs(session, vfile2, mdast2, doiRenderer, path41)
|
|
299978
300003
|
citeNode.children = [];
|
299979
300004
|
}
|
299980
300005
|
return true;
|
299981
|
-
}),
|
299982
|
-
...citeDois.map(async (
|
300006
|
+
})),
|
300007
|
+
...citeDois.map((node3) => limit(async () => {
|
299983
300008
|
var _a6;
|
299984
300009
|
const normalized = (_a6 = doi.normalize(node3.label)) === null || _a6 === void 0 ? void 0 : _a6.toLowerCase();
|
299985
300010
|
if (!normalized)
|
@@ -299998,10 +300023,11 @@ async function transformLinkedDOIs(session, vfile2, mdast2, doiRenderer, path41)
|
|
299998
300023
|
doiRenderer[normalized] = cite3;
|
299999
300024
|
node3.label = cite3.render.getLabel();
|
300000
300025
|
return true;
|
300001
|
-
})
|
300026
|
+
}))
|
300002
300027
|
]);
|
300028
|
+
logData.done = true;
|
300003
300029
|
if (number2 > 0) {
|
300004
|
-
session.log.info(toc(`\u{1FA84} Linked ${
|
300030
|
+
session.log.info(toc(`\u{1FA84} Linked ${plural("%s DOI(s)", number2)} from doi.org in %s for ${path41}`));
|
300005
300031
|
}
|
300006
300032
|
return renderer;
|
300007
300033
|
}
|
@@ -300135,7 +300161,7 @@ var filter2 = (
|
|
300135
300161
|
// ../myst-cli/dist/transforms/links.js
|
300136
300162
|
var import_node_fs26 = __toESM(require("fs"), 1);
|
300137
300163
|
var import_node_path31 = __toESM(require("path"), 1);
|
300138
|
-
var
|
300164
|
+
var import_p_limit2 = __toESM(require_p_limit(), 1);
|
300139
300165
|
var LINK_MAX_AGE = 30;
|
300140
300166
|
var skippedDomains = [
|
300141
300167
|
"www.linkedin.com",
|
@@ -300265,7 +300291,7 @@ var StaticFileTransformer = class {
|
|
300265
300291
|
return true;
|
300266
300292
|
}
|
300267
300293
|
};
|
300268
|
-
var limitOutgoingConnections = (0,
|
300294
|
+
var limitOutgoingConnections = (0, import_p_limit2.default)(25);
|
300269
300295
|
async function checkLinksTransform(session, file, mdast2) {
|
300270
300296
|
const linkNodes = selectAll("link,linkBlock,card", mdast2).filter((link4) => !(link4.internal || link4.static));
|
300271
300297
|
if (linkNodes.length === 0)
|
@@ -314496,6 +314522,7 @@ function get_baseurl(session) {
|
|
314496
314522
|
return baseurl;
|
314497
314523
|
}
|
314498
314524
|
async function buildHtml(session, opts) {
|
314525
|
+
var _a6;
|
314499
314526
|
const template = await getMystTemplate(session, opts);
|
314500
314527
|
const baseurl = get_baseurl(session);
|
314501
314528
|
const htmlDir = import_node_path54.default.join(session.buildPath(), "html");
|
@@ -314521,7 +314548,12 @@ async function buildHtml(session, opts) {
|
|
314521
314548
|
import_fs_extra.default.copySync(session.publicPath(), import_node_path54.default.join(htmlDir, "build"));
|
314522
314549
|
import_fs_extra.default.copySync(import_node_path54.default.join(session.sitePath(), "config.json"), import_node_path54.default.join(htmlDir, "config.json"));
|
314523
314550
|
import_fs_extra.default.copySync(import_node_path54.default.join(session.sitePath(), "objects.inv"), import_node_path54.default.join(htmlDir, "objects.inv"));
|
314524
|
-
import_fs_extra.default.
|
314551
|
+
const xrefs = JSON.parse(import_fs_extra.default.readFileSync(import_node_path54.default.join(session.sitePath(), "myst.xref.json")).toString());
|
314552
|
+
(_a6 = xrefs.references) === null || _a6 === void 0 ? void 0 : _a6.forEach((ref) => {
|
314553
|
+
var _a7;
|
314554
|
+
ref.data = (_a7 = ref.data) === null || _a7 === void 0 ? void 0 : _a7.replace(/^\/content/, "");
|
314555
|
+
});
|
314556
|
+
import_fs_extra.default.writeFileSync(import_node_path54.default.join(htmlDir, "myst.xref.json"), JSON.stringify(xrefs));
|
314525
314557
|
rewriteAssetsFolder(htmlDir, baseurl);
|
314526
314558
|
process.exit(0);
|
314527
314559
|
}
|
mystmd-1.2.6.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
mystmd_py/main.py,sha256=AAcX3rJdJgYboCxwjHoCi1TdHSfBjNstbr562tjey44,1470
|
3
|
-
mystmd_py/myst.cjs,sha256=beeFPPbAqya5uAOl2INfp1XqRG5M1X8mmFxDfRASdU0,12889164
|
4
|
-
mystmd-1.2.6.dist-info/METADATA,sha256=11wq4L3t6DJrmBvDReiMNFugFdKk81aBuESntB8gd9A,2968
|
5
|
-
mystmd-1.2.6.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
6
|
-
mystmd-1.2.6.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
|
7
|
-
mystmd-1.2.6.dist-info/licenses/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
|
8
|
-
mystmd-1.2.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|