Property definitions

nitc $ DocModel :: defaultinit
# The model of a Nitdoc documentation
class DocModel

	# Model used to select entities
	var model: Model

	# Mainmodule to resolve linearization
	var mainmodule: MModule

	# ModelBuilder used to retrieve AST nodes
	var modelbuilder: ModelBuilder

	# Catalog for building the homepage
	var catalog: Catalog

	# Model filters applied to the whole documentation
	var filter: ModelFilter

	# Specific Markdown processor to use within Nitdoc
	var md_processor: MarkdownProcessor is lazy do
		var parser = new CommandParser(model, mainmodule, modelbuilder, catalog)
		var proc = new CmdMarkdownProcessor(parser)
		proc.decorator = new CmdDecorator(model)
		return proc
	end

	# Specific Markdown processor to use within Nitdoc
	var inline_processor: MarkdownProcessor is lazy do
		var parser = new CommandParser(model, mainmodule, modelbuilder, catalog)
		var proc = new CmdMarkdownProcessor(parser)
		proc.decorator = new CmdInlineDecorator(model)
		return proc
	end

	# Do not generate dot graphs
	var no_dot = false is writable

	# Do not generate higlighted code
	var no_code = false is writable

	# Url to code when `no_code` is true
	var code_url: nullable String = null is writable

	# Url to assets
	var share_url: nullable String = null is writable

	# Custom menu brand
	var custom_brand: nullable String = null is writable

	# Custom homepage title
	var custom_title: nullable String = null is writable

	# Custom page footer
	var custom_footer: nullable String = null is writable

	# Custom homepage intro text
	var custom_intro: nullable String = null is writable

	# Optional tracker url
	var tracker_url: nullable String = null is writable

	# Optional tracker site id
	var piwik_site_id: nullable String = null is writable

	# Used to sort sidebar elements by name.
	var name_sorter = new MEntityNameSorter
end
src/doc/static/static_base.nit:21,1--87,3