History

Merge branch 'origin/main' into patch-1

Simon Legner committed 3 years ago

Commit a02e0f42 parents 1ebb547 2393c2a20 files · +66 −959Browse files

Unified · Split

20 files
  1. .github/workflows/build.yml +1 −1
  2. .github/workflows/schedule-doc-report.yml +1 −1
  3. .github/workflows/test.yml +1 −1
  4. assets/javascripts/templates/pages/about_tmpl.coffee +15 −938
  5. assets/stylesheets/components/_content.scss +1 −1
  6. lib/docs/core/manifest.rb +5 −1
  7. lib/docs/scrapers/astro.rb +1 −1
  8. lib/docs/scrapers/cmake.rb +5 −0
  9. lib/docs/scrapers/fish.rb +9 −1
  10. lib/docs/scrapers/i3.rb +1 −1
  11. lib/docs/scrapers/kotlin.rb +6 −1
  12. lib/docs/scrapers/mdn/css.rb +1 −1
  13. lib/docs/scrapers/mdn/dom.rb +1 −1
  14. lib/docs/scrapers/mdn/html.rb +1 −1
  15. lib/docs/scrapers/mdn/javascript.rb +1 −1
  16. lib/docs/scrapers/mdn/mdn.rb +1 −1
  17. lib/docs/scrapers/support_tables.rb +9 −2
  18. lib/docs/scrapers/svelte.rb +1 −1
  19. lib/docs/scrapers/vueuse.rb +1 −1
  20. test/lib/docs/core/manifest_test.rb +4 −3
.github/workflows/build.yml+1−1
@@ -13,7 +13,7 @@ jobs: · 12 unmodified lines
13 steps:13 steps:
14 - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.014 - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
15 - name: Set up Ruby15 - name: Set up Ruby
16 uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.016 uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1
17 with:17 with:
18 bundler-cache: true # runs 'bundle install' and caches installed gems automatically18 bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19 - name: Run tests19 - name: Run tests
.github/workflows/schedule-doc-report.yml+1−1
@@ -10,7 +10,7 @@ jobs: · 9 unmodified lines
10 steps:10 steps:
11 - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.011 - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
12 - name: Set up Ruby12 - name: Set up Ruby
13 uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.013 uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1
14 with:14 with:
15 bundler-cache: true # runs 'bundle install' and caches installed gems automatically15 bundler-cache: true # runs 'bundle install' and caches installed gems automatically
16 - name: Generate report16 - name: Generate report
.github/workflows/test.yml+1−1
@@ -11,7 +11,7 @@ jobs: · 10 unmodified lines
11 steps:11 steps:
12 - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.012 - uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
13 - name: Set up Ruby13 - name: Set up Ruby
14 uses: ruby/setup-ruby@09c10210cc6e998d842ce8433cd9d245933cd797 # v1.133.014 uses: ruby/setup-ruby@319066216501fbd5e2d568f14b7d68c19fb67a5d # v1.133.1
15 with:15 with:
16 bundler-cache: true # runs 'bundle install' and caches installed gems automatically16 bundler-cache: true # runs 'bundle install' and caches installed gems automatically
17 - name: Run tests17 - name: Run tests
assets/javascripts/templates/pages/about_tmpl.coffee+15−938
@@ -1,4 +1,9 @@
1app.templates.aboutPage = -> """1app.templates.aboutPage = ->
2 all_docs = app.docs.all().concat(app.disabledDocs.all()...)
3 # de-duplicate docs by doc.name
4 docs = []
5 docs.push doc for doc in all_docs when not (docs.find (d) -> d.name == doc.name)
6 """
2 <nav class="_toc" role="directory">7 <nav class="_toc" role="directory">
3 <h3 class="_toc-title">Table of Contents</h3>8 <h3 class="_toc-title">Table of Contents</h3>
4 <ul class="_toc-list">9 <ul class="_toc-list">
@@ -61,9 +66,15 @@ app.templates.aboutPage = -> """ · 56 unmodified lines
61 <table class="_credits">66 <table class="_credits">
62 <tr>67 <tr>
63 <th>Documentation68 <th>Documentation
64 <th>Copyright69 <th>Copyright/License
65 <th>License70 <th>Source code
66 #{("<tr><td>#{c[0]}<td>&copy; #{c[1]}<td><a href=\"#{c[3]}\">#{c[2]}</a>" for c in credits).join('')}71 #{(
72 "<tr>
73 <td><a href=\"#{doc.links?.home}\">#{doc.name}</a></td>
74 <td>#{doc.attribution}</td>
75 <td><a href=\"#{doc.links?.code}\">Source code</a></td>
76 </tr>" for doc in docs
77 ).join('')}
67 </table>78 </table>
68 </div>79 </div>
69 80
@@ -78,937 +89,3 @@ app.templates.aboutPage = -> """ · 8 unmodified lines
78 <li>If you have any questions regarding privacy, please email <a href="mailto:privacy@freecodecamp.org">privacy@freecodecamp.org</a>.89 <li>If you have any questions regarding privacy, please email <a href="mailto:privacy@freecodecamp.org">privacy@freecodecamp.org</a>.
79 </ul>90 </ul>
80"""91"""
81
82credits = [
83 [
84 'Angular',
85 '2010-2022 Google, Inc.',
86 'CC BY',
87 'https://creativecommons.org/licenses/by/4.0/'
88 ], [
89 'Angular.js',
90 '2010-2020 Google, Inc.',
91 'CC BY 3.0',
92 'https://creativecommons.org/licenses/by/3.0/'
93 ], [
94 'Ansible',
95 '2012-2018 Michael DeHaan<br>&copy; 2018–2021 Red Hat, Inc.',
96 'GPLv3',
97 'https://raw.githubusercontent.com/ansible/ansible/devel/COPYING'
98 ], [
99 'Apache HTTP Server<br>Apache Pig',
100 '2018 The Apache Software Foundation<br>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.',
101 'Apache',
102 'https://www.apache.org/licenses/LICENSE-2.0'
103 ], [
104 'Astro',
105 '2022 withastro',
106 'MIT',
107 'https://github.com/withastro/docs/blob/main/LICENSE'
108 ], [
109 'Async',
110 '2010-2018 Caolan McMahon',
111 'MIT',
112 'https://raw.githubusercontent.com/caolan/async/master/LICENSE'
113 ], [
114 'Axios',
115 '2014-present Matt Zabriskie',
116 'MIT',
117 'https://raw.githubusercontent.com/axios/axios/main/LICENSE'
118 ], [
119 'Babel',
120 '2014-present Sebastian McKenzie',
121 'MIT',
122 'https://raw.githubusercontent.com/babel/babel/master/LICENSE'
123 ], [
124 'Backbone.js',
125 '2010-2019 Jeremy Ashkenas, DocumentCloud',
126 'MIT',
127 'https://raw.githubusercontent.com/jashkenas/backbone/master/LICENSE'
128 ], [
129 'Bash',
130 '2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.',
131 'GFDL',
132 'https://www.gnu.org/licenses/fdl-1.3.en.html'
133 ], [
134 'Bluebird',
135 '2013-2018 Petka Antonov',
136 'MIT',
137 'https://raw.githubusercontent.com/petkaantonov/bluebird/master/LICENSE'
138 ], [
139 'Bootstrap',
140 '2011-2022 Twitter, Inc.<br>2011-2022 The Bootstrap Authors',
141 'CC BY',
142 'https://creativecommons.org/licenses/by/3.0/'
143 ], [
144 'Bottle',
145 '2009-2017 Marcel Hellkamp',
146 'MIT',
147 'https://raw.githubusercontent.com/bottlepy/bottle/master/LICENSE'
148 ], [
149 'Bower',
150 '2018 Bower contributors',
151 'MIT',
152 'https://github.com/bower/bower.github.io/blob/1057905c18d899106f91372e6cca7ef54a91d60f/package.json#L20'
153 ], [
154 'C<br>C++',
155 'cppreference.com',
156 'CC BY-SA',
157 'http://en.cppreference.com/w/Cppreference:Copyright/CC-BY-SA'
158 ], [
159 'CakePHP',
160 '2005-present The Cake Software Foundation, Inc.',
161 'MIT',
162 'https://raw.githubusercontent.com/cakephp/cakephp/master/LICENSE'
163 ], [
164 'Chai',
165 '2017 Chai.js Assertion Library',
166 'MIT',
167 'https://raw.githubusercontent.com/chaijs/chai/master/LICENSE'
168 ], [
169 'Chef&trade;',
170 'Chef Software, Inc.',
171 'CC BY',
172 'https://raw.githubusercontent.com/chef/chef-web-docs-2016/master/LICENSE'
173 ], [
174 'Clojure',
175 'Rich Hickey',
176 'EPL',
177 'https://github.com/clojure/clojure/blob/master/epl-v10.html'
178 ], [
179 'CMake',
180 '2000-2022 Kitware, Inc. and Contributors',
181 'BSD',
182 'https://cmake.org/licensing/'
183 ], [
184 'Codeception',
185 '2011 Michael Bodnarchuk and contributors',
186 'MIT',
187 'https://raw.githubusercontent.com/Codeception/Codeception/master/LICENSE'
188 ], [
189 'CodeceptJS',
190 '2015 DavertMik',
191 'MIT',
192 'https://raw.githubusercontent.com/Codeception/CodeceptJS/master/LICENSE'
193 ], [
194 'CodeIgniter',
195 '2014-2021 British Columbia Institute of Technology',
196 'MIT',
197 'https://raw.githubusercontent.com/bcit-ci/CodeIgniter/develop/license.txt'
198 ], [
199 'CoffeeScript',
200 '2009-2022 Jeremy Ashkenas',
201 'MIT',
202 'https://raw.githubusercontent.com/jashkenas/coffeescript/master/LICENSE'
203 ], [
204 'Composer',
205 'Nils Adermann, Jordi Boggiano',
206 'MIT',
207 'https://raw.githubusercontent.com/composer/composer/master/LICENSE'
208 ], [
209 'Cordova',
210 '2012, 2013, 2015 The Apache Software Foundation',
211 'Apache',
212 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
213 ], [
214 'Crystal',
215 '2012-2022 Manas Technology Solutions',
216 'Apache',
217 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
218 ], [
219 'CSS<br>DOM<br>HTTP<br>HTML<br>JavaScript<br>SVG<br>XPath',
220 '2005-2022 MDN contributors',
221 'CC BY-SA',
222 'https://creativecommons.org/licenses/by-sa/2.5/'
223 ], [
224 'Cypress',
225 '2017 Cypress.io',
226 'MIT',
227 'https://raw.githubusercontent.com/cypress-io/cypress-documentation/develop/LICENSE.md'
228 ], [
229 'D',
230 '1999-2021 The D Language Foundation',
231 'Boost',
232 'https://raw.githubusercontent.com/dlang/phobos/master/LICENSE_1_0.txt'
233 ], [
234 'D3.js',
235 '2010-2022 Michael Bostock',
236 'BSD',
237 'https://raw.githubusercontent.com/d3/d3/master/LICENSE'
238 ], [
239 'Dart',
240 '2012 the Dart project authors',
241 'BSD 3-Clause "New" or "Revised" License',
242 'https://raw.githubusercontent.com/dart-lang/sdk/main/LICENSE'
243 ], [
244 'date-fns',
245 '2021 Sasha Koss and Lesha Koss',
246 'MIT',
247 'https://raw.githubusercontent.com/date-fns/date-fns/main/LICENSE.md'
248 ], [
249 'Deno',
250 '2018–2022 the Deno authors',
251 'MIT',
252 'https://raw.githubusercontent.com/denoland/manual/main/LICENSE'
253 ], [
254 'Django',
255 'Django Software Foundation and individual contributors',
256 'BSD',
257 'https://raw.githubusercontent.com/django/django/master/LICENSE'
258 ], [
259 'Django REST Framework',
260 '2011-present Encode OSS Ltd.',
261 'BSD',
262 'https://raw.githubusercontent.com/encode/django-rest-framework/master/LICENSE.md'
263 ], [
264 'Docker',
265 '2019 Docker, Inc.<br>Docker and the Docker logo are trademarks of Docker, Inc.',
266 'Apache',
267 'https://raw.githubusercontent.com/docker/docker.github.io/master/LICENSE'
268 ], [
269 'Dojo',
270 '2005-2017 JS Foundation',
271 'BSD + AFL',
272 'http://dojotoolkit.org/license.html'
273 ], [
274 'Drupal',
275 '2001-2015 by the original authors<br>Drupal is a registered trademark of Dries Buytaert.',
276 'GPLv2',
277 'https://api.drupal.org/api/drupal/LICENSE.txt'
278 ],[
279 'Eigen3',
280 'Eigen',
281 'MPL2',
282 'https://www.mozilla.org/en-US/MPL/2.0/'
283 ], [
284 'Electron',
285 'GitHub Inc.',
286 'MIT',
287 'https://raw.githubusercontent.com/electron/electron/master/LICENSE'
288 ], [
289 'Elisp',
290 '1990-1996, 1998-2022 Free Software Foundation, Inc.',
291 'GPLv3',
292 'https://www.gnu.org/licenses/gpl-3.0.html'
293 ], [
294 'Elixir',
295 '2012 Plataformatec',
296 'Apache',
297 'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE'
298 ], [
299 'Ember.js',
300 '2022 Yehuda Katz, Tom Dale and Ember.js contributors',
301 'MIT',
302 'https://raw.githubusercontent.com/emberjs/ember.js/master/LICENSE'
303 ], [
304 'Enzyme',
305 '2015 Airbnb, Inc.',
306 'MIT',
307 'https://raw.githubusercontent.com/airbnb/enzyme/master/LICENSE.md'
308 ], [
309 'Erlang',
310 '2010-2022 Ericsson AB',
311 'Apache',
312 'https://raw.githubusercontent.com/erlang/otp/maint/LICENSE.txt'
313 ], [
314 'esbulid',
315 '2020 Evan Wallace',
316 'MIT',
317 'https://raw.githubusercontent.com/evanw/esbuild/blob/master/LICENSE.md'
318 ], [
319 'ESLint',
320 'OpenJS Foundation and other contributors',
321 'MIT',
322 'https://raw.githubusercontent.com/eslint/eslint/master/LICENSE'
323 ], [
324 'Express',
325 '2017 StrongLoop, IBM, and other expressjs.com contributors.',
326 'CC BY-SA',
327 'https://raw.githubusercontent.com/expressjs/expressjs.com/gh-pages/LICENSE.md'
328 ], [
329 'Falcon',
330 '2019 by Falcon contributors',
331 'Apache',
332 'https://raw.githubusercontent.com/falconry/falcon/master/LICENSE'
333 ], [
334 'FastAPI',
335 '2018 Sebastián Ramírez',
336 'MIT',
337 'https://github.com/tiangolo/fastapi/blob/master/LICENSE'
338 ], [
339 'Fish',
340 '2005–2009 Axel Liljencrantz, 2009–2022 fish-shell contributors',
341 'GPLv2',
342 'https://fishshell.com/docs/current/license.html'
343 ], [
344 'Flask',
345 '2007-2022 Pallets',
346 'BSD',
347 'https://github.com/pallets/flask/blob/master/LICENSE.rst'
348 ], [
349 'GCC<br>GNU Fortran<br>GNU Make',
350 'Free Software Foundation',
351 'GFDL',
352 'https://www.gnu.org/licenses/fdl-1.3.en.html'
353 ], [
354 'Git',
355 '2012-2022 Scott Chacon and others',
356 'MIT',
357 'https://raw.githubusercontent.com/git/git-scm.com/master/MIT-LICENSE.txt'
358 ], [
359 'GnuCOBOL',
360 'Free Software Foundation',
361 'GFDL',
362 'https://www.gnu.org/licenses/fdl-1.3.en.html'
363 ], [
364 'Gnuplot',
365 'Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley',
366 'gnuplot license',
367 'https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright'
368 ], [
369 'Go',
370 'Google, Inc.',
371 'CC BY',
372 'https://creativecommons.org/licenses/by/3.0/'
373 ], [
374 'Godot',
375 '2014-2022 Juan Linietsky, Ariel Manzur, Godot Engine contributors',
376 'MIT',
377 'https://raw.githubusercontent.com/godotengine/godot/master/LICENSE.txt'
378 ], [
379 'Graphite',
380 '2008-2012 Chris Davis<br>&copy; 2011-2016 The Graphite Project',
381 'Apache',
382 'https://raw.githubusercontent.com/graphite-project/graphite-web/master/LICENSE'
383 ], [
384 'Groovy',
385 '2003-2022 The Apache Software Foundation',
386 'Apache',
387 'https://github.com/apache/groovy-website/blob/asf-site/LICENSE'
388 ], [
389 'Grunt',
390 'GruntJS Team',
391 'MIT',
392 'https://github.com/gruntjs/grunt-docs/blob/master/package.json#L10'
393 ], [
394 'GTK',
395 'The GNOME Project',
396 'LGPLv2.1+',
397 'https://gitlab.gnome.org/GNOME/gtk/-/blob/master/COPYING'
398 ], [
399 'Handlebars',
400 '2011-2017 Yehuda Katz',
401 'MIT',
402 'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'
403 ], [
404 'HAProxy',
405 '2022 Willy Tarreau, HAProxy contributors',
406 'GPLv2',
407 'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE'
408 ], [
409 'Haskell',
410 'The University of Glasgow',
411 'BSD',
412 'https://www.haskell.org/ghc/license'
413 ], [
414 'Haxe',
415 '2005-2018 Haxe Foundation',
416 'MIT',
417 'https://haxe.org/foundation/open-source.html'
418 ], [
419 'Homebrew',
420 '2009-present Homebrew contributors',
421 'BSD',
422 'https://raw.githubusercontent.com/Homebrew/brew/master/LICENSE.txt'
423 ], [
424 'i3',
425 '2009, Michael Stapelberg and contributors',
426 'BSD',
427 'https://raw.githubusercontent.com/i3/i3/next/LICENSE'
428 ], [
429 'Immutable.js',
430 '2014–present Lee Byron and other contributors',
431 'BSD',
432 'https://github.com/immutable-js/immutable-js/blob/main/LICENSE'
433 ], [
434 'InfluxData',
435 '2015 InfluxData, Inc.',
436 'MIT',
437 'https://github.com/influxdata/docs.influxdata.com/blob/master/LICENSE'
438 ], [
439 'Jasmine',
440 '2008-2019 Pivotal Labs',
441 'MIT',
442 'https://raw.githubusercontent.com/jasmine/jasmine/main/MIT.LICENSE'
443 ], [
444 'Jekyll',
445 '2020 Jekyll Core Team and contributors',
446 'MIT',
447 'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE'
448 ], [
449 'Jest',
450 '2022 Facebook, Inc.',
451 'MIT',
452 'https://raw.githubusercontent.com/facebook/jest/master/LICENSE'
453 ], [
454 'Jinja',
455 '2007-2021 Pallets',
456 'BSD',
457 'https://github.com/pallets/jinja/blob/master/LICENSE.rst'
458 ], [
459 'jq',
460 'Stephen Dolan',
461 'CC-BY-3.0',
462 'https://github.com/stedolan/jq/blob/master/COPYING#L24-L28'
463 ], [
464 'jQuery',
465 'Packt Publishing<br>&copy; jQuery Foundation and other contributors',
466 'MIT',
467 'https://raw.githubusercontent.com/jquery/api.jquery.com/master/LICENSE.txt'
468 ], [
469 'jQuery Mobile',
470 'jQuery Foundation and other contributors',
471 'MIT',
472 'https://raw.githubusercontent.com/jquery/api.jquerymobile.com/master/LICENSE.txt'
473 ], [
474 'jQuery UI',
475 'jQuery Foundation and other contributors',
476 'MIT',
477 'https://raw.githubusercontent.com/jquery/api.jqueryui.com/master/LICENSE.txt'
478 ], [
479 'JSDoc',
480 '2011-2017 the contributors to the JSDoc 3 documentation project',
481 'CC BY-SA',
482 'https://raw.githubusercontent.com/jsdoc3/jsdoc3.github.com/master/LICENSE'
483 ], [
484 'Julia',
485 '2009-2022 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors',
486 'MIT',
487 'https://raw.githubusercontent.com/JuliaLang/julia/master/LICENSE.md'
488 ], [
489 'Knockout.js',
490 'Steven Sanderson, the Knockout.js team, and other contributors',
491 'MIT',
492 'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE'
493 ], [
494 'Koa',
495 '2020 Koa contributors',
496 'MIT',
497 'https://raw.githubusercontent.com/koajs/koa/master/LICENSE'
498 ], [
499 'Kotlin',
500 '2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors',
501 'Apache',
502 'https://raw.githubusercontent.com/JetBrains/kotlin/master/license/LICENSE.txt'
503 ], [
504 'Kubernetes',
505 '2022 The Kubernetes Authors and The Linux Foundation',
506 'Apache License 2.0',
507 'https://github.com/kubernetes/kubernetes/blob/master/LICENSE'
508 ], [
509 'Laravel',
510 'Taylor Otwell',
511 'MIT',
512 'https://raw.githubusercontent.com/laravel/framework/master/LICENSE.txt'
513 ], [
514 'LaTeX',
515 'Karl Berry',
516 'Public Domain',
517 'https://ctan.org/pkg/latex2e-help-texinfo/'
518 ], [
519 'Leaflet',
520 '2010-2022 Vladimir Agafonkin<br>&copy; 2010-2011, CloudMade<br>Maps &copy; OpenStreetMap contributors.',
521 'BSD',
522 'https://raw.githubusercontent.com/Leaflet/Leaflet/master/LICENSE'
523 ], [
524 'Less',
525 '2009-2020 The Core Less Team',
526 'CC BY',
527 'https://creativecommons.org/licenses/by/3.0/'
528 ], [
529 'Liquid',
530 '2005, 2006 Tobias Luetke',
531 'MIT',
532 'https://raw.githubusercontent.com/Shopify/liquid/master/LICENSE'
533 ], [
534 'Lo-Dash',
535 'JS Foundation and other contributors',
536 'MIT',
537 'https://raw.githubusercontent.com/lodash/lodash/master/LICENSE'
538 ], [
539 'Lua',
540 '1994–2020 Lua.org, PUC-Rio',
541 'MIT',
542 'http://www.lua.org/license.html'
543 ], [
544 'LÖVE',
545 '2006-2020 LÖVE Development Team',
546 'GFDL',
547 'http://www.gnu.org/copyleft/fdl.html'
548 ], [
549 'MariaDB',
550 '2022 MariaDB',
551 'CC BY-SA & GFDL',
552 'https://mariadb.com/kb/en/library/documentation/+license/'
553 ], [
554 'Marionette.js',
555 '2017 Muted Solutions, LLC',
556 'MIT',
557 'https://mutedsolutions.mit-license.org/'
558 ], [
559 'Markdown',
560 '2004 John Gruber',
561 'BSD',
562 'https://daringfireball.net/projects/markdown/license'
563 ], [
564 'Matplotlib',
565 '2012-2022 Matplotlib Development Team. All rights reserved.',
566 'Custom',
567 'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE'
568 ], [
569 'Meteor',
570 '2011-2017 Meteor Development Group, Inc.',
571 'MIT',
572 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE'
573 ], [
574 'Minitest',
575 'Ryan Davis, seattle.rb',
576 'MIT',
577 'https://github.com/seattlerb/minitest/blob/master/README.rdoc#license'
578 ], [
579 'Mocha',
580 '2011-2021 JS Foundation and contributors',
581 'CC BY',
582 'https://creativecommons.org/licenses/by/4.0/'
583 ], [
584 'Modernizr',
585 '2009-2020 The Modernizr team',
586 'MIT',
587 'https://modernizr.com/license/'
588 ], [
589 'Moment.js<br>Moment.js Timezone',
590 'JS Foundation and other contributors',
591 'MIT',
592 'https://raw.githubusercontent.com/moment/moment/master/LICENSE'
593 ], [
594 'Mongoose',
595 '2010 LearnBoost',
596 'MIT',
597 'https://github.com/LearnBoost/mongoose/blob/master/README.md#license'
598 ], [
599 'nginx',
600 '2002-2021 Igor Sysoev<br>&copy; 2011-2022 Nginx, Inc.',
601 'BSD',
602 'http://nginx.org/LICENSE'
603 ], [
604 'nginx / Lua Module',
605 '2009-2017 Xiaozhe Wang (chaoslawful)<br>&copy; 2009-2018 Yichun "agentzh" Zhang (章亦春), OpenResty Inc.',
606 'BSD',
607 'https://github.com/openresty/lua-nginx-module#copyright-and-license'
608 ], [
609 'Nim',
610 '2006-2021 Andreas Rumpf',
611 'MIT',
612 'https://github.com/nim-lang/Nim#license'
613 ], [
614 'Nix',
615 '2022 NixOS Contributors',
616 'LGPLv2.1',
617 'https://github.com/NixOS/nix#license'
618 ], [
619 'Node.js',
620 'Joyent, Inc. and other Node contributors<br>Node.js is a trademark of Joyent, Inc.',
621 'MIT',
622 'https://raw.githubusercontent.com/nodejs/node/master/LICENSE'
623 ], [
624 'Nokogiri',
625 '2008–2021 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo, Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis',
626 'MIT',
627 'https://raw.githubusercontent.com/sparklemotion/nokogiri/master/LICENSE.md'
628 ], [
629 'npm',
630 'npm, Inc. and Contributors<br>npm is a trademark of npm, Inc.',
631 'npm',
632 'https://raw.githubusercontent.com/npm/npm/master/LICENSE'
633 ], [
634 'NumPy',
635 '2005-2022 NumPy Developers',
636 'BSD',
637 'https://raw.githubusercontent.com/numpy/numpy/master/LICENSE.txt'
638 ], [
639 'OCaml',
640 '1995-2022 INRIA',
641 'CC BY-SA',
642 'https://ocaml.org/docs/'
643 ], [
644 'Octave',
645 '1996–2022 The Octave Project Developers',
646 'Octave',
647 'https://docs.octave.org/v7.2.0/'
648 ], [
649 'OpenJDK',
650 '1993, 2022, Oracle and/or its affiliates. All rights reserved.<br>Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>Various third party code in OpenJDK is licensed under different licenses.<br>Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.',
651 'GPLv2',
652 'http://openjdk.java.net/legal/gplv2+ce.html'
653 ], [
654 'OpenTSDB',
655 '2010-2016 The OpenTSDB Authors',
656 'LGPLv2.1',
657 'https://raw.githubusercontent.com/OpenTSDB/opentsdb.net/gh-pages/COPYING.LESSER'
658 ], [
659 'Padrino',
660 '2010-2020 Padrino',
661 'MIT',
662 'https://raw.githubusercontent.com/padrino/padrino-framework/master/padrino/LICENSE.txt'
663 ], [
664 'pandas',
665 '2008-2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team',
666 'BSD',
667 'https://raw.githubusercontent.com/pydata/pandas/master/LICENSE'
668 ], [
669 'Perl',
670 '1993-2021 Larry Wall and others',
671 'GPLv1',
672 'https://perldoc.perl.org/index-licence.html'
673 ], [
674 'Phalcon',
675 '2011-2017 Phalcon Framework Team',
676 'CC BY',
677 'https://docs.phalconphp.com/en/latest/reference/license.html'
678 ], [
679 'Phaser',
680 '2016 Richard Davey, Photon Storm Ltd.',
681 'MIT',
682 'https://raw.githubusercontent.com/photonstorm/phaser/master/license.txt'
683 ], [
684 'Phoenix',
685 '2014 Chris McCord',
686 'MIT',
687 'https://raw.githubusercontent.com/phoenixframework/phoenix/master/LICENSE.md'
688 ], [
689 'PHP',
690 '1997-2022 The PHP Documentation Group',
691 'CC BY',
692 'https://secure.php.net/manual/en/copyright.php'
693 ], [
694 'PHPUnit',
695 '2005-2017 Sebastian Bergmann',
696 'CC BY',
697 'https://creativecommons.org/licenses/by/3.0/'
698 ], [
699 'PointCloudLibrary',
700 '2009–2012, Willow Garage, Inc.<br>&copy; 2012–, Open Perception, Inc.',
701 'BSD',
702 'https://raw.githubusercontent.com/PointCloudLibrary/pcl/master/LICENSE.txt'
703 ], [
704 'Pony',
705 '2016-2020, The Pony Developers & 2014-2015, Causality Ltd.',
706 'BSD',
707 'https://raw.githubusercontent.com/ponylang/ponyc/master/LICENSE'
708 ], [
709 'PostgreSQL',
710 '1996-2022 The PostgreSQL Global Development Group<br>&copy; 1994 The Regents of the University of California',
711 'PostgreSQL',
712 'https://www.postgresql.org/about/licence/'
713 ], [
714 'Prettier',
715 'James Long and contributors',
716 'MIT',
717 'https://raw.githubusercontent.com/prettier/prettier/main/LICENSE '
718 ], [
719 'Puppeteer',
720 '2021 Google Inc',
721 'Apache',
722 'https://raw.githubusercontent.com/puppeteer/puppeteer/master/LICENSE'
723 ], [
724 'Pygame',
725 'Pygame Developers',
726 'LGPLv2.1',
727 'https://raw.githubusercontent.com/pygame/pygame/master/LICENSE'
728 ], [
729 'Python',
730 '2001-2022 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
731 'PSFL',
732 'https://docs.python.org/3/license.html'
733 ], [
734 'PyTorch',
735 '2019 Torch Contributors',
736 'BSD',
737 'https://raw.githubusercontent.com/pytorch/pytorch/master/LICENSE'
738 ], [
739 'Q',
740 '2009-2017 Kristopher Michael Kowal',
741 'MIT',
742 'https://raw.githubusercontent.com/kriskowal/q/master/LICENSE'
743 ], [
744 'Qt',
745 '2012-2018 The Qt Company Ltd',
746 'GFDL',
747 'https://doc.qt.io/qt-5/licensing.html'
748 ], [
749 'QUnit',
750 'OpenJS Foundation and other contributors',
751 'MIT',
752 'https://raw.githubusercontent.com/qunitjs/qunit/main/LICENSE.txt'
753 ], [
754 'R',
755 '1999–2012 R Foundation for Statistical Computing',
756 'GPL',
757 'https://svn.r-project.org/R/trunk/COPYING'
758 ], [
759 'Ramda',
760 '2013-2020 Scott Sauyet and Michael Hurley',
761 'MIT',
762 'https://raw.githubusercontent.com/ramda/ramda/master/LICENSE.txt'
763 ], [
764 'React, React Native, Flow, Relay',
765 'Facebook Inc. and its affiliates',
766 'MIT',
767 'https://raw.githubusercontent.com/facebook/react/master/LICENSE'
768 ], [
769 'React Bootstrap',
770 '2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff',
771 'MIT',
772 'https://raw.githubusercontent.com/react-bootstrap/react-bootstrap/master/LICENSE'
773 ], [
774 'React Router',
775 'React Training 2015-2019<br>Remix Software 2020-2022',
776 'MIT',
777 'https://raw.githubusercontent.com/remix-run/react-router/main/LICENSE.md'
778 ], [
779 'ReactiveX',
780 'ReactiveX contributors',
781 'Apache',
782 'https://raw.githubusercontent.com/ReactiveX/reactivex.github.io/develop/LICENSE'
783 ], [
784 'Redis',
785 '2009-2020 Salvatore Sanfilippo',
786 'CC BY-SA',
787 'https://creativecommons.org/licenses/by-sa/4.0/'
788 ], [
789 'Redux',
790 '2015-2022 Dan Abramov',
791 'MIT',
792 'https://raw.githubusercontent.com/reactjs/redux/master/LICENSE.md'
793 ], [
794 'Requests',
795 '2011-2022 Kenneth Reitz and other contributors',
796 'Apache',
797 'https://raw.githubusercontent.com/psf/requests/main/LICENSE'
798 ], [
799 'RequireJS',
800 'jQuery Foundation and other contributors',
801 'MIT',
802 'https://raw.githubusercontent.com/requirejs/requirejs/master/LICENSE'
803 ], [
804 'RethinkDB',
805 'RethinkDB contributors',
806 'CC BY-SA',
807 'https://raw.githubusercontent.com/rethinkdb/docs/master/LICENSE'
808 ], [
809 'Ruby',
810 '1993-2022 Yukihiro Matsumoto',
811 'Ruby',
812 'https://www.ruby-lang.org/en/about/license.txt'
813 ], [
814 'Ruby on Rails',
815 '2004-2022 David Heinemeier Hansson<br>Rails, Ruby on Rails, and the Rails logo are trademarks of David Heinemeier Hansson.',
816 'MIT',
817 'https://raw.githubusercontent.com/rails/rails/master/activerecord/MIT-LICENSE'
818 ], [
819 'Rust',
820 '2010 The Rust Project Developers',
821 'MIT',
822 'https://raw.githubusercontent.com/rust-lang/book/master/LICENSE-MIT'
823 ], [
824 'RxJS',
825 '2015-2022 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors',
826 'Apache',
827 'https://raw.githubusercontent.com/ReactiveX/rxjs/master/LICENSE.txt'
828 ], [
829 'Salt Stack',
830 '2021 SaltStack',
831 'Apache',
832 'https://raw.githubusercontent.com/saltstack/salt/develop/LICENSE'
833 ], [
834 'Sanctuary',
835 '2020 Sanctuary; 2016 Plaid Technologies, Inc.',
836 'MIT',
837 'https://raw.githubusercontent.com/sanctuary-js/sanctuary/master/LICENSE'
838 ], [
839 'Sass',
840 '2022 Google Inc.',
841 'MIT',
842 'https://raw.githubusercontent.com/sass/sass/main/LICENSE'
843 ], [
844 'Scala',
845 '2002-2022 EPFL, with contributions from Lightbend',
846 'Apache',
847 'https://www.scala-lang.org/license/'
848 ], [
849 'scikit-image',
850 '2019 the scikit-image team',
851 'BSD',
852 'https://scikit-image.org/docs/dev/license.html'
853 ], [
854 'scikit-learn',
855 '2007-2022 The scikit-learn developers',
856 'BSD',
857 'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING'
858 ], [
859 'Sequelize',
860 '2014—present Sequelize contributors',
861 'MIT',
862 'https://raw.githubusercontent.com/sequelize/sequelize/master/LICENSE'
863 ], [
864 'Sinon',
865 '2010-2021 Christian Johansen',
866 'BSD',
867 'https://raw.githubusercontent.com/sinonjs/sinon/master/LICENSE'
868 ], [
869 'Socket.io',
870 '2014-2018 Automattic',
871 'MIT',
872 'https://raw.githubusercontent.com/Automattic/socket.io/master/LICENSE'
873 ], [
874 'Spring Boot',
875 '2002-2022 Pivotal, Inc. All Rights Reserved.',
876 'Apache License 2.0',
877 'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt'
878 ], [
879 'SQLite',
880 'n/a',
881 'Public Domain',
882 'https://sqlite.org/copyright.html'
883 ], [
884 'Statsmodels',
885 '2009-2012 Statsmodels Developers<br>&copy; 2006-2008 Scipy Developers<br>&copy; 2006 Jonathan E. Taylor',
886 'BSD',
887 'https://raw.githubusercontent.com/statsmodels/statsmodels/master/LICENSE.txt'
888 ], [
889 'Svelte',
890 '2016–2022 Rich Harris and contributors',
891 'MIT',
892 'https://raw.githubusercontent.com/sveltejs/svelte/master/LICENSE.md'
893 ], [
894 'Symfony',
895 '2004-2017 Fabien Potencier',
896 'MIT',
897 'https://symfony.com/doc/current/contributing/code/license.html'
898 ], [
899 'TailwindCSS',
900 '2022 Tailwind Labs, Inc.',
901 'MIT',
902 'https://raw.githubusercontent.com/tailwindlabs/tailwindcss/master/LICENSE'
903 ], [
904 'Tcl/Tk',
905 'The Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, and other parties',
906 'Tcl/Tk',
907 'http://tcl.tk/software/tcltk/license.html'
908 ], [
909 'TensorFlow',
910 '2022 The TensorFlow Authors',
911 'CC BY',
912 'https://creativecommons.org/licenses/by/4.0/'
913 ], [
914 'Terraform',
915 '2018 HashiCorp',
916 'MPL',
917 'https://raw.githubusercontent.com/hashicorp/terraform-website/master/LICENSE.md'
918 ], [
919 'Trio',
920 '2017 Nathaniel J. Smith',
921 'MIT',
922 'https://raw.githubusercontent.com/python-trio/trio/master/LICENSE.MIT'
923 ], [
924 'Twig',
925 '2009-2020 The Twig Team',
926 'BSD',
927 'https://twig.symfony.com/license'
928 ], [
929 'TypeScript',
930 '2012-2022 Microsoft',
931 'Apache',
932 'https://raw.githubusercontent.com/Microsoft/TypeScript-Handbook/master/LICENSE'
933 ], [
934 'Underscore.js',
935 '2009-2021 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors',
936 'MIT',
937 'https://raw.githubusercontent.com/jashkenas/underscore/master/LICENSE'
938 ], [
939 'Vagrant',
940 '2010-2018 Mitchell Hashimoto',
941 'MPL',
942 'https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md'
943 ], [
944 'Vite',
945 '2019–present, Yuxi (Evan) You and Vite contributors',
946 'MIT',
947 'https://github.com/vitejs/vite/blob/main/LICENSE'
948 ], [
949 'Vitest',
950 '2021-Present Anthony Fu<br>2021-Present Matias Capeletto<br>',
951 'MIT',
952 'https://github.com/vitest-dev/vitest/blob/main/LICENSE'
953 ], [
954 'Vue Router',
955 '2013-present Evan You',
956 'MIT',
957 'https://raw.githubusercontent.com/vuejs/vue-router/dev/LICENSE'
958 ], [
959 'Vue.js',
960 '2013-present Yuxi Evan You',
961 'MIT',
962 'https://raw.githubusercontent.com/vuejs/vuejs.org/master/LICENSE'
963 ], [
964 'Vueuse',
965 '2019-present Anthony Fu',
966 'MIT',
967 'https://raw.githubusercontent.com/vueuse/vueuse/main/LICENSE'
968 ], [
969 'Vuex',
970 '2015-present Evan You',
971 'MIT',
972 'https://raw.githubusercontent.com/vuejs/vuex/dev/LICENSE'
973 ], [
974 'Vulkan',
975 '2014-2017 Khronos Group Inc.<br>Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.',
976 'CC BY',
977 'https://creativecommons.org/licenses/by/4.0/'
978 ],[
979 'wagtail',
980 '2014-present Torchbox Ltd and individual contributors',
981 'BSD',
982 'https://github.com/wagtail/wagtail/blob/main/LICENSE'
983 ],[
984 'webpack',
985 'JS Foundation and other contributors',
986 'CC BY',
987 'https://creativecommons.org/licenses/by/4.0/'
988 ], [
989 'Werkzeug',
990 '2007-2022 Pallets',
991 'BSD',
992 'https://github.com/pallets/werkzeug/blob/master/LICENSE.rst'
993 ], [
994 'Wordpress',
995 '2003-2022 WordPress Foundation',
996 'GPLv2+',
997 'https://wordpress.org/about/license/'
998 ], [
999 'Yarn',
1000 '2016-present Yarn Contributors',
1001 'BSD',
1002 'https://raw.githubusercontent.com/yarnpkg/yarn/master/LICENSE'
1003 ], [
1004 'Yii',
1005 '2008-2017 by Yii Software LLC',
1006 'BSD',
1007 'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'
1008 ], [
1009 'Zig',
1010 '2015–2022, Zig contributors',
1011 'MIT',
1012 'https://raw.githubusercontent.com/ziglang/zig/master/LICENSE'
1013 ]
1014]
assets/stylesheets/components/_content.scss+1−1
@@ -228,7 +228,7 @@ · 227 unmodified lines
228//228//
229 229
230._credits {230._credits {
231 width: 100%;231 max-width: 100%;
232}232}
233 233
234//234//
lib/docs/core/manifest.rb+5−1
@@ -16,7 +16,11 @@ module Docs · 15 unmodified lines
16 def as_json16 def as_json
17 @docs.each_with_object [] do |doc, result|17 @docs.each_with_object [] do |doc, result|
18 next unless @store.exist?(doc.meta_path)18 next unless @store.exist?(doc.meta_path)
19 result << JSON.parse(@store.read(doc.meta_path))19 json = JSON.parse(@store.read(doc.meta_path))
20 if doc.options[:attribution].is_a?(String)
21 json[:attribution] = doc.options[:attribution].strip
22 end
23 result << json
20 end24 end
21 end25 end
22 26
lib/docs/scrapers/astro.rb+1−1
@@ -16,7 +16,7 @@ module Docs · 15 unmodified lines
16 16
17 options[:skip_patterns] = [/tutorial/]17 options[:skip_patterns] = [/tutorial/]
18 18
19 self.release = '1.7.2'19 self.release = '1.9.1'
20 self.base_url = 'https://docs.astro.build/en/'20 self.base_url = 'https://docs.astro.build/en/'
21 self.initial_paths = %w(getting-started/)21 self.initial_paths = %w(getting-started/)
22 22
lib/docs/scrapers/cmake.rb+5−0
@@ -20,6 +20,11 @@ module Docs · 19 unmodified lines
20 Licensed under the BSD 3-clause License.20 Licensed under the BSD 3-clause License.
21 HTML21 HTML
22 22
23 version '3.25' do
24 self.release = '3.25'
25 self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
26 end
27
23 version '3.24' do28 version '3.24' do
24 self.release = '3.24'29 self.release = '3.24'
25 self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"30 self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
lib/docs/scrapers/fish.rb+9−1
@@ -12,10 +12,18 @@ module Docs · 11 unmodified lines
12 12
13 # https://fishshell.com/docs/current/license.html13 # https://fishshell.com/docs/current/license.html
14 options[:attribution] = <<-HTML14 options[:attribution] = <<-HTML
15 &copy; 2022 fish-shell developers<br>15 &copy; 2005-2009 Axel Liljencrantz, 2009-2023 fish-shell contributors<br>
16 Licensed under the GNU General Public License, version 2.16 Licensed under the GNU General Public License, version 2.
17 HTML17 HTML
18 18
19 version '3.6' do
20 self.release = '3.6.0'
21 self.base_url = "https://fishshell.com/docs/#{version}/"
22
23 options[:skip].concat %w(genindex.html relnotes.html)
24 html_filters.push 'sphinx/clean_html', 'fish/clean_html_sphinx', 'fish/entries_sphinx'
25 end
26
19 version '3.5' do27 version '3.5' do
20 self.release = '3.5.0'28 self.release = '3.5.0'
21 self.base_url = "https://fishshell.com/docs/#{version}/"29 self.base_url = "https://fishshell.com/docs/#{version}/"
lib/docs/scrapers/i3.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 self.name = 'i3'3 self.name = 'i3'
4 self.type = 'simple'4 self.type = 'simple'
5 self.slug = 'i3'5 self.slug = 'i3'
6 self.release = '4.21'6 self.release = '4.22'
7 self.base_url = 'https://i3wm.org/docs/userguide.html'7 self.base_url = 'https://i3wm.org/docs/userguide.html'
8 self.links = {8 self.links = {
9 home: 'https://i3wm.org/',9 home: 'https://i3wm.org/',
lib/docs/scrapers/kotlin.rb+6−1
@@ -27,10 +27,15 @@ module Docs · 26 unmodified lines
27 end27 end
28 28
29 options[:attribution] = <<-HTML29 options[:attribution] = <<-HTML
30 &copy; 2010&ndash;2022 JetBrains s.r.o. and Kotlin Programming Language contributors<br>30 &copy; 2010&ndash;2023 JetBrains s.r.o. and Kotlin Programming Language contributors<br>
31 Licensed under the Apache License, Version 2.0.31 Licensed under the Apache License, Version 2.0.
32 HTML32 HTML
33 33
34 version '1.8' do
35 self.release = '1.8.0'
36 self.headers = { 'User-Agent' => 'devdocs.io' , 'Cookie' => 'x-ab-test-spring-boot-learning-path=0; userToken=r33dgpe8x3q5vswekg16a' }
37 end
38
34 version '1.7' do39 version '1.7' do
35 self.release = '1.7.20'40 self.release = '1.7.20'
36 end41 end
lib/docs/scrapers/mdn/css.rb+1−1
@@ -1,6 +1,6 @@
1module Docs1module Docs
2 class Css < Mdn2 class Css < Mdn
3 # release = '2022-09-06'3 # release = '2023-01-06'
4 self.name = 'CSS'4 self.name = 'CSS'
5 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS'5 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS'
6 self.root_path = '/Reference'6 self.root_path = '/Reference'
lib/docs/scrapers/mdn/dom.rb+1−1
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Dom < Mdn2 class Dom < Mdn
3 3
4 # release = '2022-04-27'4 # release = '2023-01-06'
5 self.name = 'Web APIs'5 self.name = 'Web APIs'
6 self.slug = 'dom'6 self.slug = 'dom'
7 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API'7 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API'
lib/docs/scrapers/mdn/html.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Html < Mdn2 class Html < Mdn
3 prepend FixInternalUrlsBehavior3 prepend FixInternalUrlsBehavior
4 4
5 # release = '2022-09-06'5 # release = '2023-01-06'
6 self.name = 'HTML'6 self.name = 'HTML'
7 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML'7 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML'
8 8
lib/docs/scrapers/mdn/javascript.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 prepend FixInternalUrlsBehavior3 prepend FixInternalUrlsBehavior
4 prepend FixRedirectionsBehavior4 prepend FixRedirectionsBehavior
5 5
6 # release = '2022-09-06'6 # release = '2023-01-06'
7 self.name = 'JavaScript'7 self.name = 'JavaScript'
8 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference'8 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference'
9 9
lib/docs/scrapers/mdn/mdn.rb+1−1
@@ -13,7 +13,7 @@ module Docs · 12 unmodified lines
13 }13 }
14 14
15 options[:attribution] = <<-HTML15 options[:attribution] = <<-HTML
16 &copy; 2005&ndash;2022 MDN contributors.<br>16 &copy; 2005&ndash;2023 MDN contributors.<br>
17 Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.17 Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
18 HTML18 HTML
19 19
lib/docs/scrapers/support_tables.rb+9−2
@@ -1,13 +1,20 @@
1require 'yajl/json_gem'1require 'yajl/json_gem'
2 2
3module Docs3module Docs
4 class SupportTables < Doc4 class SupportTables < Scraper
5 include Instrumentable5 include Instrumentable
6 6
7 self.name = 'Support Tables'7 self.name = 'Support Tables'
8 self.slug = 'browser_support_tables'8 self.slug = 'browser_support_tables'
9 self.type = 'support_tables'9 self.type = 'support_tables'
10 self.release = '1.0.30001431'10 self.release = '1.0.30001442'
11 self.base_url = 'https://github.com/Fyrd/caniuse/raw/main/'
12
13 # https://github.com/Fyrd/caniuse/blob/main/LICENSE
14 options[:attribution] = <<-HTML
15 &copy; 2020 Alexis Deveria<br>
16 Licensed under the Creative Commons Attribution 4.0 International License.
17 HTML
11 18
12 def build_pages19 def build_pages
13 url = 'https://github.com/Fyrd/caniuse/raw/main/data.json'20 url = 'https://github.com/Fyrd/caniuse/raw/main/data.json'
lib/docs/scrapers/svelte.rb+1−1
@@ -17,7 +17,7 @@ module Docs · 16 unmodified lines
17 17
18 options[:skip] = %w(team.html plugins/)18 options[:skip] = %w(team.html plugins/)
19 19
20 self.release = '3.53.0'20 self.release = '3.55.0'
21 self.base_url = 'https://svelte.dev/docs'21 self.base_url = 'https://svelte.dev/docs'
22 html_filters.push 'svelte/entries', 'svelte/clean_html'22 html_filters.push 'svelte/entries', 'svelte/clean_html'
23 23
lib/docs/scrapers/vueuse.rb+1−1
@@ -22,7 +22,7 @@ module Docs · 21 unmodified lines
22 Licensed under the MIT License.22 Licensed under the MIT License.
23 HTML23 HTML
24 24
25 self.release = '9.8.2'25 self.release = '9.10.0'
26 self.base_url = 'https://vueuse.org/'26 self.base_url = 'https://vueuse.org/'
27 self.initial_paths = %w(functions.html)27 self.initial_paths = %w(functions.html)
28 html_filters.push 'vueuse/entries', 'vite/clean_html', 'vueuse/clean_html'28 html_filters.push 'vueuse/entries', 'vite/clean_html', 'vueuse/clean_html'
test/lib/docs/core/manifest_test.rb+4−3
@@ -3,8 +3,9 @@ require 'docs' · 2 unmodified lines
3 3
4class ManifestTest < MiniTest::Spec4class ManifestTest < MiniTest::Spec
5 let :doc do5 let :doc do
6 doc = Class.new Docs::Doc6 doc = Class.new Docs::Scraper
7 doc.name = 'TestDoc'7 doc.name = 'TestDoc'
8 doc.options[:attribution] = 'foo'
8 doc9 doc
9 end10 end
10 11
@@ -57,13 +58,13 @@ class ManifestTest < MiniTest::Spec · 46 unmodified lines
57 context "when the doc has a meta file" do58 context "when the doc has a meta file" do
58 before do59 before do
59 stub(store).exist?(meta_path) { true }60 stub(store).exist?(meta_path) { true }
60 stub(store).read(meta_path) { '{"name":"Test"}' }61 stub(store).read(meta_path) { '{"name":"Test", "db_size": 776533}' }
61 end62 end
62 63
63 it "includes the doc's meta representation" do64 it "includes the doc's meta representation" do
64 json = manifest.as_json65 json = manifest.as_json
65 assert_equal 1, json.length66 assert_equal 1, json.length
66 assert_equal 'Test', json[0]['name']67 assert_equal "{\"name\"=>\"Test\", \"db_size\"=>776533, :attribution=>\"foo\"}", json[0].to_s
67 end68 end
68 end69 end
69 70