Skip to content

move all content of website folder to root #1641

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

Merged
merged 4 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 1 addition & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
root: true,
overrides: [
{
files: ["website/**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
extends: ["plugin:tailwindcss/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
Expand All @@ -14,11 +14,6 @@ module.exports = {
},
settings: {
tailwindcss: {
config: "website/tailwind.config.ts",
cssFiles: [
"website/node_modules/nextra-theme-docs/dist/style.css",
"website/src/globals.css",
],
whitelist: ["roboto-mono"],
},
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 20.1.0
nodeVersion: 20.9.0
packageManager: pnpm
workingDirectory: ./
packageManagerVersion: 8.15.5
Expand Down
21 changes: 2 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

old
# Runtime data
pids
*.pid
Expand All @@ -21,15 +20,6 @@ coverage
# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

Expand Down Expand Up @@ -61,12 +51,6 @@ static/img/__og-image/*
# Mac files
.DS_Store

# Yarn
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity

# Swap files
*.swp

Expand All @@ -75,6 +59,5 @@ src/__generated__/

.idea/
.next/
static/sitemap.xml
website/out/
/public/
public/sitemap.xml
out/
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.16.0
20.9.0
File renamed without changes.
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
.cache
package.json
package-lock.json
public
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions website/next.config.js → next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import nextra from "nextra"
import path from "node:path"
import withLess from "next-with-less"
import { remarkGraphiQLComment } from "./src/remark-graphiql-comment.js"
import vercelJSON from "../vercel.json" assert { type: "json" }
import vercelJSON from "./vercel.json" assert { type: "json" }

const withNextra = nextra({
theme: "nextra-theme-docs",
Expand Down Expand Up @@ -39,7 +39,6 @@ export default withLess(
images: {
unoptimized: true,
},
distDir: process.env.NODE_ENV === "production" ? "../public" : undefined,
trailingSlash: true,
// `statusCode` is not undefined or valid statusCode for route {"source":"/conf/attendee/:path*","destination":"https://graphql-conf-attendee-nextjs.vercel.app/:path*","statusCode":200}
// `statusCode` is not undefined or valid statusCode for route {"source":"/swapi-graphql/:path*","destination":"https://graphql.github.io/swapi-graphql/:path*","statusCode":200}
Expand Down
52 changes: 46 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
"private": true,
"version": "0.0.0",
"scripts": {
"build": "cd website && pnpm i && pnpm build",
"dev": "next",
"//prebuild": "tsx --env-file=.env src/get-github-info.ts",
"build": "next build",
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
"start": "next start",
"format": "pnpm format:check --write",
"format:check": "prettier --cache --check \"**/*.{js,jsx,ts,tsx,json,md}\"",
"lint": "eslint --ignore-path .gitignore .",
"test": "echo \"no tests\" && exit 1"
},
"type": "module",
"resolutions": {
"graphql": "16.6.0"
},
Expand All @@ -21,14 +26,49 @@
"numbro": "2.3.6",
"parser-front-matter": "1.6.4",
"string-similarity": "^4.0.4",
"timeago.js": "4.0.2"
"timeago.js": "4.0.2",
"@radix-ui/react-radio-group": "^1.1.3",
"leaflet": "^1.9.4",
"iframe-resizer-react": "^1.1.0",
"gray-matter": "^4.0.3",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@radix-ui/react-icons": "^1.3.0",
"clsx": "^2.1.0",
"fast-glob": "^3.3.2",
"markdown-to-jsx": "^7.4.0",
"next": "^14.1.4",
"next-query-params": "^5.0.0",
"next-sitemap": "^4.2.3",
"next-with-less": "^3.0.1",
"nextra": "3.0.0-alpha.22",
"nextra-theme-docs": "3.0.0-alpha.22",
"p-limit": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"server-only": "0.0.1",
"server-only-context": "^0.1.0",
"string-strip-html": "^13.4.5",
"unist-util-visit": "^5.0.0",
"use-query-params": "^2.2.1",
"tailwindcss": "^3.4.1",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
"@tailwindcss/typography": "^0.5.10",
"postcss": "^8.4.33",
"@svgr/webpack": "^8.0.1",
"@types/node": "^20.11.30",
"@types/react": "^18.2.73",
"autoprefixer": "^10.4.17",
"tsx": "^4.7.0",
"react-medium-image-zoom": "5.1.8",
"date-fns": "^2.30.0"
},
"devDependencies": {
"@types/codemirror": "5.60.7",
"@types/string-similarity": "^4.0.0",
"@typescript-eslint/parser": "5.59.7",
"eslint": "8.42.0",
"eslint-plugin-tailwindcss": "3.14.0",
"@types/string-similarity": "^4.0.2",
"@typescript-eslint/parser": "7.4.0",
"eslint": "8.57.0",
"eslint-plugin-tailwindcss": "3.15.1",
"prettier": "3.2.4",
"typescript": "^5.3.3"
}
Expand Down
Loading