Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 31268420 authored by Simon Chan's avatar Simon Chan
Browse files

chore: update docs

parent c2fa194d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -10,8 +10,10 @@
        "Cascadia",
        "CLSE",
        "CNXN",
        "colour",
        "Deserialization",
        "DESERIALIZERS",
        "ebml",
        "Embedder",
        "fluentui",
        "genymobile",
@@ -24,7 +26,10 @@
        "Logcat",
        "lstat",
        "luma",
        "Matroska",
        "mitm",
        "muxer",
        "Muxing",
        "Nalu",
        "opendir",
        "PKCS",
@@ -43,6 +48,7 @@
        "typeof",
        "webadb",
        "webcodecs",
        "webm",
        "websockify",
        "webusb",
        "wifi",
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ cd ya-webadb
### Install dependencies

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

### Everyday commands
+18 −20
Original line number Diff line number Diff line
const withMDX = require('@next/mdx')({
const withMDX = require("@next/mdx")({
    extension: /\.mdx?$/,
    options: {
        // Disable MDX createElement hack
@@ -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({
@@ -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;
@@ -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 −0
Original line number Diff line number Diff line
@@ -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",
+520 −441

File changed.

Preview size limit exceeded, changes collapsed.

Loading