Commit Graph

6 Commits

Author SHA1 Message Date
Stefan Sterz
be609f0589 docs: add dark mode support to the api viewer
adds dark mode support to the api viewer that is activated depending
on the users theme preference. similar to the main gui's "auto"
theme.

this requires a bumps of the widget toolkit so the loaded css file is
present

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2023-03-08 18:01:35 +01:00
Thomas Lamprecht
e56030c4d7 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>
2018-07-26 14:11:00 +02:00
Thomas Lamprecht
de7763697d api-viewer: use 'normal' over 'touch' theme
The touch feels super zoomed, and the api-viewer is probably much
more viewed through a desktop/laptop not a mobile device with small
high-dpi touch screen.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-07-26 14:10:45 +02:00
Thomas Lamprecht
b23bc10ebd api-viewer: use much smaller minified extjs
Use the over 4 times smaller minfied version of ExtJS, not the debug
one.

Any developer can easily use the debug version if needed, but most of
the times it this isn't the case.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-07-26 14:10:33 +02:00
Dietmar Maurer
b2ff6d63c3 use ExtJS6 for API viewer (theme crisp-touch) 2016-04-30 15:07:52 +02:00
Dietmar Maurer
356064f40d add api-viewer to index.adoc 2016-04-29 14:13:12 +02:00