当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
46 Star 89 Fork 59

openfans.org / cecos-engine
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MANUAL.adoc 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
aiminick 提交于 2017-04-04 21:36 . New version : 1.4.2 (Engine)

Manual

Overview

ovirt-engine supports a manual package for context sensitive help within the application. Manual package is not provided by base package and should be added externally.

Preparations

Provided the manual package name is DOC_PACKAGE the following steps should be followed.

  1. Prepare manual which are static html files.

  2. Create manual configuration file at manual.properties within root of manual and create lookup index files to map between help tag and URI, see format below.

  3. Package manual pages at DOC_PACKAGE to be installed into filesystem, for example:

    /usr/share/doc/DOC_PACKAGE/manual
  4. Tell engine where manual is, for example, /etc/ovirt-engine/engine.conf.d/20-DOC_PACKAGE.conf:

    ENGINE_MANUAL="/usr/share/doc/DOC_PACKAGE/manual"

Manual configuration file

ovirt-engine will read the manual.properties located at the root of the manual content.

The format of this file is:

helptags.APPLICATION = [index1.json[, index2.json[, ....]]]

APPLICATION is the name of the application that issues the request (e.g. webadmin or userportal), the value is list of json files relative to configuration file that map between help tag and URI. Their content is merged left to right, last wins.

The format of index mapping file is a JSON object. Key is help tag and value is uri relative to the package, for example:

{
  "create_new_vm": "newvm.html",
  "delete_vm": "delvm.html",
}

The index file can be generated out of source code or compared to source code using build/helptag.py tool available within engine source repository.

Java
1
https://gitee.com/openfans.org/engine.git
git@gitee.com:openfans.org/engine.git
openfans.org
engine
cecos-engine
cecos.engine

搜索帮助