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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-07-25 11:21:33 +02:00 committed by Dietmar Maurer
parent de7763697d
commit e56030c4d7
4 changed files with 5 additions and 2 deletions

1
api-viewer/extjs Symbolic link
View File

@ -0,0 +1 @@
/usr/share/javascript/extjs

View 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>
<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>

View File

@ -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.

1
debian/pve-docs.links vendored Normal file
View File

@ -0,0 +1 @@
/usr/share/javascript/extjs /usr/share/pve-docs/api-viewer/extjs