Skip to content

Commit

Permalink
Convert website to nextra (graphql#4240)
Browse files Browse the repository at this point in the history
This converts the existing website to nextra just like
https://github.com/graphql/graphql.github.io. This is a first step in
moving the documentation here and having a redirect from graphql.org to
graphql-js.org.

Not sure yet why codecov started failing 😅 when I run `testonly:cover`
locally it tells me we are 100% covered.

WDYT about isolating the dependencies for the website in that folder? As
seen in
graphql@9c7d615
this prevents the weird CI leaks that we're seeing

Resolves graphql#4200

---------

Co-authored-by: Yaacov Rydzinski <[email protected]>
  • Loading branch information
JoviDeCroock and yaacovCR committed Dec 3, 2024
1 parent d7cb9f6 commit 71f8c31
Show file tree
Hide file tree
Showing 49 changed files with 11,053 additions and 838 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
/diff-npm-package.html
/.eslintcache
/.cspellcache
/node_modules
node_modules
/reports
/npmDist
/npmEsmDist
/denoDist
/websiteDist
/website/.next
/website/out
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
/npmDist
/npmEsmDist
/denoDist
/websiteDist
/website/.next
/website/out
.next
113 changes: 106 additions & 7 deletions cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ ignorePaths:
- package.json
- benchmark/github-schema.graphql
- benchmark/github-schema.json
- website/icons
- website/css
overrides:
- filename: '**/docs-old/APIReference-*.md'
ignoreRegExpList: ['/href="[^"]*"/']
words:
- sublinks
- instanceof
- filename: 'website/**'
dictionaries:
- fullstack
- html
words:
- clsx
- infima
- noopener
- Vite
- craco
Expand Down Expand Up @@ -54,6 +49,110 @@ words:
- deno
- hashbang

# Website tech
- Nextra
- headlessui
- Fastify
- svgr
- ruru

# used as href anchors
- graphqlerror
- syntaxerror
- formaterror
- graphqlschema
- graphqlscalartype
- graphqlobjecttype
- graphqlinterfacetype
- graphqluniontype
- graphqlenumtype
- graphqlinputobjecttype
- graphqllist
- graphqlnonnull
- graphqlint
- graphqlfloat
- graphqlstring
- graphqlboolean
- graphqlid
- getlocation
- isinputtype
- isoutputtype
- isleaftype
- iscompositetype
- isabstracttype
- getnullabletype
- getnamedtype
- introspectionquery
- buildclientschema
- buildschema
- printschema
- printintrospectionschema
- buildastschema
- typefromast
- astfromvalue
- typeinfo
- isvalidjsvalue
- isvalidliteralvalue
- specifiedrules
- Wordmark
- codeofconduct
- graphqlconf

# website words
- runtimes

# Website tech
- Nextra
- headlessui
- Fastify
- svgr
- ruru

# used as href anchors
- graphqlerror
- syntaxerror
- formaterror
- graphqlschema
- graphqlscalartype
- graphqlobjecttype
- graphqlinterfacetype
- graphqluniontype
- graphqlenumtype
- graphqlinputobjecttype
- graphqllist
- graphqlnonnull
- graphqlint
- graphqlfloat
- graphqlstring
- graphqlboolean
- graphqlid
- getlocation
- isinputtype
- isoutputtype
- isleaftype
- iscompositetype
- isabstracttype
- getnullabletype
- getnamedtype
- introspectionquery
- buildclientschema
- buildschema
- printschema
- printintrospectionschema
- buildastschema
- typefromast
- astfromvalue
- typeinfo
- isvalidjsvalue
- isvalidliteralvalue
- specifiedrules
- Wordmark
- codeofconduct
- graphqlconf

# website words
- runtimes

# TODO: remove bellow words
- QLID # GraphQLID
- QLJS # GraphQLJS
Expand Down
179 changes: 0 additions & 179 deletions docs-old/APIReference-GraphQL.md

This file was deleted.

Loading

0 comments on commit 71f8c31

Please sign in to comment.