Browse Source

[doc build] remove markdown support

- bluecloth is dead, and was dropped from debian
- markdown wasn't used in any doc

Change-Id: I61f51724a5abbae6cc0e4cbf993873b59b6e563d
master
Stefan Bühler 3 years ago
parent
commit
863b433aa6
2 changed files with 4 additions and 14 deletions
  1. +4
    -10
      doc/compile.rb
  2. +0
    -4
      doc/doc_schema.xsd

+ 4
- 10
doc/compile.rb View File

@@ -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


+ 0
- 4
doc/doc_schema.xsd View File

@@ -96,7 +96,6 @@
<choice minOccurs="0" maxOccurs="unbounded">
<element name="html" type="anyType" />
<element name="textile" type="anyType" />
<element name="markdown" type="anyType" />
</choice>
</sequence>
</complexType>
@@ -121,7 +120,6 @@

<element name="html" type="anyType" />
<element name="textile" type="anyType" />
<element name="markdown" type="anyType" />
<element name="example" type="d:ExampleType" />
<element name="section" type="d:ModuleSectionType" />
</choice>
@@ -157,7 +155,6 @@
<choice minOccurs="0" maxOccurs="unbounded">
<element name="html" type="anyType" />
<element name="textile" type="anyType" />
<element name="markdown" type="anyType" />
<element name="example" type="d:ExampleType" />
<element name="section" type="d:ChapterSectionType" />
</choice>
@@ -208,7 +205,6 @@

<element name="html" type="anyType" />
<element name="textile" type="anyType" />
<element name="markdown" type="anyType" />
<element name="example" type="d:ExampleType" />
<element name="section" type="d:AngelModuleSectionType" />
</choice>


Loading…
Cancel
Save