Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade next-ignite #1895

Merged
merged 2 commits into from Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
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
Expand Up @@ -69,10 +69,9 @@
"lerna": "^3.22.1",
"lint-staged": "^10.0.7",
"mock-fs": "^4.13.0",
"next-ignite": "^0.9.20",
"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