yard-sketchup 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yard-sketchup/templates/default/fulldoc/html/favicon.ico +0 -0
- data/lib/yard-sketchup/templates/default/fulldoc/html/images/SU_Developer-RedWhite.png +0 -0
- data/lib/yard-sketchup/templates/default/fulldoc/html/images/trimble-logo-white.png +0 -0
- data/lib/yard-sketchup/templates/default/fulldoc/html/setup.rb +22 -0
- data/lib/yard-sketchup/templates/default/layout/html/embed_meta.erb +9 -9
- data/lib/yard-sketchup/templates/default/layout/html/footer.erb +1 -1
- data/lib/yard-sketchup/templates/default/layout/html/headers.erb +3 -3
- data/lib/yard-sketchup/templates/default/layout/html/navbar.erb +8 -8
- data/lib/yard-sketchup/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a31db942deaf24ad0d0e802ca202fc3d0f054ff0e5d4c2cd7eb1a782e013a19c
|
4
|
+
data.tar.gz: b6600e0cb0357784a57782763069656c109f480735e7346deda724a267d2fc5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3760e759fc8171333b1581a4be559d43c5933b00bcd10b52ccf090f24f273b0a12e8905f7fc8e4de52c00acf9471f4b689a63884500176b007d72077b2f1cb07
|
7
|
+
data.tar.gz: eb15da9389a7b0225603628cd3c839d7c77621542cbc6e68537b5bc506dd110e1b7666a40d53b7cda71cec92135a8531592eed17c9a9184c503060f2e030cdb3
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,7 +1,29 @@
|
|
1
|
+
# Helpers:
|
2
|
+
|
3
|
+
# Copy verbatim an asset file to the target output. By default it uses the
|
4
|
+
# same relative path as the source for the target path.
|
5
|
+
def copy(source, target = nil)
|
6
|
+
path = self.class.find_file(source)
|
7
|
+
puts "copy(#{source}, #{target})"
|
8
|
+
puts "> path: #{path}"
|
9
|
+
raise ArgumentError, "no file for '#{source}' in #{self.class.path}" unless path
|
10
|
+
target ||= source
|
11
|
+
asset(target, File.binread(path))
|
12
|
+
end
|
13
|
+
|
14
|
+
# Template overrides:
|
15
|
+
|
1
16
|
def javascripts_full_list
|
2
17
|
%w(js/jquery.js js/full_list.js js/sketchup.js)
|
3
18
|
end
|
4
19
|
|
20
|
+
def generate_assets
|
21
|
+
super
|
22
|
+
copy('favicon.ico')
|
23
|
+
copy('images/SU_Developer-RedWhite.png')
|
24
|
+
copy('images/trimble-logo-white.png')
|
25
|
+
end
|
26
|
+
|
5
27
|
# Custom search list grouping the classes in the API into similar groups.
|
6
28
|
# TODO(thomthom): This file is just a stub.
|
7
29
|
|
@@ -2,32 +2,32 @@
|
|
2
2
|
case object
|
3
3
|
when String
|
4
4
|
if object == "_index.html" || object == "index.html"
|
5
|
-
su_page_url = "
|
5
|
+
su_page_url = "https://ruby.sketchup.com/index.html"
|
6
6
|
su_page_title = "Alphabetic Index"
|
7
7
|
su_page_desc = "Alphabetic Index of Files and API Namespaces. This is the main landing page for the SketchUp Ruby API Documentation."
|
8
8
|
else
|
9
|
-
su_page_url = "
|
9
|
+
su_page_url = "https://ruby.sketchup.com/"+(object =~ /(.html)\z/ ? object : "#{File.basename(object,'.*')}.html" )
|
10
10
|
su_page_title = (@page_title && !@page_title.empty?) ? (h @page_title) : object.split('.')[0]
|
11
11
|
su_page_desc = "The #{su_page_title} page."
|
12
12
|
end
|
13
13
|
when YARD::CodeObjects::Base # or subclass
|
14
|
-
if object.root?
|
14
|
+
if object.root?
|
15
15
|
if @file # Generating a YARD::CodeObjects::ExtraFileObject
|
16
|
-
su_page_url = "
|
16
|
+
su_page_url = "https://ruby.sketchup.com/file.#{File.basename(@file.filename,'.*')}.html"
|
17
17
|
su_page_title = h @page_title
|
18
18
|
su_page_desc = @file.title
|
19
19
|
elsif h @page_title == "Top Level Namespace"
|
20
|
-
su_page_url = "
|
20
|
+
su_page_url = "https://ruby.sketchup.com/top-level-namespace.html"
|
21
21
|
su_page_title = h @page_title
|
22
22
|
su_page_desc = "The Top Level Namespace for Ruby and the SketchUp API, listing global constants, and a summary of toplevel modules and classes."
|
23
23
|
else %>
|
24
24
|
<!-- <%= "YARD Error - (embed_meta.erb) Unknown root object - using site name." %>--><%
|
25
25
|
su_page_title = su_site_name
|
26
|
-
su_page_url = "
|
26
|
+
su_page_url = "https://ruby.sketchup.com/"
|
27
27
|
su_page_desc = "#{su_site_name}."
|
28
28
|
end
|
29
29
|
else # Generating a Class or Module page:
|
30
|
-
su_page_url = "
|
30
|
+
su_page_url = "https://ruby.sketchup.com/#{@path.gsub('::','/')}.html"
|
31
31
|
su_page_title = h @page_title
|
32
32
|
if object.docstring.blank?
|
33
33
|
if object.is_a?(YARD::CodeObjects::ClassObject)
|
@@ -45,7 +45,7 @@
|
|
45
45
|
else # object is unexpected type %>
|
46
46
|
<!-- <%= "YARD Error - (embed_meta.erb) Unexpected type: #{object.class.name}" %>--><%
|
47
47
|
su_page_title = su_site_name
|
48
|
-
su_page_url = "
|
48
|
+
su_page_url = "https://ruby.sketchup.com/"
|
49
49
|
if object.respond_to?(:docstring)
|
50
50
|
su_page_desc = object.docstring.summary.gsub(/[{}+]/,'')
|
51
51
|
else
|
@@ -75,4 +75,4 @@
|
|
75
75
|
<meta name="twitter:title" content="<%= su_page_title %>" />
|
76
76
|
<meta name="twitter:description" content="<%= su_page_desc %>" />
|
77
77
|
<meta name="twitter:image:src" content="<%= su_page_img %>?s=120" />
|
78
|
-
<meta name="twitter:url" content="<%= su_page_url %>" />
|
78
|
+
<meta name="twitter:url" content="<%= su_page_url %>" />
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
4
|
<!-- AUTHOR and GENERATOR -->
|
5
5
|
<meta name="author" content="SketchUp Extensibility Team">
|
6
|
-
<meta name="generator" content="YARD
|
6
|
+
<meta name="generator" content="YARD https://yardoc.org">
|
7
7
|
<!-- TITLE -->
|
8
8
|
<title><% if object == "_index.html" || object == "index.html" %>
|
9
9
|
Alphabetic Index — <%= h options.title %><% else %>
|
@@ -11,5 +11,5 @@
|
|
11
11
|
</title>
|
12
12
|
<!-- SHORTCUT ICON -->
|
13
13
|
<link rel="shortcut icon" type="image/vnd.microsoft.icon"
|
14
|
-
href="https://
|
15
|
-
<%= erb(:embed_meta) %>
|
14
|
+
href="https://ruby.sketchup.com/favicon.ico" />
|
15
|
+
<%= erb(:embed_meta) %>
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<header id="navbar" role="banner" class="navbar navbar-fixed-top navbar-inverse">
|
3
3
|
<div id="api-documentation-header">
|
4
4
|
<div class="navbar-header">
|
5
|
-
<a class="logo navbar-btn pull-left" href="
|
6
|
-
<img src="https://
|
5
|
+
<a class="logo navbar-btn pull-left" href="https://developer.sketchup.com" title="Home">
|
6
|
+
<img src="https://ruby.sketchup.com/images/SU_Developer-RedWhite.png" alt="Home">
|
7
7
|
</a>
|
8
8
|
<a class="name navbar-brand" href="/en" title="Home">SketchUp Developer Center</a>
|
9
9
|
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
@@ -17,15 +17,15 @@
|
|
17
17
|
<div class="navbar-collapse collapse">
|
18
18
|
<nav role="navigation">
|
19
19
|
<ul class="menu nav navbar-nav">
|
20
|
-
<li class="first leaf"><a href="
|
21
|
-
<li class="leaf"><a href="
|
22
|
-
<li class="leaf"><a href="
|
20
|
+
<li class="first leaf"><a href="https://forums.sketchup.com/c/developers">Community</a></li>
|
21
|
+
<li class="leaf"><a href="https://blog.sketchup.com/">SketchUp Blog</a></li>
|
22
|
+
<li class="leaf"><a href="https://www.sketchup.com/download" class="top-menu--download-button">Download</a></li>
|
23
23
|
<li class="last expanded dropdown">
|
24
|
-
<a href="
|
24
|
+
<a href="https://www.trimble.com" class="trimble-top-menu-item dropdown-toggle" data-target="#" data-toggle="dropdown"><img src="https://ruby.sketchup.com/images/ruby/trimble-logo-white.png"><span class="caret"></span></a>
|
25
25
|
<ul class="dropdown-menu">
|
26
|
-
<li class="first leaf"><a href="
|
26
|
+
<li class="first leaf"><a href="https://connect.trimble.com/">Trimble Connect</a></li>
|
27
27
|
<li class="leaf"><a href="https://www.trimble.com/Corporate/About_Trimble.aspx">About Trimble</a></li>
|
28
|
-
<li class="last leaf"><a href="
|
28
|
+
<li class="last leaf"><a href="https://buildings.trimble.com/">Trimble Buildings</a></li>
|
29
29
|
</ul>
|
30
30
|
</li>
|
31
31
|
</ul>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-sketchup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trimble Inc, SketchUp Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -58,7 +58,10 @@ files:
|
|
58
58
|
- lib/yard-sketchup/templates/coverage/fulldoc/text/setup.rb
|
59
59
|
- lib/yard-sketchup/templates/default/fulldoc/html/css/rubyapi.css
|
60
60
|
- lib/yard-sketchup/templates/default/fulldoc/html/css/sketchup.css
|
61
|
+
- lib/yard-sketchup/templates/default/fulldoc/html/favicon.ico
|
61
62
|
- lib/yard-sketchup/templates/default/fulldoc/html/full_list_object_types.erb
|
63
|
+
- lib/yard-sketchup/templates/default/fulldoc/html/images/SU_Developer-RedWhite.png
|
64
|
+
- lib/yard-sketchup/templates/default/fulldoc/html/images/trimble-logo-white.png
|
62
65
|
- lib/yard-sketchup/templates/default/fulldoc/html/js/sketchup.js
|
63
66
|
- lib/yard-sketchup/templates/default/fulldoc/html/setup.rb
|
64
67
|
- lib/yard-sketchup/templates/default/layout/html/embed_meta.erb
|