cairo-lang-doc 2.18.0

A collection of documentation processing utilities for the Cairo programming language.
Documentation
//! > Documentation submodules

//! > test_runner_name
documentation_test_runner

//! > cairo_project.toml
[crate_roots]
hello = "src"

//! > cairo_code
//! simple list
//! 1. A
//! 2. B
//! 3. C
//! 4. D
//!
//! list with different item types
//! 1. [link can be list item](URL)
//! 2. `fn code_can_be_list_item()`
//!
//! nested list
//! 1. A
//! 2. B
//! 3. C
//!     1. A1
//!     2. B1
//!        1. A2
//!        2. B2
//!     3. C1
//! 4. D
//!
//! unordered list
//! - A
//! - B
//! - `multiple elements item` gets prefix only once
//!
//! not a list
//! 0. First item
//! 5. Second item
//! 2. Third item
//! 3. Fourth item
//!

//! > Item signature #1

//! > Item documentation #1
simple list
1. A
2. B
3. C
4. D

list with different item types
1. [link can be list item](URL)
2. `fn code_can_be_list_item()`

nested list
1. A
2. B
3. C
    1. A1
    2. B1
        1. A2
        2. B2
    3. C1
4. D

unordered list
- A
- B
- `multiple elements item` gets prefix only once

not a list
0. First item
5. Second item
2. Third item
3. Fourth item

//! > Item documentation tokens #1
Content("simple list")
Content("\n")
Content("1. ")
Content("A")
Content("\n")
Content("2. ")
Content("B")
Content("\n")
Content("3. ")
Content("C")
Content("\n")
Content("4. ")
Content("D")
Content("\n")
Content("\n")
Content("list with different item types")
Content("\n")
Content("1. ")
CommentLinkToken { label: "link can be list item", path: Some("URL"), md_link: MarkdownLink { link_span: TextSpan { start: TextOffset(TextWidth(67)), end: TextOffset(TextWidth(95)) }, dest_span: Some(TextSpan { start: TextOffset(TextWidth(91)), end: TextOffset(TextWidth(94)) }), dest_text: Some("URL") } }
Content("\n")
Content("2. ")
Content("`fn code_can_be_list_item()`")
Content("\n")
Content("\n")
Content("nested list")
Content("\n")
Content("1. ")
Content("A")
Content("\n")
Content("2. ")
Content("B")
Content("\n")
Content("3. ")
Content("C")
Content("\n")
Content("    1. ")
Content("A1")
Content("\n")
Content("    2. ")
Content("B1")
Content("\n")
Content("        1. ")
Content("A2")
Content("\n")
Content("        2. ")
Content("B2")
Content("\n")
Content("    3. ")
Content("C1")
Content("\n")
Content("4. ")
Content("D")
Content("\n")
Content("\n")
Content("unordered list")
Content("\n")
Content("- ")
Content("A")
Content("\n")
Content("- ")
Content("B")
Content("\n")
Content("- ")
Content("`multiple elements item`")
Content(" gets prefix only once")
Content("\n")
Content("\n")
Content("not a list")
Content("\n")
Content("0. First item")
Content("\n")
Content("5. Second item")
Content("\n")
Content("2. Third item")
Content("\n")
Content("3. Fourth item")