]> git.proxmox.com Git - pve-docs.git/commitdiff
api-viewer: use our extjs package
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Jul 2018 09:21:33 +0000 (11:21 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Jul 2018 12:11:00 +0000 (14:11 +0200)
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 <t.lamprecht@proxmox.com>
api-viewer/extjs [new symlink]
api-viewer/index.html
debian/pve-docs.control
debian/pve-docs.links [new file with mode: 0644]

diff --git a/api-viewer/extjs b/api-viewer/extjs
new file mode 120000 (symlink)
index 0000000..b71ec6e
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/javascript/extjs
\ No newline at end of file
index 168b29dfd85cfa43a1e1191e7640f86c054eba84..85284208f16a33cae9160be36754da9ad6c391d2 100644 (file)
@@ -5,8 +5,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
     <title>Proxmox VE API Documentation</title>
 
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
     <title>Proxmox VE API Documentation</title>
 
-    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/classic/theme-crisp/resources/theme-crisp.css">
-    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/ext-all.js"></script>
+    <link rel="stylesheet" type="text/css" href="extjs/theme-crisp/resources/theme-crisp-all.css">
+    <script type="text/javascript" src="extjs/ext-all.js"></script>
     <script type="text/javascript" src="apidoc.js"></script>
 </head>
 <body></body>
     <script type="text/javascript" src="apidoc.js"></script>
 </head>
 <body></body>
index 31a8c6e7c7dac2aef0eaaf50b7383a4968cf8f13..3a30f4e83c1f1d2e2c686b9914b7aa490a8f488b 100644 (file)
@@ -1,5 +1,6 @@
 Package: pve-docs
 Section: doc
 Package: pve-docs
 Section: doc
+Depends: libjs-extjs
 Architecture: all
 Description: Proxmox VE Documentation
  This package contains the Proxmox VE Documentation files.
 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 (file)
index 0000000..78185f7
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/javascript/extjs /usr/share/pve-docs/api-viewer/extjs