Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Jan 6, 2023
1 parent c2fa194 commit 3126842
Show file tree
Hide file tree
Showing 11 changed files with 575 additions and 477 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"Cascadia",
"CLSE",
"CNXN",
"colour",
"Deserialization",
"DESERIALIZERS",
"ebml",
"Embedder",
"fluentui",
"genymobile",
Expand All @@ -24,7 +26,10 @@
"Logcat",
"lstat",
"luma",
"Matroska",
"mitm",
"muxer",
"Muxing",
"Nalu",
"opendir",
"PKCS",
Expand All @@ -43,6 +48,7 @@
"typeof",
"webadb",
"webcodecs",
"webm",
"websockify",
"webusb",
"wifi",
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd ya-webadb
### Install dependencies

```sh
$ rush update
$ rush install
```

### Everyday commands
Expand Down
38 changes: 18 additions & 20 deletions apps/demo/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const withMDX = require('@next/mdx')({
const withMDX = require("@next/mdx")({
extension: /\.mdx?$/,
options: {
// Disable MDX createElement hack
Expand All @@ -9,16 +9,16 @@ const withMDX = require('@next/mdx')({

/** @type {import('next').NextConfig} */
module.exports = withMDX({
basePath: process.env.BASE_PATH || '',
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
basePath: process.env.BASE_PATH || "",
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
reactStrictMode: false,
productionBrowserSourceMaps: true,
experimental: {
// Workaround https://github.com/vercel/next.js/issues/33914
esmExternals: 'loose',
esmExternals: "loose",
},
publicRuntimeConfig: {
basePath: process.env.BASE_PATH || '',
basePath: process.env.BASE_PATH || "",
},
webpack(config, options) {
config.module.rules.push({
Expand All @@ -37,11 +37,9 @@ module.exports = withMDX({
// because Next.js doesn't allow it
// https://github.com/vercel/next.js/pull/7550#issuecomment-512861158
// https://github.com/vercel/next.js/issues/12861
exclude: [
/next/,
],
use: ['source-map-loader'],
enforce: 'pre',
exclude: [/next/],
use: ["source-map-loader"],
enforce: "pre",
});

// config.experiments.topLevelAwait = true;
Expand All @@ -51,18 +49,18 @@ module.exports = withMDX({
async headers() {
return [
{
source: '/:path*',
source: "/:path*",
headers: [
{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin',
key: "Cross-Origin-Opener-Policy",
value: "same-origin",
},
{
key: 'Cross-Origin-Embedder-Policy',
value: 'require-corp',
}
]
}
]
}
key: "Cross-Origin-Embedder-Policy",
value: "require-corp",
},
],
},
];
},
});
1 change: 1 addition & 0 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"devDependencies": {
"@mdx-js/loader": "^2.2.1",
"@mdx-js/react": "^2.2.1",
"@next/mdx": "^13.1.1",
"@types/react": "18.0.26",
"eslint": "^8.31.0",
Expand Down
Loading

0 comments on commit 3126842

Please sign in to comment.