Build the main tab (the one that contains the MDoc)

Property definitions

nitc :: static_structure $ PageMEntity :: build_main
	# Build the main tab (the one that contains the MDoc)
	fun build_main(doc: DocModel) do
		var mentity = self.mentity

		var sq = new CmdSummary(doc.model, doc.filter, mentity,
			markdown_processor = doc.inline_processor)
		sq.init_command

		main_tab.content.add new CardMDoc(mentity, mentity.mdoc_or_fallback)

		var summary = sq.summary
		if summary != null then
			main_tab.sidebar.cards.add new CardMdSummary(headlines = summary, md_processor = doc.inline_processor)
		end
	end
src/doc/static/static_structure.nit:65,2--79,4

nitc :: static_structure $ PageMModule :: build_main
	redef fun build_main(doc) do
		super

		var summary = new CardSummary(no_title = true)

		# Intros
		var cmd: CmdEntities = new CmdIntros(doc.model, doc.mainmodule, doc.filter, mentity)
		cmd.init_command
		var intros = cmd.results
		if intros != null and intros.not_empty then
			var section = new CardSection(3, "Introduced classes")
			main_tab.content.add section
			summary.cards.add section
			var cards = new CardList("intros", "Intros")
			for intro in intros do
				var card = new CardMEntity(intro)
				summary.cards.add card
				cards.cards.add card
			end
			main_tab.content.add cards
		end

		# Redefs
		cmd = new CmdRedefs(doc.model, doc.mainmodule, doc.filter, mentity)
		cmd.init_command
		var redefs = cmd.results
		if redefs != null and redefs.not_empty then
			var section = new CardSection(3, "Redefined classes")
			main_tab.content.add section
			summary.cards.add section
			var cards = new CardList("redefs", "Redefs")
			for prop in redefs do
				var card = new CardMEntity(prop)
				summary.cards.add card
				cards.cards.add card
			end
			main_tab.content.add cards
		end

		main_tab.sidebar.cards.add summary
	end
src/doc/static/static_structure.nit:246,2--286,4

nitc :: static_structure $ PageMClass :: build_main
	redef fun build_main(doc) do
		super

		var summary = new CardSummary(no_title = true)

		# Intros
		var cmd: CmdEntities = new CmdIntros(doc.model, doc.mainmodule, doc.filter, mentity)
		cmd.init_command
		var intros = cmd.results
		if intros != null and intros.not_empty then
			var section = new CardSection(3, "Introduced properties")
			main_tab.content.add section
			summary.cards.add section
			var cards = new CardList("intros", "Intros")
			for intro in intros do
				var card = new CardMEntity(intro)
				summary.cards.add card
				cards.cards.add card
			end
			main_tab.content.add cards
		end

		# Redefs
		cmd = new CmdRedefs(doc.model, doc.mainmodule, doc.filter, mentity)
		cmd.init_command
		var redefs = cmd.results
		if redefs != null and redefs.not_empty then
			var section = new CardSection(3, "Redefined properties")
			main_tab.content.add section
			summary.cards.add section
			var cards = new CardList("redefs", "Redefs")
			for prop in redefs do
				var card = new CardMEntity(prop)
				summary.cards.add card
				cards.cards.add card
			end
			main_tab.content.add cards
		end

		# Expand summary
		main_tab.sidebar.cards.add summary
	end
src/doc/static/static_structure.nit:296,2--337,4