From e56030c4d7c3bd0de1ebc109d528fb6b7bef05a3 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 25 Jul 2018 11:21:33 +0200 Subject: [PATCH] api-viewer: use our extjs package The loading of an external hosted ExtJS is from a time where we did not have a extra ExtJS package as it still was in the pve-manager one, which was not desired to be installed on a non-pve machine. Add a dependency on libjs-extjs and a link from api-viewer/extjs to the installation directory of the ExtJS package, this allows to reuse ExtJS on PVE node hosted docs and on the hosted docs from proxmox.com at the same time. Signed-off-by: Thomas Lamprecht --- api-viewer/extjs | 1 + api-viewer/index.html | 4 ++-- debian/pve-docs.control | 1 + debian/pve-docs.links | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) create mode 120000 api-viewer/extjs create mode 100644 debian/pve-docs.links diff --git a/api-viewer/extjs b/api-viewer/extjs new file mode 120000 index 0000000..b71ec6e --- /dev/null +++ b/api-viewer/extjs @@ -0,0 +1 @@ +/usr/share/javascript/extjs \ No newline at end of file diff --git a/api-viewer/index.html b/api-viewer/index.html index 168b29d..8528420 100644 --- a/api-viewer/index.html +++ b/api-viewer/index.html @@ -5,8 +5,8 @@ Proxmox VE API Documentation - - + + diff --git a/debian/pve-docs.control b/debian/pve-docs.control index 31a8c6e..3a30f4e 100644 --- a/debian/pve-docs.control +++ b/debian/pve-docs.control @@ -1,5 +1,6 @@ Package: pve-docs Section: doc +Depends: libjs-extjs Architecture: all Description: Proxmox VE Documentation This package contains the Proxmox VE Documentation files. diff --git a/debian/pve-docs.links b/debian/pve-docs.links new file mode 100644 index 0000000..78185f7 --- /dev/null +++ b/debian/pve-docs.links @@ -0,0 +1 @@ +/usr/share/javascript/extjs /usr/share/pve-docs/api-viewer/extjs -- 2.39.2