Skip to content

Commit

Permalink
use mdx for printable
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Jul 24, 2021
1 parent 3f03bdb commit ec9e021
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ package-lock.json
.cache
internal-links.tap
stats.json
printable.md
printable.mdx
repositories/*.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Site/Site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/concatenate-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ec9e021

Please sign in to comment.