Remove roff support.

This commit is contained in:
Tom Preston-Werner
2010-07-15 16:15:47 -07:00
parent 004a0b2849
commit 8ea176a16b
3 changed files with 4 additions and 10 deletions
+2 -3
View File
@@ -23,8 +23,8 @@ choose. Special footers can be created in `footer files`. Other content
## PAGE FILES ## PAGE FILES
Page files may be written in any format supported by Page files may be written in any format supported by
[GitHub-Markup](http://github.com/defunkt/github-markup). The current list of [GitHub-Markup](http://github.com/defunkt/github-markup) (except roff). The
formats and allowed extensions is: current list of formats and allowed extensions is:
* Markdown: .markdown, .mdown, .mkdn, .mkd, .md * Markdown: .markdown, .mdown, .mkdn, .mkd, .md
* Textile: .textile * Textile: .textile
@@ -34,7 +34,6 @@ formats and allowed extensions is:
* ReStructured Text: .rest.txt, .rst.txt, .rest, .rst * ReStructured Text: .rest.txt, .rst.txt, .rest, .rst
* ASCIIDoc: .asciidoc * ASCIIDoc: .asciidoc
* POD: .pod * POD: .pod
* Roff: .1, .2, .3, ...
Gollum detects the page file format via the extension, so files must have one Gollum detects the page file format via the extension, so files must have one
of the supported extensions in order to be converted. of the supported extensions in order to be converted.
@@ -96,10 +96,6 @@ Gollum.Formats = {
ul: Gollum.prefixStrategy('* ', 'Bullet list item', true), ul: Gollum.prefixStrategy('* ', 'Bullet list item', true),
ol: Gollum.prefixStrategy('1. ', 'Numbered list item', true) ol: Gollum.prefixStrategy('1. ', 'Numbered list item', true)
}, },
roff: {
bold: Gollum.encloseStrategy('\\fB', 'bold text', '\\fP'),
italic: Gollum.encloseStrategy('\\fI', 'italic text', '\\fP')
},
textile: { textile: {
bold: Gollum.encloseStrategy('*', 'bold text', '*'), bold: Gollum.encloseStrategy('*', 'bold text', '*'),
italic: Gollum.encloseStrategy('_', 'italic text', '_'), italic: Gollum.encloseStrategy('_', 'italic text', '_'),
+2 -3
View File
@@ -4,7 +4,7 @@ module Gollum
Wiki.page_class = self Wiki.page_class = self
VALID_PAGE_RE = /^(.+)\.(md|mkdn?|mdown|markdown|textile|rdoc|org|creole|re?st(\.txt)?|asciidoc|pod|\d)$/i VALID_PAGE_RE = /^(.+)\.(md|mkdn?|mdown|markdown|textile|rdoc|org|creole|re?st(\.txt)?|asciidoc|pod)$/i
FORMAT_NAMES = { :markdown => "Markdown", FORMAT_NAMES = { :markdown => "Markdown",
:textile => "Textile", :textile => "Textile",
:rdoc => "RDoc", :rdoc => "RDoc",
@@ -12,8 +12,7 @@ module Gollum
:creole => "Creole", :creole => "Creole",
:rest => "reStructuredText", :rest => "reStructuredText",
:asciidoc => "AsciiDoc", :asciidoc => "AsciiDoc",
:pod => "Pod", :pod => "Pod" }
:roff => "roff" }
# Public: Initialize a page. # Public: Initialize a page.
# #