sdoc-2.6.5/ 0000755 0000041 0000041 00000000000 15102442713 012503 5 ustar www-data www-data sdoc-2.6.5/netlify.toml 0000644 0000041 0000041 00000001764 15102442713 015062 0 ustar www-data www-data [build]
command = "rake install && sdoc -o doc/public -T rails -f sdoc"
publish = "doc/public"
[build.processing]
skip_processing = false
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.html]
pretty_urls = true
[build.processing.images]
compress = true
[[headers]]
for = "*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Content-Security-Policy = '''
object-src 'none';
worker-src 'none';
block-all-mixed-content;
upgrade-insecure-requests;'''
Strict-Transport-Security = "max-age=15552000; includeSubDomains"
Referrer-Policy = "no-referrer-when-downgrade"
Cache-Control = "public, max-age=604800, s-max-age=604800"
[[headers]]
for = "/"
[[headers]]
for = "/*.(png|jpg|js|css|svg|woff|ttf|eot|ico|woff2)"
[headers.values]
Cache-Control = "public, max-age=31536000, s-max-age=31536000"
sdoc-2.6.5/bin/ 0000755 0000041 0000041 00000000000 15102442713 013253 5 ustar www-data www-data sdoc-2.6.5/bin/sdoc 0000755 0000041 0000041 00000001116 15102442713 014130 0 ustar www-data www-data #!/usr/bin/env ruby
require 'sdoc'
begin
ARGV.unshift('--format=sdoc') if ARGV.grep(/\A(-f|--fmt|--format|-r|-R|--ri|--ri-site)\b/).empty?
r = RDoc::RDoc.new
r.document ARGV
rescue SystemExit
raise
rescue Exception => e
if $DEBUG_RDOC then
$stderr.puts e.message
$stderr.puts "#{e.backtrace.join "\n\t"}"
$stderr.puts
elsif Interrupt === e then
$stderr.puts
$stderr.puts 'Interrupted'
else
$stderr.puts "uh-oh! RDoc had a problem:"
$stderr.puts e.message
$stderr.puts
$stderr.puts "run with --debug for full backtrace"
end
exit 1
end
sdoc-2.6.5/bin/sdoc-merge 0000755 0000041 0000041 00000000755 15102442713 015235 0 ustar www-data www-data #!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../lib/sdoc' # add extensions
require 'sdoc/merge'
begin
m = SDoc::Merge.new
m.merge(ARGV)
rescue SystemExit
raise
rescue Exception => e
if $DEBUG_RDOC then
$stderr.puts e.message
$stderr.puts "#{e.backtrace.join "\n\t"}"
$stderr.puts
elsif Interrupt === e then
$stderr.puts
$stderr.puts 'Interrupted'
else
$stderr.puts "uh-oh! SDoc merge had a problem:"
$stderr.puts e.message
end
exit 1
end
sdoc-2.6.5/.gitignore 0000644 0000041 0000041 00000000120 15102442713 014464 0 ustar www-data www-data *.gem
.bundle
pkg
doc
/test.rb
Gemfile.lock
/.rake_tasks~
/*.gem
/rails/
/ruby/
sdoc-2.6.5/.github/ 0000755 0000041 0000041 00000000000 15102442713 014043 5 ustar www-data www-data sdoc-2.6.5/.github/workflows/ 0000755 0000041 0000041 00000000000 15102442713 016100 5 ustar www-data www-data sdoc-2.6.5/.github/workflows/test.yml 0000644 0000041 0000041 00000001316 15102442713 017603 0 ustar www-data www-data name: Tests
on:
push:
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '2.1'
- '2.2'
- '2.3'
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- 'ruby-head'
- 'jruby-head'
- 'truffleruby-head'
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: latest
bundler-cache: true
cache-version: 2
- name: Test
run: |
bundle exec rake
sdoc-2.6.5/lib/ 0000755 0000041 0000041 00000000000 15102442713 013251 5 ustar www-data www-data sdoc-2.6.5/lib/rdoc/ 0000755 0000041 0000041 00000000000 15102442713 014200 5 ustar www-data www-data sdoc-2.6.5/lib/rdoc/generator/ 0000755 0000041 0000041 00000000000 15102442713 016166 5 ustar www-data www-data sdoc-2.6.5/lib/rdoc/generator/template/ 0000755 0000041 0000041 00000000000 15102442713 020001 5 ustar www-data www-data sdoc-2.6.5/lib/rdoc/generator/template/sdoc/ 0000755 0000041 0000041 00000000000 15102442713 020731 5 ustar www-data www-data sdoc-2.6.5/lib/rdoc/generator/template/sdoc/_head.rhtml 0000644 0000041 0000041 00000001150 15102442713 023036 0 ustar www-data www-data " type="text/css" media="screen" />
" type="text/css" media="screen" />
" type="text/css" media="screen" />
sdoc-2.6.5/lib/rdoc/generator/template/sdoc/_context.rhtml 0000644 0000041 0000041 00000015325 15102442713 023632 0 ustar www-data www-data
<% unless (description = context.description).empty? %>
<%= description %>
<% end %>
<% unless context.requires.empty? %>
Required Files
<% context.requires.each do |req| %>
<%= h req.name %>
<% end %>
<% end %>
<% sections = context.sections.select { |s| s.title }.sort_by{ |s| s.title.to_s } %>
<% unless sections.empty? then %>
Sections
<% end %>
<% unless context.classes_and_modules.empty? %>
Namespace
<% (context.modules.sort + context.classes.sort).each do |mod| %>
<%= mod.type.upcase %>
<%= mod.full_name %>
<% end %>
<% end %>
<% unless context.method_list.empty? %>
Methods
<% each_letter_group(context.method_list) do |group| %>
<%= group[:name] %>
<% group[:methods].each_with_index do |method, i| %>
<%
comma = group[:methods].size == i+1 ? '' : ','
%>
<%= h method.name %> <%= comma %>
<% end %>
<% end %>
<% end %>
<% unless context.includes.empty? %>
Included Modules
<% context.includes.each do |inc| %>
<% unless String === inc.module %>
<%= h inc.module.full_name %>
<% else %>
<%= h inc.name %>
<% end %>
<% end %>
<% end %>
<% context.each_section do |section, constants, attributes| %>
<% if section.title then %>
<%= h section.title %>
<% end %>
<% if section.comment then %>
<%= section.description %>
<% end %>
<% unless constants.empty? %>
Constants
<% context.each_constant do |const| %>
<%= h const.name %>
=
<%= h const.value %>
<% if const.comment %>
<%= const.description.strip %>
<% end %>
<% end %>
<% end %>
<% unless attributes.empty? %>
Attributes
<% attributes.each do |attrib| %>
[<%= attrib.rw %>]
<%= h attrib.name %>
<%= attrib.description.strip %>
<% end %>
<% end %>
<%
context.methods_by_type(section).each do |type, visibilities|
next if visibilities.empty?
visibilities.each do |visibility, methods|
next if methods.empty?
%>
<%= type.capitalize %> <%= visibility.to_s.capitalize %> methods
<% methods.each do |method| %>
<% if method.comment %>
<%= method.description.strip %>
<% end %>
<% unless method.aliases.empty? %>
Also aliased as: <%= method.aliases.map do |aka|
if aka.parent then # HACK lib/rexml/encodings
%{
#{h aka.name} }
else
h aka.name
end
end.join ", " %>
<% end %>
<% if method.is_alias_for then %>
<% end %>
<% if method.token_stream %>
<% markup = method.markup_code %>
<%
# generate github link
github = if options.github
if markup =~ /File\s(\S+), line (\d+)/
path = $1
line = $2.to_i
end
path && github_url(path)
else
false
end
ghost = method.instance_of?(RDoc::GhostMethod)
%>
<% if !ghost || github %> Source: <% end %>
<% unless ghost %>
show
<% end %>
<% if !ghost && github %> | <% end %>
<% if github %>
" target="_blank" class="github_url">on GitHub
<% end %>
<% end %>
<% end %><%# methods.each %>
<% end %><%# visibilities.each %>
<% end %><%# context.methods_by_type %>
<% end %><%# context.each_section %>
sdoc-2.6.5/lib/rdoc/generator/template/sdoc/search_index.rhtml 0000644 0000041 0000041 00000000445 15102442713 024440 0 ustar www-data www-data