Skip to content

Commit

Permalink
move to shiki
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Mar 19, 2021
1 parent ced588d commit 23579f0
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 52 deletions.
31 changes: 0 additions & 31 deletions docs/components/defaultLabelsRenderer.js

This file was deleted.

20 changes: 20 additions & 0 deletions docs/generate-command-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { camelCase } = require("change-case");
const endent = require("endent").default;
const glob = require("fast-glob");
const docs = require("command-line-docs").default;
const { defaultLabels } = require("../packages/core/dist/semver");
const { commands } = require("../packages/cli/dist/parse-args");

try {
Expand Down Expand Up @@ -100,3 +101,22 @@ glob
lines.join("\n")
);
});

fs.writeFileSync(
path.join(__dirname, "./pages/docs/generated/defaultLabelsRenderer.mdx"),
`---
title: "Default Labels"
layout: 'none'
---
<details>
<summary>Click here to see the default label configuration</summary>
\`\`\`json
${JSON.stringify(defaultLabels, null, 2)}
\`\`\`
</details>
`
);
9 changes: 0 additions & 9 deletions docs/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ class MyDocument extends Document {
--color-gray-1000: #181517;
}
`}</style>
<link
rel="stylesheet"
href="https://www.unpkg.com/prismjs@1.19.0/themes/prism.css"
/>
<link
rel="stylesheet"
href="https://www.unpkg.com/prismjs@1.19.0/themes/prism-tomorrow.css"
media="(prefers-color-scheme: dark)"
/>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-142981718-4"
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/configuration/autorc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: \`auto\` Configuration File
---

import { DefaultLabelRenderer } from "../../../components/defaultLabelsRenderer";
import DefaultLabelRenderer from "../generated/defaultLabelsRenderer.mdx";

`auto` uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) to find your config.
This means you can define this file a variety of ways.
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@
"lerna": "^3.22.1",
"lint-staged": "^10.0.7",
"mock-fs": "^4.13.0",
"next-ignite": "^0.10.7",
"next-ignite": "^0.10.9",
"patch-package": "^6.2.2",
"prettier": "^2.2.1",
"prism-react-renderer": "^1.1.1",
"push-dir": "^0.4.1",
"rimraf": "^3.0.0",
"simple-react-lightbox": "^3.1.2-3",
Expand Down
26 changes: 17 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10926,10 +10926,10 @@ neo-async@^2.6.2:
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==

next-ignite@^0.10.7:
version "0.10.7"
resolved "https://registry.yarnpkg.com/next-ignite/-/next-ignite-0.10.7.tgz#a2a617ce6741347ac5d9d625ef3c944f46e5fd94"
integrity sha512-iWY29rMXVWPciRPZKIBWc+USDVcfJkoy3LkKHcTS4YFYcMyeebDEd7V2zHIKa335VvQVBloQPD7E5eWCDci/BQ==
next-ignite@^0.10.9:
version "0.10.9"
resolved "https://registry.yarnpkg.com/next-ignite/-/next-ignite-0.10.9.tgz#035e5714ca093b010a343ad23edaf840ac0bd560"
integrity sha512-1w/bdyAr2C+yC7CpqVtKjEM0TEXDYK0Jm2n+k6Yfw4nt69ZWbzp6RLdmSzoU6L4nidhpSSFBtZppVT4ICKcR6g==
dependencies:
"@babel/helper-call-delegate" "^7.12.1"
"@next/bundle-analyzer" "^9.4.0"
Expand Down Expand Up @@ -10966,6 +10966,7 @@ next-ignite@^0.10.7:
rehype "^9.0.1"
rehype-accessible-emojis "^0.3.2"
rehype-autolink-headings "^3.0.0"
rehype-shiki-reloaded "^0.0.10"
rehype-slug "^3.0.0"
remark-emoji "^2.0.2"
scroll-lock "^2.1.4"
Expand Down Expand Up @@ -12490,11 +12491,6 @@ pretty-ms@^7.0.0:
dependencies:
parse-ms "^2.1.0"

prism-react-renderer@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-1.2.0.tgz#5ad4f90c3e447069426c8a53a0eafde60909cdf4"
integrity sha512-GHqzxLYImx1iKN1jJURcuRoA/0ygCcNhfGw1IT8nPIMzarmKQ3Nc+JcG0gi8JXQzuh0C5ShE4npMIoqNin40hg==

process-nextick-args@~2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
Expand Down Expand Up @@ -13210,6 +13206,18 @@ rehype-parse@^6.0.0:
parse5 "^5.0.0"
xtend "^4.0.0"

rehype-shiki-reloaded@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/rehype-shiki-reloaded/-/rehype-shiki-reloaded-0.0.10.tgz#8ad79ab6a42d3dc2431c5174a553a9a3d12713a5"
integrity sha512-0TiOzXmUuPLU/q0OMHrBh56IZ5yIZL1MPC2EXQb9dHGERA5jPbxr8kHd1KRJhpWZBb2mHmtdoXyPNm00kze+gg==
dependencies:
fast-copy "^2.1.1"
hast-util-to-string "^1.0.4"
shiki "^0.9.2"
shiki-languages "^0.2.7"
unist-builder "^2.0.3"
unist-util-visit "^2.0.3"

rehype-slug@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/rehype-slug/-/rehype-slug-3.0.0.tgz#8416257df9665981894a1f0cd42b13c407bbcc8e"
Expand Down

0 comments on commit 23579f0

Please sign in to comment.