From 863b433aa61bc7e935dbd2affb6a0d53c3eb8c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 20 May 2017 14:04:21 +0200 Subject: [PATCH] [doc build] remove markdown support - bluecloth is dead, and was dropped from debian - markdown wasn't used in any doc Change-Id: I61f51724a5abbae6cc0e4cbf993873b59b6e563d --- doc/compile.rb | 14 ++++---------- doc/doc_schema.xsd | 4 ---- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/doc/compile.rb b/doc/compile.rb index 5a61254..ffb8765 100755 --- a/doc/compile.rb +++ b/doc/compile.rb @@ -3,7 +3,6 @@ require 'rubygems' require 'nokogiri' -require 'bluecloth' require 'redcloth' require 'cgi' @@ -223,11 +222,6 @@ class Documentation @html.pre { @html.code { @html << _format_code(xml) } } end - def _parse_markdown(xml) - md = _format_code(xml) - @html << BlueCloth.new(md).to_html - end - def _parse_textile(xml) tx = _format_code(xml) @html << RedCloth.new(tx).to_html @@ -245,7 +239,7 @@ class Documentation xml.children.each do |child| if child.text? @html.p child.content.strip - elsif ['html','textile','markdown'].include? child.name + elsif ['html','textile'].include? child.name self.send('_parse_' + child.name, child) else raise 'invalid description element ' + child.name @@ -432,7 +426,7 @@ class ModuleDocumentation < GenericModuleDocumentation if child.text? text = child.content.strip @html.p text if text.length > 0 - elsif ['action','setup','option','html','textile','markdown','example','section'].include? child.name + elsif ['action','setup','option','html','textile','example','section'].include? child.name self.send('_parse_' + child.name, child) else raise 'invalid section element ' + child.name @@ -486,7 +480,7 @@ class AngelModuleDocumentation < GenericModuleDocumentation if child.text? text = child.content.strip @html.p text if text.length > 0 - elsif ['item','html','textile','markdown','example','section'].include? child.name + elsif ['item','html','textile','example','section'].include? child.name self.send('_parse_' + child.name, child) else raise 'invalid section element ' + child.name @@ -550,7 +544,7 @@ class ChapterDocumentation < Documentation if child.text? text = child.content.strip @html.p text if text.length > 0 - elsif ['html','textile','markdown','example','section'].include? child.name + elsif ['html','textile','example','section'].include? child.name self.send('_parse_' + child.name, child) else raise 'invalid section element ' + child.name diff --git a/doc/doc_schema.xsd b/doc/doc_schema.xsd index 51802c3..ba8ceff 100644 --- a/doc/doc_schema.xsd +++ b/doc/doc_schema.xsd @@ -96,7 +96,6 @@ - @@ -121,7 +120,6 @@ - @@ -157,7 +155,6 @@ - @@ -208,7 +205,6 @@ -