yeet the docs for now
This commit is contained in:
10
docs/.gitignore
vendored
10
docs/.gitignore
vendored
@@ -1,10 +0,0 @@
|
|||||||
node_modules
|
|
||||||
|
|
||||||
.cache
|
|
||||||
.vercel
|
|
||||||
.output
|
|
||||||
|
|
||||||
public/build
|
|
||||||
api/_build
|
|
||||||
|
|
||||||
app/docs.json
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
# Welcome to Remix!
|
|
||||||
|
|
||||||
- [Remix Docs](https://remix.run/docs)
|
|
||||||
|
|
||||||
## Deployment
|
|
||||||
|
|
||||||
After having run the `create-remix` command and selected "Vercel" as a deployment target, you only need to [import your Git repository](https://vercel.com/new) into Vercel, and it will be deployed.
|
|
||||||
|
|
||||||
If you'd like to avoid using a Git repository, you can also deploy the directory by running [Vercel CLI](https://vercel.com/cli):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm i -g vercel
|
|
||||||
vercel
|
|
||||||
```
|
|
||||||
|
|
||||||
It is generally recommended to use a Git repository, because future commits will then automatically be deployed by Vercel, through its [Git Integration](https://vercel.com/docs/concepts/git).
|
|
||||||
|
|
||||||
## Development
|
|
||||||
|
|
||||||
To run your Remix app locally, make sure your project's local dependencies are installed:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install
|
|
||||||
```
|
|
||||||
|
|
||||||
Afterwards, start the Remix development server like so:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Open up [http://localhost:3000](http://localhost:3000) and you should be ready to go!
|
|
||||||
|
|
||||||
If you're used to using the `vercel dev` command provided by [Vercel CLI](https://vercel.com/cli) instead, you can also use that, but it's not needed.
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
const { createRequestHandler } = require("@remix-run/vercel");
|
|
||||||
|
|
||||||
module.exports = createRequestHandler({
|
|
||||||
build: require("./_build")
|
|
||||||
});
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
import { hydrate } from "react-dom";
|
|
||||||
import { RemixBrowser } from "remix";
|
|
||||||
|
|
||||||
hydrate(<RemixBrowser />, document);
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import { renderToString } from "react-dom/server";
|
|
||||||
import { RemixServer } from "remix";
|
|
||||||
import type { EntryContext } from "remix";
|
|
||||||
|
|
||||||
export default function handleRequest(
|
|
||||||
request: Request,
|
|
||||||
responseStatusCode: number,
|
|
||||||
responseHeaders: Headers,
|
|
||||||
remixContext: EntryContext
|
|
||||||
) {
|
|
||||||
const markup = renderToString(
|
|
||||||
<RemixServer context={remixContext} url={request.url} />
|
|
||||||
);
|
|
||||||
|
|
||||||
responseHeaders.set("Content-Type", "text/html");
|
|
||||||
|
|
||||||
return new Response("<!DOCTYPE html>" + markup, {
|
|
||||||
status: responseStatusCode,
|
|
||||||
headers: responseHeaders
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
import {
|
|
||||||
Links,
|
|
||||||
LiveReload,
|
|
||||||
Meta,
|
|
||||||
Outlet,
|
|
||||||
Scripts,
|
|
||||||
ScrollRestoration
|
|
||||||
} from "remix";
|
|
||||||
import type { MetaFunction } from "remix";
|
|
||||||
|
|
||||||
export const meta: MetaFunction = () => {
|
|
||||||
return { title: "New Remix App" };
|
|
||||||
};
|
|
||||||
|
|
||||||
export default function App() {
|
|
||||||
return (
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charSet="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
||||||
<Meta />
|
|
||||||
<Links />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<Outlet />
|
|
||||||
<ScrollRestoration />
|
|
||||||
<Scripts />
|
|
||||||
{process.env.NODE_ENV === "development" && <LiveReload />}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
import { readFile } from "fs/promises"
|
|
||||||
import { json, LoaderFunction, useLoaderData } from "remix"
|
|
||||||
|
|
||||||
export const loader: LoaderFunction = async () => {
|
|
||||||
const docs = await readFile("app/docs.json", "utf8")
|
|
||||||
return json(JSON.parse(docs))
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function Index() {
|
|
||||||
const data = useLoaderData()
|
|
||||||
return (
|
|
||||||
<main>
|
|
||||||
<pre>{JSON.stringify(data, undefined, 2)}</pre>
|
|
||||||
</main>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
{
|
|
||||||
"private": true,
|
|
||||||
"name": "reacord-docs",
|
|
||||||
"description": "",
|
|
||||||
"license": "",
|
|
||||||
"scripts": {
|
|
||||||
"prepare": "typedoc && remix setup node",
|
|
||||||
"dev": "concurrently 'remix dev' 'typedoc --watch'",
|
|
||||||
"build": "typedoc && remix build"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@remix-run/react": "^1.1.1",
|
|
||||||
"@remix-run/serve": "^1.1.1",
|
|
||||||
"@remix-run/vercel": "^1.1.1",
|
|
||||||
"@vercel/node": "^1.12.1",
|
|
||||||
"react": "^17.0.2",
|
|
||||||
"react-dom": "^17.0.2",
|
|
||||||
"remix": "^1.1.1",
|
|
||||||
"typedoc": "^0.22.10"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@remix-run/dev": "^1.1.1",
|
|
||||||
"@types/react": "^17.0.24",
|
|
||||||
"@types/react-dom": "^17.0.9",
|
|
||||||
"concurrently": "^6.5.1",
|
|
||||||
"typescript": "^4.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14"
|
|
||||||
},
|
|
||||||
"sideEffects": false
|
|
||||||
}
|
|
||||||
3182
docs/pnpm-lock.yaml
generated
3182
docs/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
@@ -1,10 +0,0 @@
|
|||||||
/**
|
|
||||||
* @type {import('@remix-run/dev/config').AppConfig}
|
|
||||||
*/
|
|
||||||
module.exports = {
|
|
||||||
appDirectory: "app",
|
|
||||||
assetsBuildDirectory: "public/build",
|
|
||||||
publicPath: "/build/",
|
|
||||||
serverBuildDirectory: "api/_build",
|
|
||||||
ignoredRouteFiles: [".*"]
|
|
||||||
};
|
|
||||||
2
docs/remix.env.d.ts
vendored
2
docs/remix.env.d.ts
vendored
@@ -1,2 +0,0 @@
|
|||||||
/// <reference types="@remix-run/dev" />
|
|
||||||
/// <reference types="@remix-run/node/globals" />
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../tsconfig",
|
|
||||||
"compilerOptions": {
|
|
||||||
"jsx": "react-jsx"
|
|
||||||
},
|
|
||||||
"include": [".", "../library"],
|
|
||||||
"exclude": ["node_modules", ".cache", "api", "public"]
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"entryPoints": ["../library/main.ts"],
|
|
||||||
"json": "./app/docs.json",
|
|
||||||
"excludeInternal": true,
|
|
||||||
"excludePrivate": true,
|
|
||||||
"excludeProtected": true,
|
|
||||||
"categoryOrder": ["Classes", "Functions", "*"],
|
|
||||||
"categorizeByGroup": false,
|
|
||||||
"preserveWatchOutput": true
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"build": {
|
|
||||||
"env": {
|
|
||||||
"ENABLE_FILE_SYSTEM_API": "1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user