MyMainApplication.jar
application which generates some articlesMyOtherApplication.jar
application which generates other specific articlesMyMainApplication.jar
or MyOtherApplication.jar
at will, and only update the articles which are produced by the associated application.
DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // don't generate the index file api.setIndexGenerationType(FilegenerationType.GENERATE_NEVER); // create an article XMLArticle article = api.createArticle("article1"); // add a sentence in the article api.addSentence(article, "this is the article"); // generate the wiki api.writeContent();
DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // don't generate the resources files api.setResourcesGenerationType(FilegenerationType.GENERATE_NEVER); // create an article XMLArticle article = api.createArticle("article1"); // add a sentence in the article api.addSentence(article, "this is the article"); // generate the wiki api.writeContent();
DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // create an article which will be usable as a reference but will not be written OpaqueArticle opaqueArticle = api.createOpaqueArticle("the opaque article"); // create a second article and adds a paragraph XMLArticle article2 = api.createArticle("the second article"); // add a reference to the opaque article api.addReference(article2, "the opaque article", "the opaque reference"); // could also be done with: api.addReference(article2, opaqueArticle, "the reference");
DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // create an opaque article OpaqueArticle opaqueArticle = api.createOpaqueArticle("the opaque article"); opaqueArticle.setDefaultContent("Default content for the opaque article");
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.