|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2023-02-16
|
|
* Created: 2023-02-16
|
|
-* Changed: 2023-05-16
|
|
|
|
|
|
+* Changed: 2023-06-06
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -12,6 +12,7 @@
|
|
#include <ls-std/ls-std-io.hpp>
|
|
#include <ls-std/ls-std-io.hpp>
|
|
|
|
|
|
using ls::std::core::type::byte_field;
|
|
using ls::std::core::type::byte_field;
|
|
|
|
+using ls::std::io::NewLine;
|
|
using ls::std::io::SectionPairDocument;
|
|
using ls::std::io::SectionPairDocument;
|
|
using ls::std::io::SectionPairRow;
|
|
using ls::std::io::SectionPairRow;
|
|
using ls::std::io::SectionPairRowEnumType;
|
|
using ls::std::io::SectionPairRowEnumType;
|
|
@@ -76,6 +77,26 @@ byte_field SectionPairDocumentProvider::createSerializedDocument(const string &_
|
|
return serializedDocument;
|
|
return serializedDocument;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+byte_field SectionPairDocumentProvider::createSerializedDocumentColineExample(const string &_newLine)
|
|
|
|
+{
|
|
|
|
+ string paragraph = _newLine + _newLine;
|
|
|
|
+ string _resourcesFolderLocation = R"lit(C:\Users\Admin\CLionProjects\coline-documentation\test\resources)lit";
|
|
|
|
+
|
|
|
|
+ byte_field fileContent = "# section-pair document" + paragraph;
|
|
|
|
+ fileContent += "[general]" + paragraph;
|
|
|
|
+ fileContent += "name=Lynar Studios - Standard Library" + _newLine;
|
|
|
|
+ fileContent += "version=2023.2.0" + paragraph;
|
|
|
|
+ fileContent += "[input]" + paragraph;
|
|
|
|
+ fileContent += "directories:" + _newLine;
|
|
|
|
+ fileContent += " " + _resourcesFolderLocation + "source" + _newLine;
|
|
|
|
+ fileContent += "extensions:" + _newLine;
|
|
|
|
+ fileContent += " .cpp" + paragraph;
|
|
|
|
+ fileContent += "[output]" + paragraph;
|
|
|
|
+ fileContent += "directory=" + _resourcesFolderLocation + "doc" + _newLine;
|
|
|
|
+
|
|
|
|
+ return fileContent;
|
|
|
|
+}
|
|
|
|
+
|
|
byte_field SectionPairDocumentProvider::createSerializedDocumentComputerExample(const string &_newLine)
|
|
byte_field SectionPairDocumentProvider::createSerializedDocumentComputerExample(const string &_newLine)
|
|
{
|
|
{
|
|
byte_field serializedDocument = "# section-pair document" + _newLine;
|
|
byte_field serializedDocument = "# section-pair document" + _newLine;
|