Documentation for TigaseSwift library (#10)
Andrzej Wójcik (Tigase) opened 8 years ago
Due Date
2016-06-20

Prepare documentation for developers containing informations how to use TigaseSwift library.

Andrzej Wójcik (Tigase) commented 8 years ago

I added documentation for most of classes and methods available in TigaseSwift - equivalent of JavaDoc.

Still need to provide some development guide with some examples how to use library.

Andrzej Wójcik (Tigase) commented 8 years ago

I created documentation in asciidoc format.

As I look at it in preview mode all looks good, however generated results using simple shell script are not so good.

%wojtek Could you look at this issue?

%kobit Where we should put generated documentation? For now project is not public.

Artur Hefczyc commented 8 years ago

We should put them where our rest documentation is: http://docs.tigase.org

I know the project is not public yet but it will be public.

wojciech.kapcia@tigase.net commented 8 years ago

Linked image files lacked width specification therefore weren't sized properly - I've added those.

In addition I've mavenized documentation section so it will be easier to build the whole documentation using jenkins and include on http://docs.tigase.org (v. http://docs.tigase.org/tigase-swift/snapshot/Tigase_Swift_Guide/html/).

Jenkins job were created as well: http://build.tigase.org/jenkins/job/private-tigase-swift-documentation/

Andrzej Wójcik (Tigase) commented 8 years ago

%kobit Please check if all you expected is in documentation.

wojciech.kapcia@tigase.net commented 8 years ago

I've changed configuration to use native asciidoctor pdf creation instead of via docbook, which yield better results even though it's only alpha.

Artur Hefczyc commented 8 years ago

This looks good to me. It's a good starting point. I think we can add more content when we receive a specific questions from users/developers. So instead of answering questions you will simply add the information to the documentation. This way we will have documentation with content which is really useful to people.

By the way, is there a syntax coloring feature in the asciidoc?

wojciech.kapcia@tigase.net commented 8 years ago

Artur Hefczyc wrote:

By the way, is there a syntax coloring feature in the asciidoc?

Yes, it is supported - for the block sections it's possible it's a source code, for example

[source,java]
----
some code...
----
Andrzej Wójcik (Tigase) commented 8 years ago

Source code blocks in this documentation files are already marked as

[source,swift]

so I suppose there is no support for coloring code in Swift - maybe no markup parser?

wojciech.kapcia@tigase.net commented 8 years ago

Andrzej Wójcik wrote:

so I suppose there is no support for coloring code in Swift - maybe no markup parser?

This depends on the highligher used, vide: http://asciidoctor.org/docs/user-manual/#source-code-blocks . Looking at documentations of source-highlighter only highlight.js seems to mention swift.

Andrzej Wójcik (Tigase) commented 8 years ago

I followed this idea, checked available highlighters and used @prettify@. Now code highlighting works fine for single page HTML and for PDF, but it is not possible to add this to multipage HTML result as it is generated using docbook.

issue 1 of 1
Type
Task
Priority
Normal
Assignee
RedmineID
4235
Issue Votes (0)
Watchers (0)
Reference
tigase/_libraries/Martin#10
Please wait...
Page is in error, reload to recover