Skip to content

Commit

Permalink
Merge pull request #179 from issue-ops/ncalteen/nextjs
Browse files Browse the repository at this point in the history
Convert to Next.js
  • Loading branch information
ncalteen authored Feb 21, 2025
2 parents e93dc99 + 44a1b14 commit d66df67
Show file tree
Hide file tree
Showing 165 changed files with 16,364 additions and 47,844 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
build:
name: Build Gatsby Site
name: Build Site
runs-on: ubuntu-latest

# Only run this job if it was done manually or the PR was merged
Expand All @@ -43,18 +43,20 @@ jobs:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

# prettier-ignore
- name: Restore Cache
id: cache
uses: actions/cache@v4
with:
static_site_generator: gatsby
generator_config_file: docs/gatsby-config.ts
path: .next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-

- name: Install Dependencies
id: install
run: npm ci

- name: Install Playwright
id: playwright
run: npx playwright install

- name: Build
id: build
env:
Expand All @@ -65,7 +67,7 @@ jobs:
id: upload
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/public
path: ./out

deploy:
name: Deploy to GitHub Pages
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ jobs:
id: install
run: npm install

- name: Install Playwright
id: playwright
run: npx playwright install

- name: Check Format
id: format-check
run: npm run format:check
Expand Down
117 changes: 31 additions & 86 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,96 +1,41 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# testing
/coverage

# Coverage directory used by tools like istanbul
coverage
*.lcov
# next.js
/.next/
/out/

# nyc test coverage
.nyc_output
# production
/build

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

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

# node-waf configuration
.lock-wscript
# misc
.DS_Store
*.pem

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# Dependency directories
node_modules/
jspm_packages/
# env files (can opt-in for committing if needed)
.env*

# TypeScript v1 declaration files
typings/
# vercel
.vercel

# TypeScript cache
# typescript
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Gatsby
public/

# macOS
.DS_Store

scripts/
next-env.d.ts
1 change: 1 addition & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DISABLE:
# List of disabled linters keys
# https://megalinter.io/latest/config-activation/
DISABLE_LINTERS:
- CSS_STYLELINT
- JSON_NPM_PACKAGE_JSON_LINT
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
- REPOSITORY_GRYPE
Expand Down
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ node_modules/
dist/
coverage/
fixtures/
.gitattributes
.gitignore
.node-version
.prettierignore
CODEOWNERS
LICENSE
favicon.ico
.nojekyll
*.png
13 changes: 0 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,3 @@ The maintainers of this repository will review your changes and provide any
feedback. Once approved, they will be merged in and a new version of the site
will be deployed. You'll also be able to see your GitHub profile tagged in the
contributors list for any pages you contribute to!

## Theme

This repository uses [Gatsby](https://www.gatsbyjs.com/), along with the
following themes and components:

- [Primer Design System](https://primer.style/design/)
- [Primer React](https://primer.style/react/)
- [Doctocat](https://primer.style/doctocat/)

A modified version of the Doctocat theme is used to build the documentation from
`.mdx` files in the `docs` directory. Make sure to check out the above links to
get familiarized with Gatsby, Primer, and React :smile:
21 changes: 21 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
36 changes: 0 additions & 36 deletions docs/.eslintrc.yml

This file was deleted.

13 changes: 0 additions & 13 deletions docs/.remarkrc.yml

This file was deleted.

10 changes: 0 additions & 10 deletions docs/content/404.mdx

This file was deleted.

81 changes: 0 additions & 81 deletions docs/content/index.mdx

This file was deleted.

Loading

0 comments on commit d66df67

Please sign in to comment.