From 888250ea66366204e372af635c1133e19bffd0af Mon Sep 17 00:00:00 2001 From: Beowulf Date: Sat, 20 Jul 2024 15:46:38 +0200 Subject: [PATCH] Remove APA as cite format This removes APA as cite format, because it depends on an copyleft dependency (https://github.com/Juris-M/citeproc-js). (cherry picked from commit 7dc0b2bab64bb237d4546e530de16972af32f273) --- package-lock.json | 23 ------------------ package.json | 1 - templates/repo/cite/cite_buttons.tmpl | 7 ++---- web_src/css/repo.css | 8 ++----- web_src/js/features/citation.js | 34 ++++----------------------- 5 files changed, 8 insertions(+), 65 deletions(-) diff --git a/package-lock.json b/package-lock.json index d737560661..f32771bbbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,6 @@ "dependencies": { "@citation-js/core": "0.7.11", "@citation-js/plugin-bibtex": "0.7.11", - "@citation-js/plugin-csl": "0.7.11", "@citation-js/plugin-software-formats": "0.6.1", "@github/markdown-toolbar-element": "2.2.3", "@github/relative-time-element": "4.4.2", @@ -376,22 +375,6 @@ "node": ">=14.0.0" } }, - "node_modules/@citation-js/plugin-csl": { - "version": "0.7.11", - "resolved": "https://registry.npmjs.org/@citation-js/plugin-csl/-/plugin-csl-0.7.11.tgz", - "integrity": "sha512-4OGZ9wHZDfpgiPU2cOXWGuKt7P+ndGWAeLG95nOG+DXe5U+f9EEZTXfaM4C99x8Ri+g6JklR96A3kuYZxYLllg==", - "license": "MIT", - "dependencies": { - "@citation-js/date": "^0.5.0", - "citeproc": "^2.4.6" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@citation-js/core": "^0.7.0" - } - }, "node_modules/@citation-js/plugin-github": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/@citation-js/plugin-github/-/plugin-github-0.6.1.tgz", @@ -4124,12 +4107,6 @@ "node": ">=8" } }, - "node_modules/citeproc": { - "version": "2.4.63", - "resolved": "https://registry.npmjs.org/citeproc/-/citeproc-2.4.63.tgz", - "integrity": "sha512-68F95Bp4UbgZU/DBUGQn0qV3HDZLCdI9+Bb2ByrTaNJDL5VEm9LqaiNaxljsvoaExSLEXe1/r6n2Z06SCzW3/Q==", - "license": "CPAL-1.0 OR AGPL-1.0" - }, "node_modules/clean-regexp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", diff --git a/package.json b/package.json index 8088703ea5..0abf6fe8b9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "dependencies": { "@citation-js/core": "0.7.11", "@citation-js/plugin-bibtex": "0.7.11", - "@citation-js/plugin-csl": "0.7.11", "@citation-js/plugin-software-formats": "0.6.1", "@github/markdown-toolbar-element": "2.2.3", "@github/relative-time-element": "4.4.2", diff --git a/templates/repo/cite/cite_buttons.tmpl b/templates/repo/cite/cite_buttons.tmpl index 426ca3858e..5a6de23c5c 100644 --- a/templates/repo/cite/cite_buttons.tmpl +++ b/templates/repo/cite/cite_buttons.tmpl @@ -1,9 +1,6 @@ - - +