mystmd 1.5.1__tar.gz → 1.6.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mystmd
3
- Version: 1.5.1
3
+ Version: 1.6.0
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mystmd",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
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.5.1"
48
+ "myst-cli": "^1.6.0"
49
49
  }
50
50
  }
@@ -193391,7 +193391,7 @@ var {
193391
193391
  } = import_index.default;
193392
193392
 
193393
193393
  // src/version.ts
193394
- var version = "1.5.1";
193394
+ var version = "1.6.0";
193395
193395
  var version_default = version;
193396
193396
 
193397
193397
  // ../myst-cli/dist/build/build.js
@@ -238747,17 +238747,29 @@ function listFromPages(pages, projectSlug) {
238747
238747
  function listItemFromPages(pages, projectSlug) {
238748
238748
  if (pages.length === 0)
238749
238749
  return;
238750
- const { title, slug, enumerator, level } = pages[0];
238750
+ const { title, slug, url, enumerator, level } = pages[0];
238751
238751
  const text7 = {
238752
238752
  type: "text",
238753
238753
  value: `${enumerator ? `${enumerator} ` : ""}${title}`
238754
238754
  };
238755
- const child = slug != null ? {
238756
- type: "link",
238757
- url: `${projectSlug ? `/${projectSlug}` : ""}/${slug}`,
238758
- internal: true,
238759
- children: [text7]
238760
- } : text7;
238755
+ let child;
238756
+ if (url != null) {
238757
+ child = {
238758
+ type: "link",
238759
+ url,
238760
+ internal: false,
238761
+ children: [text7]
238762
+ };
238763
+ } else if (slug != null) {
238764
+ child = {
238765
+ type: "link",
238766
+ url: `${projectSlug ? `/${projectSlug}` : ""}/${slug}`,
238767
+ internal: true,
238768
+ children: [text7]
238769
+ };
238770
+ } else {
238771
+ child = text7;
238772
+ }
238761
238773
  const item = {
238762
238774
  type: "listItem",
238763
238775
  children: [child]
@@ -289981,7 +289993,7 @@ var import_mime_types = __toESM(require_mime_types(), 1);
289981
289993
  var import_node_path16 = __toESM(require("path"), 1);
289982
289994
 
289983
289995
  // ../myst-cli/dist/version.js
289984
- var version2 = "1.5.1";
289996
+ var version2 = "1.6.0";
289985
289997
  var version_default2 = version2;
289986
289998
 
289987
289999
  // ../myst-cli/dist/utils/headers.js
@@ -290296,6 +290308,10 @@ function npmPackageName() {
290296
290308
  var _a6;
290297
290309
  return (_a6 = process.env.MYSTMD_NPM_PACKAGE_NAME) !== null && _a6 !== void 0 ? _a6 : "mystmd";
290298
290310
  }
290311
+ function npmBinaryName() {
290312
+ var _a6;
290313
+ return (_a6 = process.env.MYSTMD_NPM_BINARY_NAME) !== null && _a6 !== void 0 ? _a6 : "myst";
290314
+ }
290299
290315
  function homeURL() {
290300
290316
  var _a6;
290301
290317
  return (_a6 = process.env.MYSTMD_HOME_URL) !== null && _a6 !== void 0 ? _a6 : "https://mystmd.org";
@@ -318711,7 +318727,7 @@ async function currentSiteRoutes(session, host, baseurl, opts) {
318711
318727
  const pageSlug = slugToUrl(page.slug);
318712
318728
  return {
318713
318729
  url: `${host}${projSlug}/${pageSlug}`,
318714
- path: import_node_path57.default.join((_a8 = proj.slug) !== null && _a8 !== void 0 ? _a8 : "", `${pageSlug}.html`)
318730
+ path: import_node_path57.default.join((_a8 = proj.slug) !== null && _a8 !== void 0 ? _a8 : "", `${pageSlug}/index.html`)
318715
318731
  };
318716
318732
  }),
318717
318733
  // Download all of the configured JSON
@@ -321579,7 +321595,7 @@ async function checkAtGitRoot() {
321579
321595
 
321580
321596
  // ../myst-cli/dist/init/gh-actions/index.js
321581
321597
  function createGithubPagesAction({ defaultBranch = "main", username = "username", isGithubIO }) {
321582
- return `# This file was created automatically with \`${binaryName()} init --gh-pages\` \u{1FA84} \u{1F49A}
321598
+ return `# This file was created automatically with \`${npmBinaryName()} init --gh-pages\` \u{1FA84} \u{1F49A}
321583
321599
  # Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.
321584
321600
 
321585
321601
  name: ${readableName()} GitHub Pages Deploy
@@ -321619,7 +321635,7 @@ jobs:
321619
321635
  - name: Install ${readableName()}
321620
321636
  run: npm install -g ${npmPackageName()}
321621
321637
  - name: Build HTML Assets
321622
- run: ${binaryName()} build --html
321638
+ run: ${npmBinaryName()} build --html
321623
321639
  - name: Upload artifact
321624
321640
  uses: actions/upload-pages-artifact@v3
321625
321641
  with:
@@ -321630,7 +321646,7 @@ jobs:
321630
321646
  `;
321631
321647
  }
321632
321648
  function createGithubCurvenoteAction({ defaultBranch = "main" }) {
321633
- return `# This file was created automatically with \`${binaryName()} init --gh-curvenote\` \u{1FA84} \u{1F49A}
321649
+ return `# This file was created automatically with \`${npmBinaryName()} init --gh-curvenote\` \u{1FA84} \u{1F49A}
321634
321650
 
321635
321651
  name: Curvenote Deploy
321636
321652
  on:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes