From eac7f96cdbdd334b1ae2d113237cf126060b5d38 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Mon, 26 Dec 2022 18:39:36 +0100 Subject: [PATCH] /about: Obtain credits from docs metadata --- .../templates/pages/about_tmpl.coffee | 953 +----------------- assets/stylesheets/components/_content.scss | 2 +- lib/docs/core/doc.rb | 8 + lib/docs/core/manifest.rb | 2 +- test/lib/docs/core/manifest_test.rb | 4 +- 5 files changed, 27 insertions(+), 942 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 682ee5b7..681155cd 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -1,4 +1,9 @@ -app.templates.aboutPage = -> """ +app.templates.aboutPage = -> + all_docs = app.docs.all().concat(app.disabledDocs.all()...) + # de-duplicate docs by doc.name + docs = [] + docs.push doc for doc in all_docs when not (docs.find (d) -> d.name == doc.name) + """