Package org.asciidoctor

Examples of org.asciidoctor.OptionsBuilder.asMap()


        OptionsBuilder optionsBuilder = OptionsBuilder.options()
                .backend("docbook").templateDirs(new File("a"), new File("b"))
                .safe(SafeMode.UNSAFE).attributes(attributesBuilder.get());

        String command = AsciidoctorUtils.toAsciidoctorCommand(
                optionsBuilder.asMap(), "file.adoc");

        String currentDirectory = new File( "" ).getAbsolutePath() + File.separator;

        String parametersString = command.substring(command.indexOf(" "), command.length());
       
View Full Code Here


        optionsBuilder.attributes(attributesBuilder.get());

        if (sourceDocumentName == null) {
            for (final File f : scanSourceFiles()) {
                setDestinationPaths(optionsBuilder, f);
                renderFile(asciidoctorInstance, optionsBuilder.asMap(), f);
            }
        } else {
            File sourceFile = new File(sourceDirectory, sourceDocumentName);
            setDestinationPaths(optionsBuilder, sourceFile);
            renderFile(asciidoctorInstance, optionsBuilder.asMap(), sourceFile);
View Full Code Here

                renderFile(asciidoctorInstance, optionsBuilder.asMap(), f);
            }
        } else {
            File sourceFile = new File(sourceDirectory, sourceDocumentName);
            setDestinationPaths(optionsBuilder, sourceFile);
            renderFile(asciidoctorInstance, optionsBuilder.asMap(), sourceFile);
        }

        // #67 -- get all files that aren't adoc/ad/asciidoc and create synchronizations for them
        try {
            FileUtils.copyDirectory(sourceDirectory, outputDirectory, new NonAsciiDocExtensionFileFilter(), false);
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.