graphql-docs 5.2.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +9 -0
- data/CHANGELOG.md +76 -0
- data/README.md +404 -8
- data/bin/console +6 -7
- data/bin/setup +8 -5
- data/exe/graphql-docs +9 -9
- data/graphql-docs.gemspec +50 -38
- data/lib/graphql-docs/app.rb +488 -0
- data/lib/graphql-docs/configuration.rb +28 -11
- data/lib/graphql-docs/generator.rb +147 -42
- data/lib/graphql-docs/helpers.rb +132 -12
- data/lib/graphql-docs/layouts/assets/_sass/_api-box.scss +2 -2
- data/lib/graphql-docs/layouts/assets/_sass/_content.scss +20 -19
- data/lib/graphql-docs/layouts/assets/_sass/_deprecations.scss +7 -0
- data/lib/graphql-docs/layouts/assets/_sass/_fonts.scss +6 -21
- data/lib/graphql-docs/layouts/assets/_sass/_header.scss +8 -2
- data/lib/graphql-docs/layouts/assets/_sass/_mobile.scss +10 -3
- data/lib/graphql-docs/layouts/assets/_sass/_search.scss +32 -10
- data/lib/graphql-docs/layouts/assets/_sass/_sidebar.scss +22 -15
- data/lib/graphql-docs/layouts/assets/_sass/_syntax.scss +1 -1
- data/lib/graphql-docs/layouts/assets/css/screen.scss +54 -5
- data/lib/graphql-docs/layouts/default.html +75 -1
- data/lib/graphql-docs/layouts/includes/sidebar.html +4 -2
- data/lib/graphql-docs/parser.rb +89 -33
- data/lib/graphql-docs/renderer.rb +98 -31
- data/lib/graphql-docs/version.rb +2 -1
- data/lib/graphql-docs.rb +78 -12
- data/lib/tasks/graphql-docs.rake +57 -0
- metadata +74 -78
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -31
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- data/.github/workflows/tests.yml +0 -21
- data/.gitignore +0 -15
- data/.rubocop.yml +0 -11
- data/CODE_OF_CONDUCT.md +0 -84
- data/CONTRIBUTING.md +0 -18
- data/Gemfile +0 -6
- data/Rakefile +0 -86
- data/lib/graphql-docs/layouts/assets/images/graphiql-headers.png +0 -0
- data/lib/graphql-docs/layouts/assets/images/graphiql-variables.png +0 -0
- data/lib/graphql-docs/layouts/assets/images/graphiql.png +0 -0
- data/lib/graphql-docs/layouts/assets/images/search.svg +0 -3
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.eot +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.ttf +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.woff +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.woff2 +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.eot +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.ttf +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.woff +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.woff2 +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.eot +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.ttf +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.woff +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.woff2 +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.eot +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.ttf +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.woff +0 -0
- data/lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.woff2 +0 -0
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql-docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Chalupa
|
|
8
8
|
- Garen Torikian
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: exe
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: graphql
|
|
@@ -29,22 +28,16 @@ dependencies:
|
|
|
29
28
|
name: commonmarker
|
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
|
31
30
|
requirements:
|
|
32
|
-
- - ">="
|
|
33
|
-
- !ruby/object:Gem::Version
|
|
34
|
-
version: 0.23.6
|
|
35
31
|
- - "~>"
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: '0
|
|
33
|
+
version: '2.0'
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
37
|
requirements:
|
|
42
|
-
- - ">="
|
|
43
|
-
- !ruby/object:Gem::Version
|
|
44
|
-
version: 0.23.6
|
|
45
38
|
- - "~>"
|
|
46
39
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0
|
|
40
|
+
version: '2.0'
|
|
48
41
|
- !ruby/object:Gem::Dependency
|
|
49
42
|
name: escape_utils
|
|
50
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -59,54 +52,34 @@ dependencies:
|
|
|
59
52
|
- - "~>"
|
|
60
53
|
- !ruby/object:Gem::Version
|
|
61
54
|
version: '1.2'
|
|
62
|
-
- !ruby/object:Gem::Dependency
|
|
63
|
-
name: extended-markdown-filter
|
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0.4'
|
|
69
|
-
type: :runtime
|
|
70
|
-
prerelease: false
|
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0.4'
|
|
76
55
|
- !ruby/object:Gem::Dependency
|
|
77
56
|
name: gemoji
|
|
78
57
|
requirement: !ruby/object:Gem::Requirement
|
|
79
58
|
requirements:
|
|
80
59
|
- - "~>"
|
|
81
60
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
61
|
+
version: '4.0'
|
|
83
62
|
type: :runtime
|
|
84
63
|
prerelease: false
|
|
85
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
86
65
|
requirements:
|
|
87
66
|
- - "~>"
|
|
88
67
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
68
|
+
version: '4.0'
|
|
90
69
|
- !ruby/object:Gem::Dependency
|
|
91
70
|
name: html-pipeline
|
|
92
71
|
requirement: !ruby/object:Gem::Requirement
|
|
93
72
|
requirements:
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 2.14.3
|
|
97
73
|
- - "~>"
|
|
98
74
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '
|
|
75
|
+
version: '3.0'
|
|
100
76
|
type: :runtime
|
|
101
77
|
prerelease: false
|
|
102
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
103
79
|
requirements:
|
|
104
|
-
- - ">="
|
|
105
|
-
- !ruby/object:Gem::Version
|
|
106
|
-
version: 2.14.3
|
|
107
80
|
- - "~>"
|
|
108
81
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
82
|
+
version: '3.0'
|
|
110
83
|
- !ruby/object:Gem::Dependency
|
|
111
84
|
name: sass-embedded
|
|
112
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -155,14 +128,14 @@ dependencies:
|
|
|
155
128
|
requirements:
|
|
156
129
|
- - "~>"
|
|
157
130
|
- !ruby/object:Gem::Version
|
|
158
|
-
version: '
|
|
131
|
+
version: '5.0'
|
|
159
132
|
type: :development
|
|
160
133
|
prerelease: false
|
|
161
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
162
135
|
requirements:
|
|
163
136
|
- - "~>"
|
|
164
137
|
- !ruby/object:Gem::Version
|
|
165
|
-
version: '
|
|
138
|
+
version: '5.0'
|
|
166
139
|
- !ruby/object:Gem::Dependency
|
|
167
140
|
name: minitest
|
|
168
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -192,47 +165,81 @@ dependencies:
|
|
|
192
165
|
- !ruby/object:Gem::Version
|
|
193
166
|
version: '1.1'
|
|
194
167
|
- !ruby/object:Gem::Dependency
|
|
195
|
-
name:
|
|
168
|
+
name: rack
|
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - ">="
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '2.0'
|
|
174
|
+
- - "<"
|
|
175
|
+
- !ruby/object:Gem::Version
|
|
176
|
+
version: '4'
|
|
177
|
+
type: :development
|
|
178
|
+
prerelease: false
|
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
180
|
+
requirements:
|
|
181
|
+
- - ">="
|
|
182
|
+
- !ruby/object:Gem::Version
|
|
183
|
+
version: '2.0'
|
|
184
|
+
- - "<"
|
|
185
|
+
- !ruby/object:Gem::Version
|
|
186
|
+
version: '4'
|
|
187
|
+
- !ruby/object:Gem::Dependency
|
|
188
|
+
name: rack-test
|
|
196
189
|
requirement: !ruby/object:Gem::Requirement
|
|
197
190
|
requirements:
|
|
198
191
|
- - "~>"
|
|
199
192
|
- !ruby/object:Gem::Version
|
|
200
|
-
version: '
|
|
193
|
+
version: '2.0'
|
|
201
194
|
type: :development
|
|
202
195
|
prerelease: false
|
|
203
196
|
version_requirements: !ruby/object:Gem::Requirement
|
|
204
197
|
requirements:
|
|
205
198
|
- - "~>"
|
|
206
199
|
- !ruby/object:Gem::Version
|
|
207
|
-
version: '
|
|
200
|
+
version: '2.0'
|
|
201
|
+
- !ruby/object:Gem::Dependency
|
|
202
|
+
name: rackup
|
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
|
204
|
+
requirements:
|
|
205
|
+
- - "~>"
|
|
206
|
+
- !ruby/object:Gem::Version
|
|
207
|
+
version: '2.0'
|
|
208
|
+
type: :development
|
|
209
|
+
prerelease: false
|
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
211
|
+
requirements:
|
|
212
|
+
- - "~>"
|
|
213
|
+
- !ruby/object:Gem::Version
|
|
214
|
+
version: '2.0'
|
|
208
215
|
- !ruby/object:Gem::Dependency
|
|
209
|
-
name:
|
|
216
|
+
name: rake
|
|
210
217
|
requirement: !ruby/object:Gem::Requirement
|
|
211
218
|
requirements:
|
|
212
219
|
- - "~>"
|
|
213
220
|
- !ruby/object:Gem::Version
|
|
214
|
-
version: '
|
|
221
|
+
version: '13.0'
|
|
215
222
|
type: :development
|
|
216
223
|
prerelease: false
|
|
217
224
|
version_requirements: !ruby/object:Gem::Requirement
|
|
218
225
|
requirements:
|
|
219
226
|
- - "~>"
|
|
220
227
|
- !ruby/object:Gem::Version
|
|
221
|
-
version: '
|
|
228
|
+
version: '13.0'
|
|
222
229
|
- !ruby/object:Gem::Dependency
|
|
223
|
-
name:
|
|
230
|
+
name: standard
|
|
224
231
|
requirement: !ruby/object:Gem::Requirement
|
|
225
232
|
requirements:
|
|
226
233
|
- - "~>"
|
|
227
234
|
- !ruby/object:Gem::Version
|
|
228
|
-
version: '1.
|
|
235
|
+
version: '1.0'
|
|
229
236
|
type: :development
|
|
230
237
|
prerelease: false
|
|
231
238
|
version_requirements: !ruby/object:Gem::Requirement
|
|
232
239
|
requirements:
|
|
233
240
|
- - "~>"
|
|
234
241
|
- !ruby/object:Gem::Version
|
|
235
|
-
version: '1.
|
|
242
|
+
version: '1.0'
|
|
236
243
|
- !ruby/object:Gem::Dependency
|
|
237
244
|
name: webmock
|
|
238
245
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -261,6 +268,20 @@ dependencies:
|
|
|
261
268
|
- - "~>"
|
|
262
269
|
- !ruby/object:Gem::Version
|
|
263
270
|
version: '1.7'
|
|
271
|
+
- !ruby/object:Gem::Dependency
|
|
272
|
+
name: yard
|
|
273
|
+
requirement: !ruby/object:Gem::Requirement
|
|
274
|
+
requirements:
|
|
275
|
+
- - "~>"
|
|
276
|
+
- !ruby/object:Gem::Version
|
|
277
|
+
version: '0.9'
|
|
278
|
+
type: :development
|
|
279
|
+
prerelease: false
|
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
281
|
+
requirements:
|
|
282
|
+
- - "~>"
|
|
283
|
+
- !ruby/object:Gem::Version
|
|
284
|
+
version: '0.9'
|
|
264
285
|
description: |2
|
|
265
286
|
Library and CLI for generating a website from a GraphQL API's schema
|
|
266
287
|
definition. With ERB templating support and a plethora of configuration
|
|
@@ -274,24 +295,17 @@ executables:
|
|
|
274
295
|
extensions: []
|
|
275
296
|
extra_rdoc_files: []
|
|
276
297
|
files:
|
|
277
|
-
- ".
|
|
278
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
279
|
-
- ".github/workflows/tests.yml"
|
|
280
|
-
- ".gitignore"
|
|
281
|
-
- ".rubocop.yml"
|
|
298
|
+
- ".yardopts"
|
|
282
299
|
- CHANGELOG.md
|
|
283
|
-
- CODE_OF_CONDUCT.md
|
|
284
|
-
- CONTRIBUTING.md
|
|
285
|
-
- Gemfile
|
|
286
300
|
- LICENSE.txt
|
|
287
301
|
- README.md
|
|
288
|
-
- Rakefile
|
|
289
302
|
- bin/console
|
|
290
303
|
- bin/rake
|
|
291
304
|
- bin/setup
|
|
292
305
|
- exe/graphql-docs
|
|
293
306
|
- graphql-docs.gemspec
|
|
294
307
|
- lib/graphql-docs.rb
|
|
308
|
+
- lib/graphql-docs/app.rb
|
|
295
309
|
- lib/graphql-docs/configuration.rb
|
|
296
310
|
- lib/graphql-docs/generator.rb
|
|
297
311
|
- lib/graphql-docs/helpers.rb
|
|
@@ -317,28 +331,8 @@ files:
|
|
|
317
331
|
- lib/graphql-docs/layouts/assets/_sass/_syntax.scss
|
|
318
332
|
- lib/graphql-docs/layouts/assets/_sass/_types.scss
|
|
319
333
|
- lib/graphql-docs/layouts/assets/css/screen.scss
|
|
320
|
-
- lib/graphql-docs/layouts/assets/images/graphiql-headers.png
|
|
321
|
-
- lib/graphql-docs/layouts/assets/images/graphiql-variables.png
|
|
322
|
-
- lib/graphql-docs/layouts/assets/images/graphiql.png
|
|
323
334
|
- lib/graphql-docs/layouts/assets/images/menu.png
|
|
324
335
|
- lib/graphql-docs/layouts/assets/images/navbar.png
|
|
325
|
-
- lib/graphql-docs/layouts/assets/images/search.svg
|
|
326
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.eot
|
|
327
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.ttf
|
|
328
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.woff
|
|
329
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_B_0.woff2
|
|
330
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.eot
|
|
331
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.ttf
|
|
332
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.woff
|
|
333
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_C_0.woff2
|
|
334
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.eot
|
|
335
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.ttf
|
|
336
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.woff
|
|
337
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_D_0.woff2
|
|
338
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.eot
|
|
339
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.ttf
|
|
340
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.woff
|
|
341
|
-
- lib/graphql-docs/layouts/assets/webfonts/2C4B9D_E_0.woff2
|
|
342
336
|
- lib/graphql-docs/layouts/default.html
|
|
343
337
|
- lib/graphql-docs/layouts/graphql_directives.html
|
|
344
338
|
- lib/graphql-docs/layouts/graphql_enums.html
|
|
@@ -363,14 +357,17 @@ files:
|
|
|
363
357
|
- lib/graphql-docs/parser.rb
|
|
364
358
|
- lib/graphql-docs/renderer.rb
|
|
365
359
|
- lib/graphql-docs/version.rb
|
|
360
|
+
- lib/tasks/graphql-docs.rake
|
|
366
361
|
homepage: https://github.com/brettchalupa/graphql-docs
|
|
367
362
|
licenses:
|
|
368
363
|
- MIT
|
|
369
364
|
metadata:
|
|
365
|
+
homepage_uri: https://graphql-docs.bcodes.me
|
|
370
366
|
bug_tracker_uri: https://github.com/brettchalupa/graphql-docs/issues
|
|
371
367
|
changelog_uri: https://github.com/brettchalupa/graphql-docs/blob/main/CHANGELOG.md
|
|
372
368
|
wiki_uri: https://github.com/brettchalupa/graphql-docs/wiki
|
|
373
|
-
|
|
369
|
+
documentation_uri: https://rubydoc.info/github/brettchalupa/graphql-docs.git/main
|
|
370
|
+
source_code_uri: https://github.com/brettchalupa/graphql-docs
|
|
374
371
|
rdoc_options: []
|
|
375
372
|
require_paths:
|
|
376
373
|
- lib
|
|
@@ -385,8 +382,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
385
382
|
- !ruby/object:Gem::Version
|
|
386
383
|
version: '0'
|
|
387
384
|
requirements: []
|
|
388
|
-
rubygems_version: 3.
|
|
389
|
-
signing_key:
|
|
385
|
+
rubygems_version: 3.6.9
|
|
390
386
|
specification_version: 4
|
|
391
387
|
summary: Easily generate beautiful documentation from your GraphQL schema.
|
|
392
388
|
test_files: []
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ''
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
**To Reproduce**
|
|
14
|
-
Steps to reproduce the behavior:
|
|
15
|
-
1. Do x
|
|
16
|
-
2. Do y
|
|
17
|
-
|
|
18
|
-
**Expected behavior**
|
|
19
|
-
A clear and concise description of what you expected to happen.
|
|
20
|
-
|
|
21
|
-
**Screenshots**
|
|
22
|
-
If applicable, add screenshots to help explain your problem.
|
|
23
|
-
|
|
24
|
-
**Additional context**
|
|
25
|
-
Add any other context about the problem here.
|
|
26
|
-
|
|
27
|
-
Examples:
|
|
28
|
-
|
|
29
|
-
- Source code
|
|
30
|
-
- Version of gem being used
|
|
31
|
-
- Ruby version
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: enhancement
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
|
11
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
A clear and concise description of what you want to happen.
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered**
|
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
-
|
|
19
|
-
**Additional context**
|
|
20
|
-
Add any other context or screenshots about the feature request here.
|
data/.github/workflows/tests.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: Ruby
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
test:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
ruby-version: [3.4, 3.3, 3.2, 3.1]
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
16
|
-
uses: ruby/setup-ruby@v1
|
|
17
|
-
with:
|
|
18
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
19
|
-
bundler-cache: true
|
|
20
|
-
- name: Run the test suite
|
|
21
|
-
run: bundle exec rake
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
-
|
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
-
|
|
9
|
-
## Our Standards
|
|
10
|
-
|
|
11
|
-
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
-
|
|
13
|
-
* Demonstrating empathy and kindness toward other people
|
|
14
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
-
* Giving and gracefully accepting constructive feedback
|
|
16
|
-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
-
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
-
|
|
19
|
-
Examples of unacceptable behavior include:
|
|
20
|
-
|
|
21
|
-
* The use of sexualized language or imagery, and sexual attention or
|
|
22
|
-
advances of any kind
|
|
23
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
24
|
-
* Public or private harassment
|
|
25
|
-
* Publishing others' private information, such as a physical or email
|
|
26
|
-
address, without their explicit permission
|
|
27
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
28
|
-
professional setting
|
|
29
|
-
|
|
30
|
-
## Enforcement Responsibilities
|
|
31
|
-
|
|
32
|
-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
33
|
-
|
|
34
|
-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
35
|
-
|
|
36
|
-
## Scope
|
|
37
|
-
|
|
38
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
39
|
-
|
|
40
|
-
## Enforcement
|
|
41
|
-
|
|
42
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at brettchalupa@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
43
|
-
|
|
44
|
-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
45
|
-
|
|
46
|
-
## Enforcement Guidelines
|
|
47
|
-
|
|
48
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
49
|
-
|
|
50
|
-
### 1. Correction
|
|
51
|
-
|
|
52
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
53
|
-
|
|
54
|
-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
55
|
-
|
|
56
|
-
### 2. Warning
|
|
57
|
-
|
|
58
|
-
**Community Impact**: A violation through a single incident or series of actions.
|
|
59
|
-
|
|
60
|
-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
61
|
-
|
|
62
|
-
### 3. Temporary Ban
|
|
63
|
-
|
|
64
|
-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
65
|
-
|
|
66
|
-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
67
|
-
|
|
68
|
-
### 4. Permanent Ban
|
|
69
|
-
|
|
70
|
-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
71
|
-
|
|
72
|
-
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
73
|
-
|
|
74
|
-
## Attribution
|
|
75
|
-
|
|
76
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
|
77
|
-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
78
|
-
|
|
79
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
80
|
-
|
|
81
|
-
[homepage]: https://www.contributor-covenant.org
|
|
82
|
-
|
|
83
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
84
|
-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/CONTRIBUTING.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Contributing Guide
|
|
2
|
-
|
|
3
|
-
Contributions to this project are welcome. If you have an idea for a bigger change, [open an issue first](https://github.com/brettchalupa/graphql-docs/issues/new/choose) and we can discuss it.
|
|
4
|
-
|
|
5
|
-
For fixes and small additions, follow the steps below to get developing and contributing:
|
|
6
|
-
|
|
7
|
-
1. Fork & clone the repository in GitHub
|
|
8
|
-
2. Run the `bin/setup` script to install development dependencies
|
|
9
|
-
3. Work on a branch
|
|
10
|
-
4. Make changes
|
|
11
|
-
5. Ensure tests pass by running `bin/rake`
|
|
12
|
-
6. Commit your changes, this project follows [the Conventional Commits spec](https://www.conventionalcommits.org/en/v1.0.0/)
|
|
13
|
-
7. Open up a pull request
|
|
14
|
-
|
|
15
|
-
## Finding Issues
|
|
16
|
-
|
|
17
|
-
- Good First Issue — If you're new to the project or Ruby, check out the ["good first issue" tag](https://github.com/brettchalupa/graphql-docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22). They're smaller, approachable issues if you're just getting started.
|
|
18
|
-
- Web — tasks that don't require much Ruby knowledge but require HTML and CSS have the ["web" tag](https://github.com/brettchalupa/graphql-docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22web%22+)
|
data/Gemfile
DELETED
data/Rakefile
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'bundler/gem_tasks'
|
|
4
|
-
require 'rake/testtask'
|
|
5
|
-
|
|
6
|
-
require 'rubocop/rake_task'
|
|
7
|
-
|
|
8
|
-
RuboCop::RakeTask.new(:rubocop)
|
|
9
|
-
|
|
10
|
-
Rake::TestTask.new(:test) do |t|
|
|
11
|
-
t.libs << 'test'
|
|
12
|
-
t.libs << 'lib'
|
|
13
|
-
t.warning = false
|
|
14
|
-
t.test_files = FileList['test/**/*_test.rb']
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
task default: :test
|
|
18
|
-
|
|
19
|
-
desc 'Invoke HTML-Proofer'
|
|
20
|
-
task :html_proofer do
|
|
21
|
-
Rake::Task[:generate_sample].invoke('https://www.gjtorikian.com/graphql-docs')
|
|
22
|
-
require 'html-proofer'
|
|
23
|
-
output_dir = File.join(File.dirname(__FILE__), 'output')
|
|
24
|
-
|
|
25
|
-
proofer_options = { disable_external: true, assume_extension: true }
|
|
26
|
-
HTMLProofer.check_directory(output_dir, proofer_options).run
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
desc 'Set up a console'
|
|
30
|
-
task :console do
|
|
31
|
-
require 'graphql-docs'
|
|
32
|
-
|
|
33
|
-
def reload!
|
|
34
|
-
files = $LOADED_FEATURES.select { |feat| feat =~ %r{/graphql-docs/} }
|
|
35
|
-
files.each { |file| load file }
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
require 'irb'
|
|
39
|
-
ARGV.clear
|
|
40
|
-
IRB.start
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
namespace :sample do
|
|
44
|
-
desc 'Generate the sample documentation'
|
|
45
|
-
task :generate do
|
|
46
|
-
require 'graphql-docs'
|
|
47
|
-
|
|
48
|
-
options = {}
|
|
49
|
-
options[:delete_output] = true
|
|
50
|
-
options[:base_url] = ENV.fetch('GQL_DOCS_BASE_URL', '')
|
|
51
|
-
options[:filename] = File.join(File.dirname(__FILE__), 'test', 'graphql-docs', 'fixtures', 'gh-schema.graphql')
|
|
52
|
-
|
|
53
|
-
puts "Generating sample docs"
|
|
54
|
-
GraphQLDocs.build(options)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
desc 'Generate the documentation and run a web server'
|
|
58
|
-
task serve: [:generate] do
|
|
59
|
-
require 'webrick'
|
|
60
|
-
PORT = "5050"
|
|
61
|
-
puts "Navigate to http://localhost:#{PORT} to view the sample docs"
|
|
62
|
-
server = WEBrick::HTTPServer.new Port: PORT
|
|
63
|
-
server.mount '/', WEBrick::HTTPServlet::FileHandler, 'output'
|
|
64
|
-
trap('INT') { server.stop }
|
|
65
|
-
server.start
|
|
66
|
-
end
|
|
67
|
-
task server: :serve
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
desc 'Generate and publish docs to gh-pages'
|
|
71
|
-
task :publish do
|
|
72
|
-
ENV['GQL_DOCS_BASE_URL'] = '/graphql-docs'
|
|
73
|
-
Rake::Task[:generate_sample].invoke('https://www.gjtorikian.com/graphql-docs')
|
|
74
|
-
Dir.mktmpdir do |tmp|
|
|
75
|
-
system "mv output/* #{tmp}"
|
|
76
|
-
system 'git checkout gh-pages'
|
|
77
|
-
system 'rm -rf *'
|
|
78
|
-
system "mv #{tmp}/* ."
|
|
79
|
-
message = "Site updated at #{Time.now.utc}"
|
|
80
|
-
system 'git add .'
|
|
81
|
-
system "git commit -am #{message.shellescape}"
|
|
82
|
-
system 'git push origin gh-pages --force'
|
|
83
|
-
system 'git checkout master'
|
|
84
|
-
system 'echo yolo'
|
|
85
|
-
end
|
|
86
|
-
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2
|
-
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14" />
|
|
3
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|