Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReStructuredText Document & Builder for Sphinx

This project is the library which extends ReStructuredText Document and Builder library.

The library is part of the project RstDoclet for JavaDoc Tool, generating reStructuredText for Sphinx.

  1. Add mavencentral() repository to your root build.gradle:

    repositories {
        mavenCentral()
    }
  2. Add library to dependencies:

    dependencies {
        implementation 'com.devives:devive-rst-doc4sphinx:0.2.0'
    }
private String codeSample() {
    return Rst4Sphinx.builders().document()
        .title("Document title", true)
        .paragraph("Simple text without any emphasis or enhancements.")
        .subTitle("Section title")
        .beginParagraph().text("Text can contains emphasis like ").bold("bold")
        .text(" or ").italic("italic").text(" text.").end()
        .build()
        .serialize();
}

will return

==============
Document title
==============

Simple text without any emphasis or enhancements.

Section title
-------------

Text can contains emphasis like **bold** or *italic* text.

The code of project distributed under the GNU General Public License version 2 or any later version. The source code is available on GitHub.


This document generated using this code.

About

Java reStructuredText Document & Builder for Sphinx

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages