MarkdownEntry

class MarkdownEntry(val filePath: String, val frontMatter: FrontMatterElement, val route: String, val fqn: String)(source)

An entry representing a markdown resource and some relevant data about it.

Constructors

Link copied to clipboard
constructor(filePath: String, frontMatter: FrontMatterElement, route: String, fqn: String)

Properties

Link copied to clipboard

The path to the markdown file, relative from the resources/markdown root.

Link copied to clipboard
val fqn: String

The fully qualified name to the main composable method generated by this markdown file. This can be useful when creating a listing file by adding import ${markdown.fqn} in the generated file.

Link copied to clipboard

FrontMatter element that can be queried to investigate its content. See FrontMatterElement.get and FrontMatterElement.query for more information.

Link copied to clipboard

The route that this markdown file will be served at. This is usually just filePath with the extension removed, but there are ways to override it (both in Gradle and via front matter).