Skip to content

Commit

Permalink
(new-docs-3/n) Initialize new Next.js site
Browse files Browse the repository at this point in the history
Summary: This diff introduces a new Next.js site properly configured with all of our dependencies

Test Plan: `yarn dev` in `/next`

Reviewers: yuhan

Reviewed By: yuhan

Differential Revision: https://dagster.phacility.com/D6159
  • Loading branch information
helloworld committed Jan 26, 2021
1 parent 95525e9 commit 08235c7
Show file tree
Hide file tree
Showing 14 changed files with 4,559 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/next/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
15 changes: 15 additions & 0 deletions docs/next/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Dagster Documentation Site

This folder contains the code for the Dagster documentation site at https://docs.dagster.io

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
2 changes: 2 additions & 0 deletions docs/next/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
28 changes: 28 additions & 0 deletions docs/next/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "dagster-docs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@tailwindcss/forms": "^0.2.1",
"@tailwindcss/typography": "^0.4.0",
"autoprefixer": "^10.1.0",
"classnames": "^2.2.6",
"next": "10.0.3",
"postcss": "^8.2.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-intersection-observer": "^8.31.0",
"tailwindcss": "^2.0.2"
},
"devDependencies": {
"@types/classnames": "^2.2.11",
"@types/node": "^14.14.13",
"@types/react": "^17.0.0",
"typescript": "^4.1.3"
}
}
9 changes: 9 additions & 0 deletions docs/next/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import "../styles/globals.css";

import type { AppProps } from "next/app";

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}

export default MyApp;
6 changes: 6 additions & 0 deletions docs/next/pages/api/hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction

export default (req, res) => {
res.statusCode = 200
res.json({ name: 'John Doe' })
}
14 changes: 14 additions & 0 deletions docs/next/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Head from "next/head";

export default function Home() {
return (
<div className="flex h-screen items-center justify-center">
<Head>
<title>Dagster Documentation</title>
<link rel="icon" href="/favicon.ico" />
</Head>

<h1>Dagster Documentation</h1>
</div>
);
}
6 changes: 6 additions & 0 deletions docs/next/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added docs/next/public/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/next/public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/next/styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
}
17 changes: 17 additions & 0 deletions docs/next/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
purge: [
"./pages/**/*.{js,jsx,ts,tsx}",
"./components/**/*.{js,jsx,ts,tsx}",
"./layouts/**/*.{js,jsx,ts,tsx}",
],
darkMode: "class",
theme: {
extend: {
display: ["group-hover"],
},
},
variants: {
extend: {},
},
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")],
};
20 changes: 20 additions & 0 deletions docs/next/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": "."
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 08235c7

Please sign in to comment.