github-markup 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -7
  3. data/HISTORY.md +4 -0
  4. data/github-markup.gemspec +1 -1
  5. data/lib/github-markup.rb +1 -1
  6. data/lib/github/commands/pod62html +1 -6
  7. metadata +2 -32
  8. data/.gitmodules +0 -3
  9. data/test/markups/README.pod6 +0 -151
  10. data/test/markups/README.pod6.html +0 -128
  11. data/vendor/Pod-To-HTML/LICENSE +0 -201
  12. data/vendor/Pod-To-HTML/META6.json +0 -20
  13. data/vendor/Pod-To-HTML/README.md +0 -96
  14. data/vendor/Pod-To-HTML/README.pod6 +0 -42
  15. data/vendor/Pod-To-HTML/TODO +0 -5
  16. data/vendor/Pod-To-HTML/lib/Pod/To/HTML.pm +0 -691
  17. data/vendor/Pod-To-HTML/resources/examples/01-parse-files.p6 +0 -7
  18. data/vendor/Pod-To-HTML/resources/examples/README.md +0 -13
  19. data/vendor/Pod-To-HTML/resources/examples/main.mustache +0 -26
  20. data/vendor/Pod-To-HTML/resources/examples/render.p6 +0 -17
  21. data/vendor/Pod-To-HTML/resources/templates/main.mustache +0 -32
  22. data/vendor/Pod-To-HTML/t/010-basic.t +0 -29
  23. data/vendor/Pod-To-HTML/t/020-code.t +0 -49
  24. data/vendor/Pod-To-HTML/t/030-comment.t +0 -15
  25. data/vendor/Pod-To-HTML/t/040-lists.t +0 -82
  26. data/vendor/Pod-To-HTML/t/050-format-x-index.t +0 -47
  27. data/vendor/Pod-To-HTML/t/060-table.t +0 -108
  28. data/vendor/Pod-To-HTML/t/070-headings.t +0 -45
  29. data/vendor/Pod-To-HTML/t/075-defn.t +0 -45
  30. data/vendor/Pod-To-HTML/t/080-lang.t +0 -14
  31. data/vendor/Pod-To-HTML/t/090-css.t +0 -16
  32. data/vendor/Pod-To-HTML/t/100-issue-37.t +0 -16
  33. data/vendor/Pod-To-HTML/t/110-issue-41.t +0 -18
  34. data/vendor/Pod-To-HTML/t/120-templates.t +0 -42
  35. data/vendor/Pod-To-HTML/t/templates/main.mustache +0 -33
@@ -1,45 +0,0 @@
1
- #!perl6
2
-
3
- use Test;
4
-
5
- # do NOT move this below `Pod::To::HTML` line, the module exports a fake Pod::Defn
6
- constant no-pod-defn = ::('Pod::Defn') ~~ Failure;
7
-
8
- use Pod::To::HTML;
9
-
10
- plan :skip-all<Compiler does not support Pod::Defn> if no-pod-defn;
11
- plan 1;
12
-
13
- =begin pod
14
-
15
- =defn MAD
16
- Affected with a high degree of intellectual independence.
17
-
18
- =defn MEEKNESS
19
- Uncommon patience in planning a revenge that is worth while.
20
-
21
- =defn MORAL
22
- Conforming to a local and mutable standard of right.
23
- Having the quality of general expediency.
24
-
25
- =end pod
26
-
27
- say $=pod[0].perl;
28
-
29
- my $html = pod2html($=pod[0]);
30
-
31
- say $html;
32
- ok $html ~~ ms[[
33
- '<dl>'
34
- '<dt>MAD</dt>'
35
- '<dd><p>Affected with a high degree of intellectual independence.</p>'
36
- '</dd>'
37
- '<dt>MEEKNESS</dt>'
38
- '<dd><p>Uncommon patience in planning a revenge that is worth while.</p>'
39
- '</dd>'
40
- '<dt>MORAL</dt>'
41
- '<dd><p>Conforming to a local and mutable standard of right. Having the quality of general expediency.</p>'
42
- '</dd>'
43
-
44
- '</dl>'
45
- ]], 'generated html for =defn';
@@ -1,14 +0,0 @@
1
- use v6;
2
- use Test;
3
- use Pod::To::HTML;
4
-
5
- plan 2;
6
-
7
- =begin pod
8
-
9
- Je suis Napoleon!
10
-
11
- =end pod
12
-
13
- like pod2html($=pod), /'<html lang="en">'/, 'default lang is English';
14
- like pod2html($=pod, :lang<fr>), /'<html lang="fr">'/, 'custom lang';
@@ -1,16 +0,0 @@
1
- use v6;
2
- use Test;
3
- use Pod::To::HTML;
4
-
5
- plan 2;
6
-
7
- =begin pod
8
-
9
- Je suis Napoleon!
10
-
11
- =end pod
12
-
13
- like pod2html($=pod), /'<link rel="stylesheet" href='/, 'default includes CSS';
14
- unlike pod2html($=pod, :lang<fr>, :css-url('')),
15
- /'<link rel="stylesheet" href='/,
16
- 'empty string for CSS URL disables CSS inclusion';
@@ -1,16 +0,0 @@
1
- use v6;
2
- use Test;
3
- use Pod::To::HTML;
4
-
5
- plan 1;
6
-
7
- # Covershttps://github.com/perl6/Pod-To-HTML/issues/37
8
- #######
9
- # NOTE: It's important for the test below that pod2html is NOT used
10
- # before running the test, as doing so will hide the bug
11
- #######
12
-
13
- is-deeply node2html(
14
- Pod::FormattingCode.new:
15
- :type<L>, :meta[], :config{}, :contents["Array"]
16
- ), '<a href="Array">Array</a>', 'no crash in node2html with L<>';
@@ -1,18 +0,0 @@
1
- use Test;
2
- use Pod::To::HTML;
3
- plan 2;
4
-
5
- =begin pod
6
- =head2 Rendering Perl 6 with no-break space
7
-
8
- Nothing to see here
9
-
10
- =head2 What's wrong with this rendering?
11
-
12
- Nothing to see here either
13
- =end pod
14
-
15
- my $r = pod2html $=pod;
16
-
17
- ok $r ~~ m/\#What\'s_wrong/;
18
- ok $r ~~ m/\#Rendering_Perl_6/;
@@ -1,42 +0,0 @@
1
- use Test; # -*- mode: perl6 -*-
2
- use Test::Output;
3
- use Pod::To::HTML;
4
- plan 5;
5
- my $r;
6
-
7
- =begin pod
8
- =TITLE The usual suspects
9
-
10
- The seven suspects are:
11
-
12
- =item Happy
13
- =item Dopey
14
- =item Sleepy
15
- =item Bashful
16
- =item Sneezy
17
- =item Grumpy
18
- =item Keyser Soze
19
- =end pod
20
-
21
- stderr-like {$r = pod2html $=pod[0], :templates<templates>}, /'does not contain required templates'/, 'Complains when required templates not found';
22
- ok $r ~~ ms[[
23
- '<p>' 'The seven suspects are:' '</p>'
24
- '<ul>'
25
- '<li>' '<p>' Happy '</p>' '</li>'
26
- '<li>' '<p>' Dopey '</p>' '</li>'
27
- '<li>' '<p>' Sleepy '</p>' '</li>'
28
- '<li>' '<p>' Bashful '</p>' '</li>'
29
- '<li>' '<p>' Sneezy '</p>' '</li>'
30
- '<li>' '<p>' Grumpy '</p>' '</li>'
31
- '<li>' '<p>' Keyser Soze '</p>' '</li>'
32
- '</ul>'
33
- ]], 'Uses default templates';
34
-
35
- $r = pod2html $=pod[0], :templates("t/templates");
36
- ok $r ~~ ms[[ '<meta description="This is a new template"/>' ]], 'Gets text from new template';
37
- ok $r ~~ ms[[ "<h1 class='title'>The usual suspects</h1>" ]], 'Fills template correctly';
38
-
39
- my $head='<meta name=viewport content="width=device-width, initial-scale=1">';
40
- $r = pod2html $=pod[0], :templates("t/templates"), :$head ;
41
- ok $r ~~ ms[[ $head ]], 'headers are redered as is';
42
-
@@ -1,33 +0,0 @@
1
- <!doctype html>
2
- <html lang="{{ lang }}">
3
- <head>
4
- <title>{{ title }}</title>
5
- <meta charset="UTF-8" />
6
- <meta description="This is a new template"/>
7
- <style>
8
- kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }
9
- samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }
10
- u { text-decoration: none }
11
- .nested {
12
- margin-left: 3em;
13
- }
14
- aside, u { opacity: 0.7 }
15
- a[id^="fn-"]:target { background: #ff0 }
16
- </style>
17
- {{# css }}<link rel="stylesheet" href="{{ css }}">{{/ css }}
18
- {{# metadata }}{{{ metadata }}}{{/ metadata }}
19
- {{{ head }}}
20
- </head>
21
- <body class="pod">
22
- <div id="___top"></div>
23
- {{{ header }}}
24
- {{# title }}<h1 class='title'>{{ title }}</h1>{{/ title }}
25
- {{# subtitle }}<p class='subtitle'>{{ subtitle }}</p>{{/ subtitle }}
26
- {{# toc }}{{{ toc }}}{{/ toc }}
27
- <div class="pod-body{{^ toc }} no-toc{{/ toc }})">
28
- {{# body }}{{{ . }}}{{/ body }}
29
- </div>
30
- {{# footnotes }}{{{ footnotes }}}{{/ footnotes }}
31
- {{{ footer }}}
32
- </body>
33
- </html>