docs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const fs = require('fs');
|
||||
const iconv = require('iconv-lite');
|
||||
|
||||
const typeMap = {
|
||||
string: 'std::string',
|
||||
@@ -46,5 +47,5 @@ exports.publish = (data, {destination, query}) => {
|
||||
|
||||
let result = `#include <string>\n\n` + graft(docs);
|
||||
//console.log(result)
|
||||
fs.promises.writeFile(destination, result, {encoding:'utf-8'});
|
||||
fs.promises.writeFile(destination, iconv.encode(result, 'win1251'), {encoding: 'binary'});
|
||||
};
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<Inline template="General/Element Basic No Icon"/>
|
||||
|
||||
<!-- Stereotypes -->
|
||||
<HasValueChecker property="stereotypes">
|
||||
<!-- <HasValueChecker property="stereotypes">
|
||||
<Reference template="General/Stereotypes"/>
|
||||
</HasValueChecker>
|
||||
</HasValueChecker> -->
|
||||
|
||||
<!-- Tagged Values -->
|
||||
<HasValueChecker property="taggedValues">
|
||||
@@ -77,23 +77,22 @@
|
||||
</HasChildElementChecker>
|
||||
<!-- Enumeration Literals (Summary) -->
|
||||
<HasChildElementChecker modelType="EnumerationLiteral">
|
||||
<Text style="@heading+">Enumeration Literals Summary</Text>
|
||||
<Text style="@heading+">Допустими стойности</Text>
|
||||
<ParagraphBreak/>
|
||||
|
||||
<TableBlock colWidths="20, 80" tableStyle="Summaries">
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
<Text>Name</Text>
|
||||
<Text>Име</Text>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Text>Description</Text>
|
||||
<Text>Описание</Text>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<IterationBlock modelType="EnumerationLiteral">
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
<Icon/>
|
||||
<Property property="name"/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
@@ -131,50 +130,6 @@
|
||||
</TableBlock>
|
||||
</HasChildElementChecker>
|
||||
|
||||
<!-- Enumeration Literals (Detail) -->
|
||||
<HasChildElementChecker modelType="EnumerationLiteral">
|
||||
<Text style="@heading+">Enumeration Literals</Text>
|
||||
<ParagraphBreak/>
|
||||
|
||||
<IterationBlock modelType="EnumerationLiteral">
|
||||
|
||||
<Inline template="Basic"/>
|
||||
|
||||
<TableBlock colWidths="20, 80" repeatTableHeader="false" tableStyle="Properties">
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
<Text>Specification</Text>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ModelElementProperty property="specification">
|
||||
<Property property="value"/>
|
||||
</ModelElementProperty>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell>
|
||||
<Text>Slots</Text>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<ForEach property="slots">
|
||||
<Property property="feature"/>
|
||||
<Text> = </Text>
|
||||
|
||||
<ForEach ignoreLastSeparator="true" property="values">
|
||||
<Property property="value"/>
|
||||
<Text>, </Text>
|
||||
</ForEach>
|
||||
|
||||
<ParagraphBreak/>
|
||||
</ForEach>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBlock>
|
||||
|
||||
</IterationBlock>
|
||||
</HasChildElementChecker>
|
||||
|
||||
|
||||
<!-- Sub Diagrams & References -->
|
||||
<Reference template="General/Sub and Referenced Diagrams"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user