From e45c409c20755b665f122e5aaf707632b488596c 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 | 21 ----------------- 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(+), 63 deletions(-) diff --git a/package-lock.json b/package-lock.json index f7c4b44d24..db36e0ed95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,6 @@ "dependencies": { "@citation-js/core": "0.7.9", "@citation-js/plugin-bibtex": "0.7.9", - "@citation-js/plugin-csl": "0.7.9", "@citation-js/plugin-software-formats": "0.6.1", "@claviska/jquery-minicolors": "2.3.6", "@github/markdown-toolbar-element": "2.2.3", @@ -317,21 +316,6 @@ "node": ">=14.0.0" } }, - "node_modules/@citation-js/plugin-csl": { - "version": "0.7.9", - "resolved": "https://registry.npmjs.org/@citation-js/plugin-csl/-/plugin-csl-0.7.9.tgz", - "integrity": "sha512-mbD7CnUiPOuVnjeJwo+d0RGUcY0PE8n01gHyjq0qpTeS42EGmQ9+LzqfsTUVWWBndTwc6zLRuIF1qFAUHKE4oA==", - "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", @@ -3673,11 +3657,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==" - }, "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 2380bbf51e..86765e0344 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "dependencies": { "@citation-js/core": "0.7.9", "@citation-js/plugin-bibtex": "0.7.9", - "@citation-js/plugin-csl": "0.7.9", "@citation-js/plugin-software-formats": "0.6.1", "@claviska/jquery-minicolors": "2.3.6", "@github/markdown-toolbar-element": "2.2.3", 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 @@ - - +