* Help for markdown

git-svn-id: trunk@48005 -
This commit is contained in:
michael 2021-01-03 08:37:52 +00:00
parent 9825d3b552
commit 1afca037c6
2 changed files with 23 additions and 5 deletions

View File

@ -139,7 +139,7 @@ resourcestring
SHTMLIndexColcount = 'Use N columns in the identifier index pages';
SHTMLImageUrl = 'Prefix image URLs with url';
SHTMLDisableMenuBrackets = 'Disable ''['' and '']'' characters around menu items at the top of the page. Useful for custom css';
// CHM usage
SCHMUsageTOC = 'Use [File] as the table of contents. Usually a .hhc file.';
SCHMUsageIndex = 'Use [File] as the index. Usually a .hhk file.';
@ -151,6 +151,18 @@ resourcestring
SCHMUsageMakeSearch = 'Automatically generate a Search Index from filenames that match *.htm*';
SCHMUsageChmTitle= 'Title of the chm. Defaults to the value from --package';
// MarkDown usage
SMDUsageFooter = 'Append markdown (@filename reads from file) as footer to every markdown page';
SMDUsageHeader = 'Prepend markdown (@filename reads from file) as header to every markdown page';
SMDIndexColcount = 'Use N columns in the identifier index pages';
SMDImageUrl = 'Prefix image URLs with url';
SMDTheme = 'Use name as theme name';
SMDNavigation = 'Use scheme for navigation tree, here scheme is one of:';
SMDNavSubtree = 'UnitSubTree : put all units in a sub tree of a Units node';
SMDNavTree = 'UnitTree : put every units as a node on the same level as packages node';
SXMLUsageSource = 'Include source file and line info in generated XML';
// Linear usage

View File

@ -1909,13 +1909,19 @@ end;
class procedure TMarkdownWriter.Usage(List: TStrings);
begin
List.add('--header=file');
List.Add(SHTMLUsageHeader);
List.Add(SMDUsageHeader);
List.add('--footer=file');
List.Add(SHTMLUsageFooter);
List.Add(SMDUsageFooter);
List.Add('--index-colcount=N');
List.Add(SHTMLIndexColcount);
List.Add(SMDIndexColcount);
List.Add('--image-url=url');
List.Add(SHTMLImageUrl);
List.Add(SMDImageUrl);
List.Add('--theme=name');
List.Add(SMDTheme);
List.Add('--navigation=scheme');
List.Add(SMDNavigation);
List.Add(SMDNavSubtree);
List.Add(SMDNavTree);
end;
class procedure TMarkdownWriter.SplitImport(var AFilename, ALinkPrefix: String);