wiki: Fix operation of language links. Update README.txt.

git-svn-id: trunk@49453 -
This commit is contained in:
wp 2015-06-27 14:27:26 +00:00
parent 241599929e
commit cb2898179d
3 changed files with 9 additions and 7 deletions

View File

@ -20,15 +20,15 @@ See ./wikiget -h for all options.
Creating XHTML pages: Creating XHTML pages:
./wikiconvert --format=xhtml --css=html/wiki.css 'wikixml/*.xml' ./wikiconvert --format=xhtml --css=css/wiki.css 'wikixml/*.xml'
Creating HTML pages: Creating HTML pages:
./wikiconvert --format=html --css=html/wiki.css 'wikixml/*.xml' ./wikiconvert --format=html --css=css/wiki.css 'wikixml/*.xml'
Creating chm: Creating chm:
./wikiconvert --format=chm --css=chm/wiki.css wikixml/Lazarus_Documentation.g400.xml 'wikixml/*.xml' ./wikiconvert --format=chm --css=css/wiki.css wikixml/Lazarus_Documentation.g400.xml 'wikixml/*.xml'
ToDos ToDos
@ -36,9 +36,7 @@ ToDos wiki parser: see wikiparser.pas
ToDos iphtml: ToDos iphtml:
-too big space between paragraphs -too big space between paragraphs
-jump to anchor after loading, Note: before first paint the areas are all 0,0,0,0
-background for pre -background for pre
-backslashes in text are not shown
-slow on some pages (e.g. lazarus_documentation) -slow on some pages (e.g. lazarus_documentation)
Todos: convert to fpdoc Todos: convert to fpdoc

View File

@ -268,7 +268,7 @@ begin
else begin else begin
// add link to other translations // add link to other translations
LinkNode:=doc.CreateElement('a'); LinkNode:=doc.CreateElement('a');
LinkNode.SetAttribute('href',TranslationPage.WikiDocumentName); LinkNode.SetAttribute('href',TranslationPage.FileName);
TranslationsNode.AppendChild(LinkNode); TranslationsNode.AppendChild(LinkNode);
LinkNode.AppendChild(doc.CreateTextNode(LinkCaption)); LinkNode.AppendChild(doc.CreateTextNode(LinkCaption));
end; end;
@ -1003,6 +1003,10 @@ begin
exit; exit;
end; end;
'menutranslate':
// Translation menu is written by DoAddLinksToTranslations
exit;
else else
Node := doc.CreateElement('span'); Node := doc.CreateElement('span');
if CurName <> '' then Node.SetAttribute('class', CurName); if CurName <> '' then Node.SetAttribute('class', CurName);

View File

@ -330,7 +330,7 @@ begin
writeln; writeln;
writeln('Options for --format=xhtml,html,chm :'); writeln('Options for --format=xhtml,html,chm :');
writeln(' --css=<path of stylesheet> : default: ',XHTMLConverter.CSSFilename); writeln(' --css=<path of stylesheet> : default: ',XHTMLConverter.CSSFilename);
writeln(' --nowikicategories : do not add links to wiki categories', XHTMLConverter.AddCategories); writeln(' --nowikicategories : do not add links to wiki categories.');
writeln; writeln;
writeln('Options for --format=chm :'); writeln('Options for --format=chm :');
writeln(' Note: the default page is the first page'); writeln(' Note: the default page is the first page');