有了這種格式, Fuchsia 就能在單一位置編輯單一來源定義,並在整個說明文件中更新相關資訊。這些定義接著可透過說明文件小工具用於完整說明文件,讓您在文件中使用內嵌定義或完整定義。
此外,Fchsia 也提供主要的可篩選詞彙表頁面。
新增詞彙表項目
參考資料
詞彙解釋定義 | |
---|---|
term | 必填
定義詞彙表字詞。 |
short_description | 必填
為詞彙表字詞定義簡短說明。這個定義必須為簡短,最好使用單一句子。這項定義接著可用「懸停文字」定義定義。 您必須使用 HTML 語法。不過,如果您有單一句子或段落的簡單定義,就可以使用純文字。 |
full_description | 選用
為詞彙表字詞定義完整定義,這段說明必須完整且詳盡地說明字詞。 請務必使用 HTML 語法,包括連結。不過,如果您有單一句子或段落的簡單定義,就可以使用純文字。 連結格式如下: <a href="link_location">link_title</a> |
see_also | 選用
建立字詞的相關連結清單。可提供其他條款或相關說明文件的連結。您必須使用 HTML 語法。
|
related_guides | 選用
建立字詞的相關指南清單。這必須是位於
|
area | 必填
列出詞彙表字詞涵蓋的區域清單。 這些區域可讓您在詞彙表頁面中篩選詞彙表字詞。您必須使用 HTML 語法。
有效區域 有效區域
|
範例
- term: 'ABI' short_description: 'The binary-level interface to the system.' full_description: 'The <a href="/docs/concepts/packages/system.md">Application Binary Interface</a> (ABI) for a system is the binary-level interface to the system. Typically you don''t write software that uses the system ABI directly. Instead, you write software against the system API. When the software is compiled, the binary artifact created by the compiler interfaces with the system through the ABI. Changes to the system ABI may require you to recompile your source code to account for the changes in the ABI.' see_also: ['<a href="/docs/glossary#ABI">ABI</a>', '<a href="/docs/glossary#storage-capability">Storage capability</a>'] related_guides: ['<a href="/docs/development/tracing/tutorial/registering-a-trace-provider.md">Registering a trace provider</a>', '<a href="/docs/development/hardware/paving.md">Installing Fuchsia on a device</a>'] area: ['System', 'General']
建立詞彙表項目並提交 Gerrit 變更之後,詞彙表字詞會顯示在詞彙表頁面,而且可做為說明文件小工具使用。