Skip to content

Commit ee9761e

Browse files
authored
migrate md to mdx (#5233)
* rename vote.md to vote.mdx * rename license.md to license.mdx * rename glossary.md to glossary.mdx * rename comparison.md to .mdx * rename html-webpack-plugin.md * rename automatic-prefetch-plugin.md * rename banner-plugin.md * rename commons-chunk-plugin.md * rename context-exclusion-plugin.md * rename context-replacement-plugin.md * rename dll-plugin.md * rename environment-plugin.md * rename eval-source-map-dev-tool-plugin.md * rename hashed-module-ids-plugin.md * rename hot-module-replacement-plugin.md * rename ignore-plugin.md * rename index.md * rename limit-chunk-count-plugin.md * rename module-concatenation-plugin.md * rename module-concatenation-plugin.md * rename NoEmitOnErrorsPlugin.md * rename normal-module-replacement-plugin.md * rename prefetch-plugin.md * rename profiling-plugin.md * rename progress-plugin.md * rename provide-plugin.md * rename source-map-dev-tool-plugin.md * rename split-chunks-plugin.md * rename watch-ignore-plugin.md * rename 3.md and fix whitespaces * rename 4.md * rename 5.md * rename index.md * rename blogs * rename api * rename concepts * fix proselint * rename why-webpack.md * rename configuration * rename contribute * rename guides * rename branding.md * Revert "rename branding.md" This reverts commit 2f58c58. * rename printable.md * Revert "rename printable.md" This reverts commit d256dc3. * rename index.md * Revert "Revert "rename branding.md"" This reverts commit 4abb3a8. * extract style * Revert "Revert "rename printable.md"" This reverts commit 20799a8. * Revert "Revert "Revert "rename printable.md""" This reverts commit 9a7a3ea. * Update src/content/concepts/configuration.mdx * rename to mdx
1 parent c038c71 commit ee9761e

File tree

108 files changed

+161
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+161
-123
lines changed

src/components/BrandingSample.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import PropTypes from 'prop-types';
2+
BrandingSample.propTypes = {
3+
color: PropTypes.string.isRequired,
4+
};
5+
export default function BrandingSample({ color }) {
6+
return <div style={{ backgroundColor: color }}>&nbsp;</div>;
7+
}

src/components/Site/Site.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function Site(props) {
7777
*/
7878
const _strip = (array) => {
7979
let anchorTitleIndex = array.findIndex(
80-
(item) => item.name.toLowerCase() === 'index.md'
80+
(item) => item.name.toLowerCase() === 'index.mdx'
8181
);
8282

8383
if (anchorTitleIndex !== -1) {

src/components/Splash/Splash.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { PlaceholderComponent } from '../Placeholder/Placeholder';
1111
import isClient from '../../utilities/is-client';
1212

1313
// Import Demo Content
14-
import SplashContent from '../../content/index.md';
14+
import SplashContent from '../../content/index.mdx';
1515

1616
// Load Styling
1717
import './Splash.scss';
@@ -55,11 +55,7 @@ const Splash = () => {
5555
<div className="splash__section splash__section--dark page__content">
5656
<Container>
5757
<Markdown>
58-
<div
59-
dangerouslySetInnerHTML={{
60-
__html: SplashContent,
61-
}}
62-
/>
58+
<SplashContent />
6359
</Markdown>
6460
</Container>
6561
</div>

src/components/Splash/first/left.mdx

Lines changed: 7 additions & 0 deletions

src/components/Splash/first/right.mdx

Lines changed: 7 additions & 0 deletions

src/components/Splash/second/left.mdx

Lines changed: 13 additions & 0 deletions
Lines changed: 15 additions & 0 deletions

src/content/awesome-webpack.md renamed to src/content/awesome-webpack.mdx

Lines changed: 1 addition & 1 deletion

src/content/blog/2020-10-10-webpack-5-release.md renamed to src/content/blog/2020-10-10-webpack-5-release.mdx

Lines changed: 1 addition & 1 deletion

src/content/branding.md renamed to src/content/branding.mdx

Lines changed: 49 additions & 20 deletions

src/content/concepts/plugins.md renamed to src/content/concepts/plugins.mdx

Lines changed: 1 addition & 1 deletion

src/content/contribute/index.md renamed to src/content/contribute/index.mdx

Lines changed: 12 additions & 7 deletions

src/content/guides/asset-management.md renamed to src/content/guides/asset-management.mdx

Lines changed: 1 addition & 1 deletion

src/content/guides/caching.md renamed to src/content/guides/caching.mdx

Lines changed: 4 additions & 4 deletions

src/content/guides/code-splitting.md renamed to src/content/guides/code-splitting.mdx

Lines changed: 1 addition & 1 deletion

src/content/index.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)