testRST.expect 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. title_text
  2. ----------
  3. Command ``some_cmd()`` explicit cmake domain.
  4. Command ``some_cmd()`` without target.
  5. Command ``some_cmd`` with target.
  6. Command ``some_cmd_<cmd>()`` placeholder without target.
  7. Command ``some_cmd_<cmd>`` placholder with target.
  8. Command ``some_cmd()`` with parens.
  9. Command ``some_cmd(SUB)`` with subcommand.
  10. Command ``some_cmd(SUB)`` with subcommand and target.
  11. Command ``some_cmd (SUB)`` with space and subcommand and target.
  12. Command ``some command`` with space and target.
  13. Variable ``some variable`` space and target.
  14. Variable ``<PLACEHOLDER>_VARIABLE`` with leading placeholder.
  15. Variable ``VARIABLE_<PLACEHOLDER>`` with trailing placeholder.
  16. Variable ``<PLACEHOLDER>_VARIABLE`` with leading placeholder and target.
  17. Variable ``VARIABLE_<PLACEHOLDER>`` with trailing placeholder and target.
  18. Generator ``Some Generator`` with space.
  19. First TOC entry.
  20. |not replaced|
  21. Second TOC entry.
  22. CMake Module Content
  23. More CMake Module Content
  24. Bracket Comment Content
  25. [
  26. Bracket Comment Content
  27. ]
  28. .. cmake:command:: some_cmd
  29. Command some_cmd description.
  30. .. command:: other_cmd
  31. Command other_cmd description.
  32. .. cmake:variable:: some_var
  33. Variable some_var description.
  34. .. variable:: other_var
  35. Variable other_var description.
  36. Parsed-literal included without directive.
  37. Common Indentation Removed
  38. # replaced in parsed literal
  39. # Sample CMake code block
  40. if(condition)
  41. message(indented)
  42. endif()
  43. # |not replaced in literal|
  44. A literal block starts after a line consisting of two colons
  45. ::
  46. Literal block.
  47. Common Indentation Removed
  48. # |not replaced in literal|
  49. or after a paragraph ending in two colons::
  50. Literal block.
  51. Common Indentation Removed
  52. # |not replaced in literal|
  53. but not after a line ending in two colons::
  54. in the middle of a paragraph.
  55. .. productionlist::
  56. grammar: `production`
  57. production: "content rendered"
  58. .. note::
  59. Notes are called out.
  60. substituted text with multiple lines becomes one line
  61. End of first include.
  62. Cross-include substitution text with ``some_cmd()`` reference.
  63. End of second include.