sdoc 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +9 -8
- data/CHANGELOG.md +18 -0
- data/README.md +5 -5
- data/bin/sdoc +1 -1
- data/bin/sdoc-merge +1 -1
- data/lib/rdoc/discover.rb +1 -1
- data/lib/rdoc/generator/template/rails/resources/css/panel.css +1 -0
- data/lib/sdoc/generator.rb +5 -0
- data/lib/sdoc/version.rb +1 -1
- data/spec/rdoc_generator_spec.rb +8 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 19f36e49016466f31b053d9a66c757e33998e7023ddad39f2d86f46834fd4784
|
4
|
+
data.tar.gz: 36b2ca06033e0caecb8b5bbcf61210a5bd7139b1f66919b112c1af738fa3d0b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 837f60a6d4880c4fa5e1000c5216377a1827aab83f0ec2ecffccd903533215a3b4a972beec2a2ec0c3a9332bde5d05477f3c066da950d8eda3776f41f950f5fc
|
7
|
+
data.tar.gz: 965695dcc2e8e9c2e8ea1a608be79549767a719f607721f3364a72b5b5398c48ccd6f9d19d992954565fcf40b9d31922083a98e30760ad628b1558e1315c5e57
|
data/.travis.yml
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
before_install:
|
4
|
+
- gem update --system
|
4
5
|
- gem install bundler
|
5
6
|
rvm:
|
6
7
|
- 1.9.3
|
7
8
|
- 2.0.0
|
8
9
|
- 2.1.0
|
9
|
-
- 2.2.
|
10
|
-
- 2.3.
|
11
|
-
- 2.4.
|
12
|
-
- 2.5.
|
10
|
+
- 2.2.10
|
11
|
+
- 2.3.7
|
12
|
+
- 2.4.4
|
13
|
+
- 2.5.1
|
13
14
|
- ruby-head
|
14
15
|
- jruby-head
|
15
16
|
matrix:
|
@@ -17,10 +18,10 @@ matrix:
|
|
17
18
|
- env: rdoc=master
|
18
19
|
- rvm: jruby-head
|
19
20
|
include:
|
20
|
-
- { rvm: 2.2.
|
21
|
-
- { rvm: 2.3.
|
22
|
-
- { rvm: 2.4.
|
23
|
-
- { rvm: 2.5.
|
21
|
+
- { rvm: 2.2.10, env: rdoc=master }
|
22
|
+
- { rvm: 2.3.7, env: rdoc=master }
|
23
|
+
- { rvm: 2.4.4, env: rdoc=master }
|
24
|
+
- { rvm: 2.5.1, env: rdoc=master }
|
24
25
|
- { rvm: ruby-head, env: rdoc=master }
|
25
26
|
- { rvm: jruby-head, env: rdoc=master }
|
26
27
|
notifications:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
1.1.0
|
2
|
+
=====
|
3
|
+
|
4
|
+
* #138 - Fix panel header overflow on Chrome
|
5
|
+
* 39e6cae9 - Display version using `-v` or `--version` flags
|
6
|
+
|
7
|
+
1.0.0
|
8
|
+
=====
|
9
|
+
|
10
|
+
* #110 - Strip out HTML tags from search results description
|
11
|
+
* #109 - Add basic SEO tags
|
12
|
+
* #108 - Tiny refresh of the Rails theme
|
13
|
+
* e6f02b91 - Remove the jQuery effect library
|
14
|
+
* 73ace366 - Remove the `--without-search` option
|
15
|
+
* b1d429f2 - Produce HTML 5 output
|
16
|
+
* 38d06095 - Support only RDoc 5 and up
|
17
|
+
* #96 - Require at least Ruby 1.9.3
|
18
|
+
|
1
19
|
0.4.2
|
2
20
|
=====
|
3
21
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# SDoc
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/zzak/sdoc.
|
3
|
+
[![Build Status](https://travis-ci.org/zzak/sdoc.svg?branch=master)](https://travis-ci.org/zzak/sdoc)
|
4
4
|
|
5
5
|
**Powering http://api.rubyonrails.org/**
|
6
6
|
|
@@ -62,9 +62,9 @@ require 'sdoc' # and use your RDoc task the same way you used it before
|
|
62
62
|
require 'rdoc/task' # ensure this file is also required in order to use `RDoc::Task`
|
63
63
|
|
64
64
|
RDoc::Task.new do |rdoc|
|
65
|
-
rdoc.rdoc_dir = 'doc/rdoc'
|
66
|
-
rdoc.
|
67
|
-
rdoc.template = 'rails'
|
65
|
+
rdoc.rdoc_dir = 'doc/rdoc' # name of output directory
|
66
|
+
rdoc.options << '--format=sdoc' # explictly set the sdoc generator
|
67
|
+
rdoc.template = 'rails' # template used on api.rubyonrails.org
|
68
68
|
end
|
69
69
|
```
|
70
70
|
|
@@ -78,7 +78,7 @@ Alternatively you can pass this command a path to the project you wish to compil
|
|
78
78
|
|
79
79
|
As mentioned before, SDoc is built on top of the RDoc project.
|
80
80
|
|
81
|
-
If you notice any bugs in the output of your documentation, it may be RDoc's fault and should be [reported upstream](https://github.com/
|
81
|
+
If you notice any bugs in the output of your documentation, it may be RDoc's fault and should be [reported upstream](https://github.com/ruby/rdoc/issues/new).
|
82
82
|
|
83
83
|
An example of an SDoc bug would be:
|
84
84
|
|
data/bin/sdoc
CHANGED
data/bin/sdoc-merge
CHANGED
data/lib/rdoc/discover.rb
CHANGED
data/lib/sdoc/generator.rb
CHANGED
@@ -6,6 +6,7 @@ require 'json'
|
|
6
6
|
require 'sdoc/github'
|
7
7
|
require 'sdoc/templatable'
|
8
8
|
require 'sdoc/helpers'
|
9
|
+
require 'sdoc/version'
|
9
10
|
require 'rdoc'
|
10
11
|
|
11
12
|
class RDoc::ClassModule
|
@@ -59,6 +60,10 @@ class RDoc::Generator::SDoc
|
|
59
60
|
end
|
60
61
|
opt.separator nil
|
61
62
|
|
63
|
+
opt.on("--version", "-v", "Output current version") do
|
64
|
+
puts SDoc::VERSION
|
65
|
+
exit
|
66
|
+
end
|
62
67
|
end
|
63
68
|
|
64
69
|
def initialize(store, options)
|
data/lib/sdoc/version.rb
CHANGED
data/spec/rdoc_generator_spec.rb
CHANGED
@@ -37,4 +37,12 @@ describe RDoc::Generator::SDoc do
|
|
37
37
|
err.wont_match(/^invalid options/)
|
38
38
|
@options.github.must_equal true
|
39
39
|
end
|
40
|
+
|
41
|
+
it "should display SDoc version on -v or --version" do
|
42
|
+
out_full = `./bin/sdoc --version`
|
43
|
+
out_short = `./bin/sdoc -v`
|
44
|
+
|
45
|
+
out_short.strip.must_equal SDoc::VERSION
|
46
|
+
out_full.strip.must_equal SDoc::VERSION
|
47
|
+
end
|
40
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Kolesnikov
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2020-03-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rdoc
|
@@ -119,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: 1.3.6
|
121
121
|
requirements: []
|
122
|
-
|
123
|
-
rubygems_version: 2.6.12
|
122
|
+
rubygems_version: 3.0.6
|
124
123
|
signing_key:
|
125
124
|
specification_version: 4
|
126
125
|
summary: rdoc html with javascript search index.
|