Skip to content

docs(en): merge webpack.js.org/master into webpack.js.org/cn @ 5807d75e #1267

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

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
3f2b148
docs(configuration): document buildHttp (#5276)
chenxsan Aug 9, 2021
be19381
docs(configuration): Update index.mdx (#5282)
jmcscript Aug 10, 2021
beacb51
detect all broken links (#5284)
chenxsan Aug 10, 2021
48339bb
Revert "detect all broken links (#5284)" (#5286)
chenxsan Aug 10, 2021
7e82c02
clean up alex configurations (#5281)
chenxsan Aug 10, 2021
c038c71
Add new page for awesome-webpack (#5275)
snitin315 Aug 10, 2021
ee9761e
migrate md to mdx (#5233)
chenxsan Aug 10, 2021
c63f91b
build(deps): bump path-parse from 1.0.6 to 1.0.7 (#5287)
dependabot[bot] Aug 10, 2021
26b56cd
docs(configuration): update `infrastructureLogging.debug` and `infras…
snitin315 Aug 11, 2021
3582696
docs(guides): Update asset-modules.mdx (#5289)
jmcscript Aug 11, 2021
570c5ce
docs(configuration): sort output options alphabetically (#5292)
chenxsan Aug 13, 2021
6c8940e
docs(migrate): Fix some grammatical errors in 5.mdx (#5290)
getsnoopy Aug 14, 2021
164c97b
docs(plugins): Replaced jargon words with better equivalents (#5291)
getsnoopy Aug 14, 2021
a95ae23
docs(migrate): Fix optimization.moduleIds setting in 5.mdx (#5293)
akccakcctw Aug 14, 2021
a444ae4
docs(configuration): remove `enforceModuleExtension` from resolve doc…
snitin315 Aug 14, 2021
a7d26c6
Deprecate loaders (#5294)
chenxsan Aug 14, 2021
8501d04
docs(configuration): sort `performance` options (#5295)
snitin315 Aug 15, 2021
d556930
docs(configuration): fix dev server options link (#5301)
anshumanv Aug 17, 2021
78f5e1f
docs(configuration): update documentation for webpack-dev-server v4 (…
snitin315 Aug 19, 2021
c2cab7e
docs(configuration): update link for `serve` options (#5303)
snitin315 Aug 19, 2021
702390a
fetch readme.md as mdx (#5298)
chenxsan Aug 19, 2021
2560fce
docs(configuration): add devserver.onListening (#5304)
snitin315 Aug 19, 2021
75baff0
docs(configuration): add `devServer.setupExitSignals` (#5305)
snitin315 Aug 19, 2021
01fe3f1
docs(configuration): update `static.publicPath` type (#5306)
snitin315 Aug 19, 2021
2402ab4
docs(concepts): close issue #5308 (#5309)
chenxsan Aug 19, 2021
32b90c8
docs(configuration): Clarify use of paths in Condition (#5302)
fr-pagesurfer Aug 20, 2021
f8618c3
docs(configuration): add link to migration guide for devServer v4 (#5…
snitin315 Aug 20, 2021
84a5964
docs(guides): Fix related link format (#5312)
atesgoral Aug 20, 2021
98973c7
update icons for dark mode (#5318)
chenxsan Aug 20, 2021
adf6f27
docs: fix --open-aoo-name typo (#5319)
okorz001 Aug 20, 2021
507fee7
docs: replace contentBase by static (#5317)
i-oliva Aug 21, 2021
043ffdd
docs: fix typos in content/ (#5320)
saintmalik Aug 21, 2021
a93cce9
docs(configuration): fix typo in `devServer.onListening` usage (#5310)
snitin315 Aug 21, 2021
fe0d91a
docs(configuration): update `onAfterSetupMiddleware` and `onBeforeSet…
snitin315 Aug 21, 2021
de5b7ce
chore: upgrade webpack-dev-server to v4 (#5321)
chenxsan Aug 21, 2021
f5544bd
docs(configuration): add more commands for devServer (#5323)
snitin315 Aug 21, 2021
26d1cbd
docs(configuration): update `allowedHosts` CLI usage (#5324)
snitin315 Aug 21, 2021
2d3de8e
set limit for dependabot (#5325)
chenxsan Aug 21, 2021
6e31a5f
build(deps-dev): bump cypress from 8.2.0 to 8.3.0 (#5326)
dependabot[bot] Aug 21, 2021
4b42605
build(deps-dev): bump workbox-webpack-plugin from 6.2.2 to 6.2.4 (#5327)
dependabot[bot] Aug 21, 2021
365e2ad
build(deps-dev): bump sass from 1.37.5 to 1.38.0 (#5330)
dependabot[bot] Aug 21, 2021
c2234a8
build(deps-dev): bump webpack-cli from 4.7.2 to 4.8.0 (#5332)
dependabot[bot] Aug 21, 2021
317d63f
build(deps-dev): bump @octokit/rest from 18.9.0 to 18.9.1 (#5333)
dependabot[bot] Aug 21, 2021
a0af602
build(deps): bump workbox-window from 6.2.2 to 6.2.4 (#5329)
dependabot[bot] Aug 21, 2021
8bbbf42
build(deps-dev): bump directory-tree from 2.2.9 to 2.3.1 (#5334)
dependabot[bot] Aug 21, 2021
ecff783
build(deps-dev): bump sirv-cli from 1.0.12 to 1.0.14 (#5331)
dependabot[bot] Aug 21, 2021
7cc164a
build(deps-dev): bump http-server from 0.12.3 to 13.0.1 (#5335)
dependabot[bot] Aug 21, 2021
f46c948
build(deps-dev): bump @pmmmwh/react-refresh-webpack-plugin (#5336)
dependabot[bot] Aug 21, 2021
494aaef
build(deps-dev): bump eslint-plugin-mdx from 1.14.1 to 1.15.0 (#5338)
dependabot[bot] Aug 21, 2021
030dc63
build(deps-dev): bump hyperlink from 4.6.1 to 4.7.0 (#5340)
dependabot[bot] Aug 21, 2021
5807d75
build(deps-dev): bump webpack from 5.48.0 to 5.51.1 (#5339)
dependabot[bot] Aug 21, 2021
ab2ede6
docs(en): merging all conflicts
docschina-bot Aug 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .alexignore

This file was deleted.

35 changes: 0 additions & 35 deletions .alexrc

This file was deleted.

1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
open-pull-requests-limit: 10
schedule:
interval: "daily"
labels:
Expand Down
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 examples/module-federation/app1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"html-webpack-plugin": "^5.3.1",
"webpack": "^5.38.1",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
"webpack-dev-server": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/module-federation/app1/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
entry: "./src/index",
mode: "development",
devServer: {
contentBase: path.join(__dirname, "dist"),
static: path.join(__dirname, "dist"),
port: 3001,
},
output: {
Expand Down
2 changes: 1 addition & 1 deletion examples/module-federation/app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"html-webpack-plugin": "^5.3.1",
"webpack": "^5.38.1",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
"webpack-dev-server": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/module-federation/app2/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
entry: './src/index',
mode: 'development',
devServer: {
contentBase: path.join(__dirname, 'dist'),
static: path.join(__dirname, 'dist'),
port: 3002,
},
output: {
Expand Down
28 changes: 14 additions & 14 deletions 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 Expand Up @@ -80,32 +80,32 @@
"@babel/preset-react": "^7.14.5",
"@mdx-js/loader": "^1.6.21",
"@octokit/auth-action": "^1.3.3",
"@octokit/rest": "^18.9.0",
"@octokit/rest": "^18.9.1",
"@pmmmwh/react-refresh-webpack-plugin": "next",
"@svgr/webpack": "^5.5.0",
"autoprefixer": "^10.3.1",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^5.2.7",
"css-minimizer-webpack-plugin": "^3.0.2",
"cypress": "^8.2.0",
"directory-tree": "^2.2.9",
"cypress": "^8.3.0",
"directory-tree": "^2.3.1",
"directory-tree-webpack-plugin": "^1.0.2",
"docschina-remark-slugger": "^0.1.4",
"duplexer": "^0.1.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-markdown": "^2.2.0",
"eslint-plugin-mdx": "^1.14.1",
"eslint-plugin-mdx": "^1.15.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"front-matter": "^4.0.2",
"html-loader": "^2.1.2",
"html-webpack-plugin": "^5.3.2",
"http-server": "^0.12.3",
"http-server": "^13.0.1",
"husky": "^7.0.1",
"hyperlink": "^4.6.1",
"hyperlink": "^4.7.0",
"jest": "^27.0.6",
"lint-staged": "^11.1.2",
"lodash": "^4.17.21",
Expand All @@ -132,9 +132,9 @@
"remark-refractor": "git://github.com/montogeek/remark-refractor.git",
"remark-slug": "^6.1.0",
"rimraf": "^3.0.2",
"sass": "^1.37.5",
"sass": "^1.38.0",
"sass-loader": "^12.1.0",
"sirv-cli": "^1.0.12",
"sirv-cli": "^1.0.14",
"sitemap-static": "^0.4.2",
"start-server-and-test": "^1.13.1",
"static-site-generator-webpack-plugin": "^3.4.1",
Expand All @@ -144,12 +144,12 @@
"textlint": "^11.8.2",
"textlint-rule-heading": "^1.0.10",
"unist-util-visit": "^2.0.3",
"webpack": "^5.48.0",
"webpack": "^5.51.1",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^4.0.0-rc.0",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.0.0",
"webpack-merge": "^5.8.0",
"workbox-webpack-plugin": "^6.2.2"
"workbox-webpack-plugin": "^6.2.4"
},
"dependencies": {
"@docsearch/react": "^3.0.0-alpha.39",
Expand All @@ -167,7 +167,7 @@
"unist-util-visit": "^2.0.3",
"webpack-pwa-manifest": "^4.3.0",
"webpack.vote": "https://github.com/webpack/voting-app.git",
"workbox-window": "^6.2.2"
"workbox-window": "^6.2.4"
},
"resolutions": {
"sitemap-static/minimist": "1.2.5",
Expand Down
1 change: 0 additions & 1 deletion src/assets/language-icon.svg

This file was deleted.

7 changes: 7 additions & 0 deletions src/components/BrandingSample.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import PropTypes from 'prop-types';
BrandingSample.propTypes = {
color: PropTypes.string.isRequired,
};
export default function BrandingSample({ color }) {
return <div style={{ backgroundColor: color }}>&nbsp;</div>;
}
35 changes: 29 additions & 6 deletions src/components/Dropdown/Dropdown.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Component } from 'react';
import LanguageIcon from '../../assets/language-icon.svg';
import './Dropdown.scss';
import PropTypes from 'prop-types';

Expand Down Expand Up @@ -62,11 +61,35 @@ export default class Dropdown extends Component {
aria-label="Select language"
onClick={this._handleClick.bind(this)}
>
<img
className="dropdown__language"
alt="select language"
src={LanguageIcon}
/>
<svg
viewBox="0 0 610 560"
xmlns="http://www.w3.org/2000/svg"
className="dropdown__language text-gray-100 hover:text-blue-200 transition-colors duration-200"
>
<path d="m304.8 99.2-162.5-57.3v353.6l162.5-52.6z" />
<path
d="m300.9 99 168.7-57.3v353.6l-168.7-52.5zm-200.7 358.4 200.7-66.9v-291.5l-200.7 66.9z"
fill="currentColor"
/>
<path d="m392.4 461.8 28.4 46.8 15-43.5zm-223.9-262.3c-1.1-1 1.4 8.6 4.8 12 6.1 6.1 10.8 6.9 13.3 7 5.6.2 12.5-1.4 16.5-3.1s10.9-5.2 13.5-10.4c.6-1.1 2.1-3 1.1-7.5-.7-3.5-3-4.8-5.7-4.6s-11 2.4-15 3.6-12.2 3.7-15.8 4.5-11.5-.3-12.7-1.5zm101.2 114.8c-1.6-.6-34.3-14.1-38.9-16.4a368 368 0 0 0 -17.5-7.5c12.3-19 20.1-33.4 21.2-35.6 1.9-4 15-29.5 15.3-31.1s.7-7.5.4-8.9-5.1 1.3-11.6 3.5-18.9 10.2-23.7 11.2-20.1 6.8-28 9.4c-7.8 2.6-22.7 7.1-28.8 8.8-6.1 1.6-11.4 1.8-14.9 2.8 0 0 .5 4.8 1.4 6.2s4.1 5 7.9 5.9c3.8 1 10 .6 12.8-.1s7.7-3.1 8.4-4.1c.7-1.1-.3-4.3.8-5.3s16.1-4.5 21.7-6.2 27.2-9.2 30.1-8.8a916 916 0 0 1 -23.9 47.7 821 821 0 0 1 -45 63.3c-5.3 6-18 21.5-22.4 25 1.1.3 9-.4 10.4-1.3 8.9-5.5 23.8-24.1 28.6-29.7a489.1 489.1 0 0 0 36.7-49.4c1.9.8 17.6 13.6 21.7 16.4a293 293 0 0 0 23.7 13.3c3.5 1.5 16.9 7.7 17.5 5.6.7-1.8-2.3-14.1-3.9-14.7z" />
<path
clipRule="evenodd"
d="m194.1 484.7a204.9 204.9 0 0 0 30.7 14.5 233.6 233.6 0 0 0 46.4 12c.5 0 16 1.9 19.2 1.9h15.7c6.1-.5 11.8-.9 17.9-1.7 4.9-.7 10.3-1.6 15.5-2.8 3.8-.9 7.8-1.7 11.7-3 3.7-1 7.8-2.4 11.8-3.8l8.2-3.1c2.3-1 5.1-2.3 7.7-3.3a243 243 0 0 0 19.2-10c2.3-1.2 7.5-5.2 10.3-5.2 3.1 0 5.2 2.8 5.2 5.2 0 5.1-6.8 6.6-9.9 8.9-3.3 2.3-7.3 4-10.8 5.9-7 3.7-14.1 6.8-20.9 9.4a251 251 0 0 1 -27.3 8.5c-3.3.7-6.6 1.6-9.9 2.1-1.7.3-19.9 3.1-24.9 3.1h-23a293.9 293.9 0 0 1 -35.1-5.2 196 196 0 0 1 -33.1-10.3c-12-4.5-24.6-10.5-36.4-18.3-2.1-1.4-2.3-2.8-2.3-4.4a5 5 0 0 1 5.1-5.1c2.4.1 8 4.2 9 4.7zm101.4-98.1-189.9 63.2v-280.1l189.9-63.2zm10.6-288.3v292.7a6 6 0 0 1 -1.2 2.6c-.3.5-1 1.2-1.6 1.4a14621 14621 0 0 1 -203.1 67.6c-2.1 0-4-1.4-5.1-3.7 0-.2-.2-.3-.2-.7v-292.8c.3-.9.5-2.1 1.2-2.8 1.4-1.9 3.8-2.3 5.4-2.8 3-1 196.1-65.8 198.9-65.8 1.9 0 5.7 1.2 5.7 4.3z"
fillRule="evenodd"
/>
<path
clipRule="evenodd"
d="m464.3 388-158-49.1v-236l158-53.7zm10.6-345.8v352.4c-.2 4-3 5.7-5.6 5.7-2.3 0-18.6-5.6-21.4-6.4l-65.8-20.4-14.6-4.7-12.9-4c-18.6-5.7-37.6-11.5-56.3-17.8-.7-.2-2.4-2.6-2.4-3.1v-246.1c.3-.9.7-1.9 1.6-2.6 1.4-1.6 61.1-21.4 84.7-29.3 6.3-2.3 84.8-29.3 87.3-29.3 3 .1 5.4 2.3 5.4 5.6z"
fillRule="evenodd"
/>
<path d="m515 461.8-211.1-67.3.9-292.8 210.2 66.9z" />
<path
clipRule="evenodd"
d="m408.6 232.5-20.7 50.1 38.1 11.5zm-12.4-47.2 27.2 8.2 49.5 178.6-27.9-8.5-10-36.7-57.7-17.5-12.4 29.9-27.9-8.5z"
fill="currentColor"
fillRule="evenodd"
/>
</svg>
{/* Commented out until media breakpoints are in place
<span>{ items[0].title }</span> */}
<i aria-hidden="true" className="dropdown__arrow" />
Expand Down
3 changes: 3 additions & 0 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const Footer = () => (
<Link className="footer__link" to="https://webpack.threadless.com/">
周边
</Link>
<Link className="footer__link" to="/awesome-webpack/">
Awesome webpack
</Link>
<Link className="footer__link" to="/glossary/">
术语
</Link>
Expand Down
62 changes: 60 additions & 2 deletions src/components/HelloDarkness.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,69 @@ export default function HelloDarkness() {
aria-label={
theme === DARK ? 'Switch to light theme' : 'Switch to dark theme'
}
className="bg-transparent border-none cursor-pointer text-[16px] p-0 inline-flex items-center"
className="bg-transparent border-none cursor-pointer text-[16px] p-0 inline-flex items-center text-gray-100 hover:text-blue-200 transition-colors duration-200"
onClick={themeSwitcher}
data-testid="hello-darkness"
>
{theme === DARK ? '🌙' : '☀️'}
{theme === DARK ? (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1.2em"
height="1.2em"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M20.742 13.045a8.088 8.088 0 0 1-2.077.271c-2.135 0-4.14-.83-5.646-2.336a8.025 8.025 0 0 1-2.064-7.723A1 1 0 0 0 9.73 2.034a10.014 10.014 0 0 0-4.489 2.582c-3.898 3.898-3.898 10.243 0 14.143a9.937 9.937 0 0 0 7.072 2.93a9.93 9.93 0 0 0 7.07-2.929a10.007 10.007 0 0 0 2.583-4.491a1.001 1.001 0 0 0-1.224-1.224zm-2.772 4.301a7.947 7.947 0 0 1-5.656 2.343a7.953 7.953 0 0 1-5.658-2.344c-3.118-3.119-3.118-8.195 0-11.314a7.923 7.923 0 0 1 2.06-1.483a10.027 10.027 0 0 0 2.89 7.848a9.972 9.972 0 0 0 7.848 2.891a8.036 8.036 0 0 1-1.484 2.059z"
fill="currentColor"
></path>
</svg>
) : (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1.2em"
height="1.2em"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 512 512"
>
<path
d="M256 387c-8.5 0-15.4 6.9-15.4 15.4v46.2c0 8.5 6.9 15.4 15.4 15.4s15.4-6.9 15.4-15.4v-46.2c0-8.5-6.9-15.4-15.4-15.4z"
fill="currentColor"
></path>
<path
d="M256 48c-8.5 0-15.4 6.9-15.4 15.4v46.2c0 8.5 6.9 15.4 15.4 15.4s15.4-6.9 15.4-15.4V63.4c0-8.5-6.9-15.4-15.4-15.4z"
fill="currentColor"
></path>
<path
d="M125 256c0-8.5-6.9-15.4-15.4-15.4H63.4c-8.5 0-15.4 6.9-15.4 15.4s6.9 15.4 15.4 15.4h46.2c8.5 0 15.4-6.9 15.4-15.4z"
fill="currentColor"
></path>
<path
d="M448.6 240.6h-46.2c-8.5 0-15.4 6.9-15.4 15.4s6.9 15.4 15.4 15.4h46.2c8.5 0 15.4-6.9 15.4-15.4s-6.9-15.4-15.4-15.4z"
fill="currentColor"
></path>
<path
d="M152.5 344.1c-4.1 0-8 1.6-10.9 4.5l-32.7 32.7c-2.9 2.9-4.5 6.8-4.5 10.9s1.6 8 4.5 10.9c2.9 2.9 6.8 4.5 10.9 4.5 4.1 0 8-1.6 10.9-4.5l32.7-32.7c6-6 6-15.8 0-21.8-2.9-2.9-6.8-4.5-10.9-4.5z"
fill="currentColor"
></path>
<path
d="M359.5 167.9c4.1 0 8-1.6 10.9-4.5l32.7-32.7c2.9-2.9 4.5-6.8 4.5-10.9s-1.6-8-4.5-10.9c-2.9-2.9-6.8-4.5-10.9-4.5-4.1 0-8 1.6-10.9 4.5l-32.7 32.7c-2.9 2.9-4.5 6.8-4.5 10.9s1.6 8 4.5 10.9c2.9 2.9 6.8 4.5 10.9 4.5z"
fill="currentColor"
></path>
<path
d="M130.7 108.9c-2.9-2.9-6.8-4.5-10.9-4.5-4.1 0-8 1.6-10.9 4.5-2.9 2.9-4.5 6.8-4.5 10.9 0 4.1 1.6 8 4.5 10.9l32.7 32.7c2.9 2.9 6.8 4.5 10.9 4.5 4.1 0 8-1.6 10.9-4.5 2.9-2.9 4.5-6.8 4.5-10.9s-1.6-8-4.5-10.9l-32.7-32.7z"
fill="currentColor"
></path>
<path
d="M370.4 348.6c-2.9-2.9-6.8-4.5-10.9-4.5-4.1 0-8 1.6-10.9 4.5-6 6-6 15.8 0 21.8l32.7 32.7c2.9 2.9 6.8 4.5 10.9 4.5 4.1 0 8-1.6 10.9-4.5 2.9-2.9 4.5-6.8 4.5-10.9s-1.6-8-4.5-10.9l-32.7-32.7z"
fill="currentColor"
></path>
<path
d="M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"
fill="currentColor"
></path>
</svg>
)}
</button>
);
}
4 changes: 2 additions & 2 deletions src/components/Navigation/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function NavigationIcon({ children, to, title }) {
return (
<Link
to={to}
className="inline-flex items-center"
className="inline-flex items-center text-gray-100 dark:text-gray-200 hover:text-blue-200"
title={`webpack on ${title}`}
>
{children}
Expand All @@ -78,7 +78,7 @@ function NavigationIcon({ children, to, title }) {
}
const navigationIconProps = {
'aria-hidden': true,
fill: '#fff',
fill: 'currentColor',
width: 16,
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/Site/Site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function Site(props) {
*/
const _strip = (array) => {
let anchorTitleIndex = array.findIndex(
(item) => item.name.toLowerCase() === 'index.md'
(item) => item.name.toLowerCase() === 'index.mdx'
);

if (anchorTitleIndex !== -1) {
Expand Down Expand Up @@ -109,7 +109,7 @@ function Site(props) {
})
.filter(
(page) =>
page.title !== 'printable.md' && !page.content.includes('Printable')
page.title !== 'printable.mdx' && !page.content.includes('Printable')
);
};

Expand Down
8 changes: 2 additions & 6 deletions src/components/Splash/Splash.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PlaceholderComponent } from '../Placeholder/Placeholder';
import isClient from '../../utilities/is-client';

// Import Demo Content
import SplashContent from '../../content/index.md';
import SplashContent from '../../content/index.mdx';

// Load Styling
import './Splash.scss';
Expand Down Expand Up @@ -55,11 +55,7 @@ const Splash = () => {
<div className="splash__section splash__section--dark page__content">
<Container>
<Markdown>
<div
dangerouslySetInnerHTML={{
__html: SplashContent,
}}
/>
<SplashContent />
</Markdown>
</Container>
</div>
Expand Down
7 changes: 7 additions & 0 deletions src/components/Splash/first/left.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**src/index.js**

```js
import bar from './bar.js';

bar();
```
7 changes: 7 additions & 0 deletions src/components/Splash/first/right.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**src/bar.js**

```js
export default function bar() {
//
}
```
Loading