建置說明外掛程式

在這個範例中,我們假設文件作者已經使用 HTML 檔的格式提供原始文件。 這些檔案的顆粒性質和結構完全由文件團隊決定。 遞送文件之後,您可以單獨設定外掛程式和 topics。

我們先假設下列樹狀結構有提供此文件。

doc/
    concepts/
        concept1.html
        concept1_1.html
        concept1_2.html
    tasks/
        task1.html
        task2.html
        task3_1.html
        task3_2.html
    ref/
        ref1.html
        ref2.html

我們會假設外掛程式名稱是 com.example.helpexample

最初步驟是在平台 plugins 目錄下面建立外掛程式目錄 com.example.helpexample。 上面顯示的 doc\ 子樹狀結構應該複製到此目錄。

文件外掛程式需要一個像程式碼外掛程式那樣的處理。下列標記定義文件外掛程式。

<?xml version="1.0" ?>
<plugin name="Online Help Sample"
    id="com.example.helpexample"
    version="1.0"

    provider-name="MyExample" />