From bcb07c3f3af28b09e04cdc9a1d93a386fab1399e Mon Sep 17 00:00:00 2001 From: chenxsan Date: Sat, 24 Jul 2021 13:12:27 +0800 Subject: [PATCH] use mdx for printable --- .gitignore | 2 +- package.json | 2 +- src/components/Site/Site.jsx | 2 +- src/scripts/concatenate-docs.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e961bbecbdd5..e1ad0f31030a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,5 @@ package-lock.json .cache internal-links.tap stats.json -printable.md +printable.mdx repositories/*.json diff --git a/package.json b/package.json index 8d7cbaace943..cbd03b4ebe64 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ }, "scripts": { "clean-dist": "rimraf ./dist", - "clean-printable": "rimraf src/content/**/printable.md", + "clean-printable": "rimraf src/content/**/printable.mdx", "preclean": "run-s clean-dist clean-printable", "clean": "rimraf src/content/**/_*.md src/**/_*.json repositories/*.json", "start": "npm run clean-dist && webpack serve --config webpack.dev.js --env dev --progress --node-env development", diff --git a/src/components/Site/Site.jsx b/src/components/Site/Site.jsx index 99d9709d26a5..8c834330f2d9 100644 --- a/src/components/Site/Site.jsx +++ b/src/components/Site/Site.jsx @@ -98,7 +98,7 @@ function Site(props) { })) .filter( (page) => - page.title !== 'printable.md' && !page.content.includes('Printable') + page.title !== 'printable.mdx' && !page.content.includes('Printable') ); }; diff --git a/src/scripts/concatenate-docs.js b/src/scripts/concatenate-docs.js index 7885ed25d93c..b801dee7fcdb 100644 --- a/src/scripts/concatenate-docs.js +++ b/src/scripts/concatenate-docs.js @@ -5,7 +5,7 @@ const front = require('front-matter'); // root path const rootPath = path.join('src', 'content'); -const outFileName = 'printable.md'; +const outFileName = 'printable.mdx'; console.info( 'Concatenating *.md files of each content directory to create chapter-wide help files to be used for printing'