History

Merge pull request #1293 from simon04/about-docs-metadata

/about: Obtain credits from docs metadata

Simon Legner committed 3 years ago

Commit 604cfd22 parents 310ce5d eac7f965 files · +27 −942Browse files

Unified · Split

5 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +15 −938
  2. assets/stylesheets/components/_content.scss +1 −1
  3. lib/docs/core/doc.rb +8 −0
  4. lib/docs/core/manifest.rb +1 −1
  5. test/lib/docs/core/manifest_test.rb +2 −2
assets/javascripts/templates/pages/about_tmpl.coffee+15−938
@@ -1,4 +1,9 @@
1−app.templates.aboutPage = -> """
1+app.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+ """
27 <nav class="_toc" role="directory">
38 <h3 class="_toc-title">Table of Contents</h3>
49 <ul class="_toc-list">
@@ -61,9 +66,15 @@ app.templates.aboutPage = -> """ · 56 unmodified lines
6166 <table class="_credits">
6267 <tr>
6368 <th>Documentation
64− <th>Copyright
65− <th>License
66− #{("<tr><td>#{c[0]}<td>&copy; #{c[1]}<td><a href=\"#{c[3]}\">#{c[2]}</a>" for c in credits).join('')}
69+ <th>Copyright/License
70+ <th>Source code
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('')}
6778 </table>
6879 </div>
6980
@@ -78,937 +89,3 @@ app.templates.aboutPage = -> """ · 8 unmodified lines
7889 <li>If you have any questions regarding privacy, please email <a href="mailto:privacy@freecodecamp.org">privacy@freecodecamp.org</a>.
7990 </ul>
8091 """
81−
82−credits = [
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-2021 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
228228 //
229229
230230 ._credits {
231− width: 100%;
231+ max-width: 100%;
232232 }
233233
234234 //
lib/docs/core/doc.rb+8−0
@@ -86,6 +86,14 @@ module Docs · 85 unmodified lines
8686 json
8787 end
8888
89+ def as_json_extra(store)
90+ json = self.as_json
91+ json[:attribution] = options[:attribution].strip if self.class.method_defined?(:options) and options[:attribution].present?
92+ json[:db_size] = store.size(self.db_path) if store.exist?(self.db_path)
93+ json[:mtime] = store.mtime(self.meta_path).to_i if store.exist?(self.meta_path)
94+ json
95+ end
96+
8997 def store_page(store, id)
9098 index = EntryIndex.new
9199 pages = PageDb.new
lib/docs/core/manifest.rb+1−1
@@ -16,7 +16,7 @@ module Docs · 15 unmodified lines
1616 def as_json
1717 @docs.each_with_object [] do |doc, result|
1818 next unless @store.exist?(doc.meta_path)
19− result << JSON.parse(@store.read(doc.meta_path))
19+ result << doc.as_json_extra(@store)
2020 end
2121 end
2222
test/lib/docs/core/manifest_test.rb+2−2
@@ -56,14 +56,14 @@ class ManifestTest < MiniTest::Spec · 55 unmodified lines
5656
5757 context "when the doc has a meta file" do
5858 before do
59+ stub(store).exist?("testdoc/db.json") { false }
5960 stub(store).exist?(meta_path) { true }
60− stub(store).read(meta_path) { '{"name":"Test"}' }
6161 end
6262
6363 it "includes the doc's meta representation" do
6464 json = manifest.as_json
6565 assert_equal 1, json.length
66− assert_equal 'Test', json[0]['name']
66+ assert_equal "{:name=>\"TestDoc\", :slug=>\"testdoc\", :type=>nil, :mtime=>0}", json[0].to_s
6767 end
6868 end
6969