Skip to content

Commit 71f8c31

Browse files
Convert website to nextra (graphql#4240)
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]>
1 parent d7cb9f6 commit 71f8c31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+11053
-838
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
/diff-npm-package.html
99
/.eslintcache
1010
/.cspellcache
11-
/node_modules
11+
node_modules
1212
/reports
1313
/npmDist
1414
/npmEsmDist
1515
/denoDist
16-
/websiteDist
16+
/website/.next
17+
/website/out

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
/npmDist
77
/npmEsmDist
88
/denoDist
9-
/websiteDist
9+
/website/.next
10+
/website/out
11+
.next

cspell.yml

Lines changed: 106 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@ ignorePaths:
77
- package.json
88
- benchmark/github-schema.graphql
99
- benchmark/github-schema.json
10+
- website/icons
11+
- website/css
1012
overrides:
11-
- filename: '**/docs-old/APIReference-*.md'
12-
ignoreRegExpList: ['/href="[^"]*"/']
13-
words:
14-
- sublinks
15-
- instanceof
1613
- filename: 'website/**'
1714
dictionaries:
1815
- fullstack
1916
- html
2017
words:
21-
- clsx
22-
- infima
2318
- noopener
2419
- Vite
2520
- craco
@@ -54,6 +49,110 @@ words:
5449
- deno
5550
- hashbang
5651

52+
# Website tech
53+
- Nextra
54+
- headlessui
55+
- Fastify
56+
- svgr
57+
- ruru
58+
59+
# used as href anchors
60+
- graphqlerror
61+
- syntaxerror
62+
- formaterror
63+
- graphqlschema
64+
- graphqlscalartype
65+
- graphqlobjecttype
66+
- graphqlinterfacetype
67+
- graphqluniontype
68+
- graphqlenumtype
69+
- graphqlinputobjecttype
70+
- graphqllist
71+
- graphqlnonnull
72+
- graphqlint
73+
- graphqlfloat
74+
- graphqlstring
75+
- graphqlboolean
76+
- graphqlid
77+
- getlocation
78+
- isinputtype
79+
- isoutputtype
80+
- isleaftype
81+
- iscompositetype
82+
- isabstracttype
83+
- getnullabletype
84+
- getnamedtype
85+
- introspectionquery
86+
- buildclientschema
87+
- buildschema
88+
- printschema
89+
- printintrospectionschema
90+
- buildastschema
91+
- typefromast
92+
- astfromvalue
93+
- typeinfo
94+
- isvalidjsvalue
95+
- isvalidliteralvalue
96+
- specifiedrules
97+
- Wordmark
98+
- codeofconduct
99+
- graphqlconf
100+
101+
# website words
102+
- runtimes
103+
104+
# Website tech
105+
- Nextra
106+
- headlessui
107+
- Fastify
108+
- svgr
109+
- ruru
110+
111+
# used as href anchors
112+
- graphqlerror
113+
- syntaxerror
114+
- formaterror
115+
- graphqlschema
116+
- graphqlscalartype
117+
- graphqlobjecttype
118+
- graphqlinterfacetype
119+
- graphqluniontype
120+
- graphqlenumtype
121+
- graphqlinputobjecttype
122+
- graphqllist
123+
- graphqlnonnull
124+
- graphqlint
125+
- graphqlfloat
126+
- graphqlstring
127+
- graphqlboolean
128+
- graphqlid
129+
- getlocation
130+
- isinputtype
131+
- isoutputtype
132+
- isleaftype
133+
- iscompositetype
134+
- isabstracttype
135+
- getnullabletype
136+
- getnamedtype
137+
- introspectionquery
138+
- buildclientschema
139+
- buildschema
140+
- printschema
141+
- printintrospectionschema
142+
- buildastschema
143+
- typefromast
144+
- astfromvalue
145+
- typeinfo
146+
- isvalidjsvalue
147+
- isvalidliteralvalue
148+
- specifiedrules
149+
- Wordmark
150+
- codeofconduct
151+
- graphqlconf
152+
153+
# website words
154+
- runtimes
155+
57156
# TODO: remove bellow words
58157
- QLID # GraphQLID
59158
- QLJS # GraphQLJS

docs-old/APIReference-GraphQL.md

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)