diff options
author | Brad King <brad.king@kitware.com> | 2013-09-12 14:05:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-15 14:47:39 (GMT) |
commit | f85405f5515ed5cc20ffe97c485d7dfef6ffc288 (patch) | |
tree | 82ad6c306db15100c3afa4836aefb9ae74e372a7 /Source/cmPolicies.cxx | |
parent | 0d0fec152443fa3f63af8e68e3b2784b6523d85d (diff) | |
download | CMake-f85405f5515ed5cc20ffe97c485d7dfef6ffc288.zip CMake-f85405f5515ed5cc20ffe97c485d7dfef6ffc288.tar.gz CMake-f85405f5515ed5cc20ffe97c485d7dfef6ffc288.tar.bz2 |
Add reStructuredText (RST) documentation formatter
Temporarily add a RST formatter to convert builtin documentation to .rst
source files. This will be removed shortly after we use it to convert
documentation.
Teach the RST formatter to:
* Output preformatted blocks as reStructuredText "::" literal blocks.
* Output option lists as bullet lists with option names enclosed in
reStructuredText ``literal`` quoting.
* Output individual documentation objects (commands, variables, etc.)
in separate .rst files organized in directories by type.
Replace references to cmVersion::GetCMakeVersion() in builtin
documentation with the literal placeholder "|release|" that will be
defined as a substitution later.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index d07645c..0731fc2 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -949,7 +949,7 @@ void cmPolicies::GetDocumentation(std::vector<cmDocumentationEntry>& v) if(i->first != cmPolicies::CMP0000) { full << " " - << "CMake version " << cmVersion::GetCMakeVersion() << " "; + << "CMake version |release| "; // add in some more text here based on status switch (i->second->Status) { |