[pbs-devel] [PATCH v3 proxmox-backup 2/2] include prune simulator in build

Fabian Ebner f.ebner at proxmox.com
Tue Nov 3 15:28:42 CET 2020


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

New in v3

Can be squashed into the previous patch. Thought that splitting it out might be
better for reviewability.

 debian/proxmox-backup-docs.links | 1 +
 docs/Makefile                    | 3 ++-
 docs/conf.py                     | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/proxmox-backup-docs.links b/debian/proxmox-backup-docs.links
index 6837733b..719dd555 100644
--- a/debian/proxmox-backup-docs.links
+++ b/debian/proxmox-backup-docs.links
@@ -1 +1,2 @@
 /usr/share/doc/proxmox-backup/proxmox-backup.pdf /usr/share/doc/proxmox-backup/html/proxmox-backup.pdf
+/usr/share/javascript/extjs /usr/share/doc/proxmox-backup/html/prune-simulator/extjs
diff --git a/docs/Makefile b/docs/Makefile
index 471930c8..aa1be2c4 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -74,10 +74,11 @@ onlinehelpinfo:
 	@echo "Build finished. OnlineHelpInfo.js is in $(BUILDDIR)/scanrefs."
 
 .PHONY: html
-html: ${GENERATED_SYNOPSIS} images/proxmox-logo.svg custom.css conf.py
+html: ${GENERATED_SYNOPSIS} images/proxmox-logo.svg custom.css conf.py $(addprefix prune-simulator/,documentation.html index.html prune-simulator.js)
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 	cp images/proxmox-logo.svg $(BUILDDIR)/html/_static/
 	cp custom.css $(BUILDDIR)/html/_static/
+	cp -r prune-simulator $(BUILDDIR)/html/prune-simulator
 	@echo
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
diff --git a/docs/conf.py b/docs/conf.py
index 3c444699..92a9ecb3 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -171,6 +171,7 @@ html_theme_options = {
     'extra_nav_links': {
         'Proxmox Homepage': 'https://proxmox.com',
         'PDF': 'proxmox-backup.pdf',
+        'Prune Simulator' : 'prune-simulator/index.html',
     },
 
     'sidebar_width': '320px',
-- 
2.20.1






More information about the pbs-devel mailing list