PlayDoc

play.doc.PlayDoc
class PlayDoc(markdownRepository: FileRepository, codeRepository: FileRepository, resources: String, playVersion: String, val pageIndex: Option[PageIndex], templates: PlayDocTemplates, pageExtension: Option[String])

Play documentation support

Value parameters

codeRepository

Repository for finding code samples

markdownRepository

Repository for finding markdown files

pageExtension

The extension to add to rendered pages - used for rendering links.

pageIndex

An optional page index. If None, will use the old approach of searching up the heirarchy for sidebar pages, otherwise will use the page index to render the sidebar.

playVersion

The version of Play we are rendering docs for.

resources

The resources path

templates

The templates to render snippets.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def render(markdown: String, relativePath: Option[File]): String

Render some markdown.

Render some markdown.

Attributes

def renderAllPages(singlePage: Boolean): List[(String, String)]

Render all the pages of the documentation

Render all the pages of the documentation

Value parameters

singlePage

Whether the pages are being rendered to be formatted on a single page

Attributes

def renderPage(pageName: String): Option[RenderedPage]

Render a Play documentation page.

Render a Play documentation page.

Value parameters

pageName

The page to render, without path or markdown extension.

Attributes

Returns

If found a tuple of the rendered page and the rendered sidebar, if the sidebar was found.

Concrete fields

val pageIndex: Option[PageIndex]