The following two patches integrate the "Using oVirt" document
provided by the docs rpm into the oVirt server appliance and
rails application. Overall this consists of the following steps
* add ovirt-doc rpm dependency to ovirt-recipe rpm
* use recipe to make "Using oVirt" doc available to rails
* add help_sections table to db
* set application.rb to always lookup appropriate help
section based on controller / action being requested.
if none is found, a default is used
* integrate correct help link into wui, requires various
template / css tweaks
Mohammed Morsi
2008-Oct-01 18:14 UTC
[Ovirt-devel] [PATCH] integrate docs into appliance / server
---
appliances/ovirt/ovirt.pp.in | 4 ++++
ovirt-recipe.spec.in | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/appliances/ovirt/ovirt.pp.in b/appliances/ovirt/ovirt.pp.in
index 1ee8b48..e24c046 100644
--- a/appliances/ovirt/ovirt.pp.in
+++ b/appliances/ovirt/ovirt.pp.in
@@ -168,6 +168,10 @@ single_exec {"ovirt_installation":
require =>
[Service["postgresql"],Single_exec["ovirt_appliance_installation"]]
}
+single_exec {"ovirt_docs_accesible_from_server":
+ command => "/bin/ln -s
/usr/share/doc/ovirt-docs-${appliance_version}/Using_oVirt/
/usr/share/ovirt-server/public/help"
+}
+
#
# Cobbler Configuration
#
diff --git a/ovirt-recipe.spec.in b/ovirt-recipe.spec.in
index 7013b3b..cb134c4 100644
--- a/ovirt-recipe.spec.in
+++ b/ovirt-recipe.spec.in
@@ -29,6 +29,7 @@ Requires: iscsi-initiator-utils
Requires: ovirt-server
Requires: ovirt-node-image-pxe
Requires: ovirt-release
+Requires: ovirt-docs
Requires: rhpl
Requires: cobbler
Requires: rubygem-cobbler
--
1.5.4.1