Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 2.99 KB

rst.md

File metadata and controls

59 lines (35 loc) · 2.99 KB

reStructuredText (RST, reST)

新手上路 {: #getting-started }

Directive ??

  • reStructuredText Directives #ril

    • This document describes the directives implemented in the reference reStructuredText parser.

      Directives have the following syntax:

      +-------+-------------------------------+
      | ".. " | directive type "::" directive |
      +-------+ block                         |
              |                               |
              +-------------------------------+
      

      Directives begin with an EXPLICIT MARKUP START (two periods and a space), followed by the DIRECTIVE TYPE and two colons (collectively, the "DIRECTIVE MARKER").

    • The directive block begins IMMEDIATELY after the directive marker, and includes all SUBSEQUENT INDENTED LINES.

      好特別的語法,整個用 .. 內縮,然後是 directive type 後面跟著 directive block,中間用 :: 隔開;在 directive block 跟 :: 通常都會有個空白,但並不是必要 ??

    • The directive block is divided into ARGUMENTS, OPTIONS (a field list), and CONTENT (in that order), any of which may appear. See the Directives section in the reStructuredText Markup Specification for syntax details.

      用空白行拆分 ??

    • Descriptions below list "doctree elements" (document tree element names; XML DTD generic identifiers) corresponding to individual directives. For details on the hierarchy of elements, please see The Docutils Document Tree and the Docutils Generic DTD XML document type definition.

      Doctree elements 指的是這個 directive type 可能產生哪些 doctree element ??

  • Directives - reStructuredText Markup Specification #ril

參考資料 {: #reference }

工具:

手冊:

相關:

  • Sphinx 的內容主要以 reStructuredText 撰寫。