Skip to content

Commit 941efe3

Browse files
committed
rst fun
1 parent 2b23c72 commit 941efe3

File tree

3 files changed

+10
-23
lines changed

3 files changed

+10
-23
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
ruby:
14-
- "2.4"
15-
- "2.5"
16-
- "2.6"
17-
- "2.7"
14+
- "3.3.0"
1815
fail-fast: false
1916

2017
steps:
@@ -28,11 +25,6 @@ jobs:
2825
ruby-version: ${{ matrix.ruby }}
2926
bundler-cache: true
3027

31-
- uses: actions/setup-python@v2
32-
with:
33-
# This should match lib/github/markups.rb GitHub::Markups::MARKUP_RST
34-
python-version: '3.x'
35-
3628
- uses: actions/cache@v2
3729
with:
3830
path: ~/.cache/pip
@@ -49,9 +41,6 @@ jobs:
4941
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
5042
sudo cpanm --installdeps --notest Pod::Simple
5143
52-
- name: Install Python dependencies
53-
run: python -m pip install docutils
54-
5544
- name: Run rake
5645
run: |
5746
export PATH=$PATH:/.perl6/bin:/opt/rakudo-pkg/bin

lib/github/markup/version.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/github/markups.rb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
markup_impl(::GitHub::Markups::MARKUP_RDOC, GitHub::Markup::RDoc.new)
1313

14-
markup(::GitHub::Markups::MARKUP_ORG, 'org-ruby', /org/, ["Org"], "org-ruby") do |filename, content, options: {}|
14+
markup(::GitHub::Markups::MARKUP_ORG, 'org-ruby', /org/, ["Org"]) do |filename, content, options: {}|
1515
Orgmode::Parser.new(content, {
1616
:allow_include_files => false,
1717
:skip_syntax_highlight => true
1818
}).to_html
1919
end
2020

21-
markup(::GitHub::Markups::MARKUP_CREOLE, :creole, /creole/, ["Creole"], "creole") do |filename, content, options: {}|
21+
markup(::GitHub::Markups::MARKUP_CREOLE, :creole, /creole/, ["Creole"]) do |filename, content, options: {}|
2222
Creole.creolize(content)
2323
end
2424

@@ -28,7 +28,7 @@
2828
wikicloth.to_html(:noedit => true)
2929
end
3030

31-
markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["AsciiDoc"], "adoc") do |filename, content, options: {}|
31+
markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["AsciiDoc"]) do |filename, content, options: {}|
3232
attributes = {
3333
'showtitle' => '@',
3434
'idprefix' => '',
@@ -48,8 +48,12 @@
4848
Asciidoctor.convert(content, :safe => :secure, :attributes => attributes)
4949
end
5050

51-
markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["reStructuredText"], "rst") do |filename, content, options: {}|
52-
puts "hi"
51+
markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["rst"]) do |filename, content, options: {}|
52+
output = Paru::Pandoc.new do
53+
from "rst"
54+
to "html"
55+
end << content
56+
puts output
5357
end
5458

5559
command(::GitHub::Markups::MARKUP_POD6, :pod62html, /pod6/, ["Pod 6"], "pod6")

0 commit comments

Comments
 (0)