Package br.com.caelum.tubaina.io

Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.cd()


        for (Chapter chapter : book.getChapters()) {
            int curdir = currentDir++;
            StringBuffer chapterText = new ChapterToString(parser, cfg, dirTree, ifdefs).generateChapter(
                    book, chapter, chapterIndex, curdir);

            bookRoot.cd(Utilities.toDirectoryName(null, chapter.getTitle())).writeIndex(
                    fixPaths(chapterText)).writeResources(chapter.getResources());

            chapterIndex++;
        }
View Full Code Here


        Map<String, Integer> indexes = new TreeMap<String, Integer>(String.CASE_INSENSITIVE_ORDER);
        StringBuffer index = new IndexToString(dirTree, cfg).createFlatIndex(indexes, book);
        List<Chapter> introductionChapters = book.getIntroductionChapters();
        for (Chapter chapter : introductionChapters) {
          bookRoot.cd(".").writeResources(chapter.getResources())
    }
    }

    private StringBuffer fixPaths(StringBuffer chFullText) {
        return new StringBuffer(chFullText.toString().replace("$$RELATIVE$$", "."));
View Full Code Here

    for (Chapter c : book.getChapters()) {
      StringBuffer chapterContent = generateChapter(book, c);
      bookContent.append(chapterContent);
      if (!c.getResources().isEmpty()) {
        bookRoot.cd(Utilities.toDirectoryName(null, c.getTitle()))
            .writeResources(c.getResources());
      }
    }
   
    bookContent = resolveReferencesOf(bookContent);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.