github-markup 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 800dd7a7fdfe9119235087cc9ce1bbf32a65dc11
4
- data.tar.gz: a98cec95f2cf982f1b5ea284b1fd1d72895bae6d
3
+ metadata.gz: 053d23b209f38eae629505ae411d984965c75bbc
4
+ data.tar.gz: f7344b954171e3d94b57cd4fd7e656200e366f74
5
5
  SHA512:
6
- metadata.gz: 8bbd7f30418100339046f5546d2bae5998ebd3f9ba3432936892a3aed00ca7945a84c4eebfd4e1a116aaa888a93e291a93de0ba6b3a01cb6b7c7b4479f73a779
7
- data.tar.gz: e2d4c739442ed84a7ae34a92114612dbf589190b4ed2b896dddd5da0234f912877d72bb6c18f96c015bf7cca74383ae04df3659411d2219181765b978483581b
6
+ metadata.gz: 0f34d2b79680a79e3277a8cacdfc58266094762204a6c65751769d028867241660e14af972d5aee1d4fd54749617718559df65c95eb82b89cfc0fc84f10e9498
7
+ data.tar.gz: 92becc57e7b5df01e5c209164d932bc6b1a67b3d1289d229e5e019e26cd50d627258e26c848ca06a21fd471d5c63b2afc12886ab4b22b8597e078c32bcd7190d
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  ## the sub! line in the Rakefile
17
17
  s.name = 'github-markup'
18
18
  s.version = GitHub::Markup::VERSION
19
- s.date = '2014-04-15'
19
+ s.date = '2014-04-17'
20
20
  s.executables = ['github-markup']
21
21
 
22
22
  ## Make sure your summary is short. The description may be as long
@@ -1,6 +1,6 @@
1
1
  module GitHub
2
2
  module Markup
3
- VERSION = '1.1.2'
3
+ VERSION = '1.2.0'
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env python2 -S
1
+ #!/usr/bin/env python
2
2
  """
3
3
  rest2html - A small wrapper file for parsing ReST files at GitHub.
4
4
 
@@ -32,6 +32,7 @@ import os
32
32
 
33
33
  # This fixes docutils failing with unicode parameters to CSV-Table. The -S
34
34
  # switch and the following 2 lines can be removed after upgrading to python 3.
35
+ reload(sys)
35
36
  sys.setdefaultencoding('utf-8')
36
37
  import site
37
38
 
@@ -51,7 +52,9 @@ SETTINGS = {
51
52
  'file_insertion_enabled': False,
52
53
  'raw_enabled': False,
53
54
  'strip_comments': True,
54
- 'doctitle_xform': False,
55
+ 'doctitle_xform': True,
56
+ 'sectsubtitle_xform': True,
57
+ 'initial_header_level': 2,
55
58
  'report_level': 3,
56
59
  'syntax_highlight' : 'none',
57
60
  'math_output' : 'latex'
@@ -1,8 +1,13 @@
1
1
  Header 1
2
2
  ========
3
+ --------
4
+ Subtitle
5
+ --------
3
6
 
4
7
  Example text.
5
8
 
9
+ .. contents:: Table of Contents
10
+
6
11
  Header 2
7
12
  --------
8
13
 
@@ -1,6 +1,13 @@
1
- <h1>Header 1</h1>
1
+ <h1 class="title">Header 1</h1>
2
+ <h2 class="subtitle" id="subtitle">Subtitle</h2>
2
3
  <p>Example text.</p>
3
- <h2>Header 2</h2>
4
+ <div class="contents topic" id="table-of-contents">
5
+ <p class="topic-title first">Table of Contents</p>
6
+ <ul class="simple">
7
+ <li><a class="reference internal" href="#header-2" id="id1">Header 2</a></li>
8
+ </ul>
9
+ </div>
10
+ <h2><a class="toc-backref" href="#id1">Header 2</a></h2>
4
11
  <ol class="arabic simple">
5
12
  <li>Blah blah <tt class="docutils literal">code</tt> blah</li>
6
13
  <li>More <tt class="docutils literal">code</tt>, hooray</li>
@@ -8,7 +15,7 @@
8
15
  </ol>
9
16
  <p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just displays an error inline so the user can fix it. Upgrading to Python 3 will fix this.</p>
10
17
  <div class="system-message">
11
- <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;string&gt;</tt>, line 17)</p>
18
+ <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;string&gt;</tt>, line 22)</p>
12
19
  <p>Error with CSV data in &quot;csv-table&quot; directive:
13
20
  &quot;quotechar&quot; must be an 1-character string</p>
14
21
  <pre>
@@ -1,4 +1,4 @@
1
- <h1>Header 1</h1>
1
+ <h1 class="title">Header 1</h1>
2
2
  <p>Example text.</p>
3
3
  <h2>Header 2</h2>
4
4
  <ol class="arabic simple">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn