sculptor 0.0.7 → 0.0.8

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/features/create.feature +1 -1
  4. data/lib/sculptor/extensions/model.rb +3 -6
  5. data/lib/sculptor/extensions/outliner.rb +1 -1
  6. data/lib/sculptor/extensions/resource_helpers.rb +6 -4
  7. data/lib/sculptor/templates/glyptotheque/config.tt +3 -3
  8. data/lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/directives.js +3 -3
  9. data/lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_model-utils.scss +61 -0
  10. data/lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_model.scss +5 -79
  11. data/lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_outliner.scss +27 -28
  12. data/lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque.scss +1 -0
  13. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/_model-index.slim +0 -0
  14. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/_model-outline-element.slim +2 -2
  15. data/lib/sculptor/templates/glyptotheque/source/glyptotheque/_model-outline.slim +2 -0
  16. data/lib/sculptor/templates/glyptotheque/source/glyptotheque/_model-utils.slim +7 -0
  17. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/_model.slim +1 -2
  18. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/_nav.slim +0 -0
  19. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/menu-node.html.slim +0 -0
  20. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/menu-tree.html.slim +0 -0
  21. data/lib/sculptor/templates/glyptotheque/source/{partials/glyptotheque → glyptotheque}/menu.html.slim +0 -0
  22. data/lib/sculptor/templates/glyptotheque/source/index.html.slim +1 -1
  23. data/lib/sculptor/templates/model/index-template.tt +1 -1
  24. data/lib/sculptor/version.rb +1 -1
  25. metadata +12 -11
  26. data/lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-outline.slim +0 -7
  27. data/lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-source.slim +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1700b62e9b8f772f57b57a0bf01475f1ed14acf8
4
- data.tar.gz: 4ecf6836c02fa60b05045d6f40eb6feb7ef0e272
3
+ metadata.gz: 3164bc0dfe0381346ca31499b7787fbcde22fc31
4
+ data.tar.gz: 1e9982649e25cc2a89ecc2e948ddcf2a0c26cbf7
5
5
  SHA512:
6
- metadata.gz: bbc1fa5399709bfcfc1bc9daa212d013b97935d74fadd5f559aebebe25981d9a1dcdf60766dbaf99b87943c3589b113a2fa60c9346aba3277a9358500cf3f817
7
- data.tar.gz: c41dc48eeed2fe726dddcf40aa6babb10729ef6b6614accb5561d407d79eab030246d49dc3fa9969559ea29f05d2250ad1fef46e4cc0ed98b01378a3bf9f8b25
6
+ metadata.gz: a12755347ae082df09e2282107b92c7d3d9ae515e1ad9c92fdbc9ecf78baec80e58676674ff467b7e7fc996ea46147fc25b52bb0ff2d00d1b4da9eebac4b7e01
7
+ data.tar.gz: 11e4c9eb686e09fdeac11d51f3e01b00cfa59ab9a4217e36eb3a80274843a46b105bfcd83aeb045cb66c0aade72a3301e591403a27407187b072122a63e8bcf9
data/README.md CHANGED
@@ -94,10 +94,9 @@ Sculptor is using Slim templates internally but should work with other templates
94
94
  whether to try to reformat the HTML (e.g. if remote HTML is minified)
95
95
  - `css` - CSS selector to extract from the remote page. If specific element is required it can be selected by providing `#<0-based index>` at the end of selector separated by space. e.g. `img #0` will select the first image.
96
96
  - `data` - local data that can be injected in a local component (partial with `.component.slim` extension)
97
- - `source_type` {string} default `html`
98
97
  type of source code used for code highlighting
99
98
  * `model_iframe`
100
- * `model_source` - Generate highlighted source code for HTML
99
+ * `html` - Generate source code for HTML
101
100
  * `outline` - Generate outline of HTML structure
102
101
 
103
102
  ### Resource helpers
@@ -35,6 +35,6 @@ Feature: Run `create` command
35
35
  And a directory named "source/test" should exist
36
36
  Then the file "source/test/test.html.slim" should contain "Hello World"
37
37
  And the file "source/test/test.html.slim" should contain "My model description"
38
- And the file "source/test/index.html.slim" should contain "'partials/glyptotheque/model-index'"
38
+ And the file "source/test/index.html.slim" should contain "'glyptotheque/model-index'"
39
39
  And the file "source/test/test.yaml" should contain "hello: World"
40
40
  And the file "source/test/styles.scss" should contain "@import 'bourbon'"
@@ -43,14 +43,11 @@ class Middleman::Extensions::Model < ::Middleman::Extension
43
43
 
44
44
  options[:title] = options[:title] || data.page.title
45
45
  options[:description] = options[:description] || data.page.description
46
+ options[:html] = html
46
47
 
47
48
  current_page.add_metadata({ page: { iframe: options[:iframe] || false }})
48
49
 
49
- options[:html] = html
50
- options[:source_code] = html
51
- options[:source_type] ||= 'html'
52
-
53
- partial('partials/glyptotheque/model', locals: options)
50
+ partial('glyptotheque/model', locals: options)
54
51
  end
55
52
 
56
53
  def model_iframe(location=nil, options={}, &block)
@@ -60,7 +57,7 @@ class Middleman::Extensions::Model < ::Middleman::Extension
60
57
 
61
58
  def model_source(type, &block)
62
59
  source_code = capture_html(&block)
63
- partial('partials/glyptotheque/model-source', locals: { source_type: type, source_code: source_code })
60
+ partial('glyptotheque/model-source', locals: { source_type: type, source_code: source_code })
64
61
  end
65
62
 
66
63
  private
@@ -12,7 +12,7 @@ class Middleman::Extensions::Outliner < ::Middleman::Extension
12
12
 
13
13
  elements = parse_elements(doc.children)
14
14
 
15
- partial('partials/glyptotheque/model-outline', locals: { elements: elements })
15
+ partial('glyptotheque/model-outline', locals: { elements: elements })
16
16
  end
17
17
 
18
18
  private
@@ -21,14 +21,13 @@ class Middleman::Extensions::ResourceHelpers < ::Middleman::Extension
21
21
  resource.url.split('/').last
22
22
  end
23
23
 
24
- def resources_for(dir, ext: 'html', exclude_indexes: false, sort_by: nil, ignore: nil)
24
+ def resources_for(dir, ext: 'html', exclude_indexes: false, sort_by: nil, ignore: nil, allow_hidden: false)
25
25
  filtered = sitemap.resources
26
26
  .reject {|r| r.url == dir} # Exclude main directory index
27
- .reject {|r| r.data.hidden} # reject hidden (Front matter)
28
27
  .select {|r| r.url.start_with?(dir)} # Select files in the given dir
29
28
 
30
29
  collect_resources(filtered,
31
- { ext: ext, exclude_indexes: exclude_indexes, sort_by: sort_by, ignore: ignore}
30
+ { ext: ext, exclude_indexes: exclude_indexes, sort_by: sort_by, ignore: ignore, allow_hidden: allow_hidden}
32
31
  )
33
32
  end
34
33
 
@@ -97,12 +96,15 @@ class Middleman::Extensions::ResourceHelpers < ::Middleman::Extension
97
96
  .select {|r| r.ext == ".#{options[:ext]}"} # Select files only HTML files
98
97
  .sort_by {|r| r.url } # Sort by url (default)
99
98
  .sort_by {|r| r.data[options[:sort_by]] || -1} # Sort by `sort_by` param
99
+ .reject {|r| # Reject hidden (Front matter)
100
+ r.data.hidden unless options[:allow_hidden]
101
+ }
100
102
  .reject {|r| # Exclude all directory indexes
101
103
  options[:exclude_indexes] ? r.directory_index? : false
102
104
  }
103
105
  .reject {|r| ignore ? r.url.match(options[:ignore]) : false } # Ignore URLs matching pattern (if provided)
104
106
  .reject {|r| r.path.end_with? ("-standalone#{r.ext}")} # Ignore proxied '-standalone' mode pages
105
- .reject {|r| r.path.start_with? ("partials/")} # Ignore partials
107
+ .reject {|r| r.path.start_with? ("glyptotheque/")} # Ignore Sculptor’s partials
106
108
  end
107
109
 
108
110
  def parse_resource(r, options)
@@ -6,7 +6,7 @@
6
6
  page '/**', :layout => 'glyptotheque'
7
7
  # With no layout
8
8
  page "*.component", :layout => false
9
- page "/partials/*", :layout => false, directory_index: false
9
+ page "/glyptotheque/*", :layout => false, directory_index: false
10
10
  page '*.css', :layout => false
11
11
  page '*.js', :layout => false
12
12
  page '*.json', :layout => false
@@ -21,10 +21,10 @@ page '*.json', :layout => false
21
21
 
22
22
  ready do
23
23
  # Create mappings for standalone (implementation) pages (iframe embeddable)
24
- resources_for('/', exclude_indexes: true).each do |r|
24
+ resources_for('/', exclude_indexes: true, allow_hidden: true).each do |r|
25
25
  proxy "#{r.path.sub(r.ext, '')}-standalone.html", r.path, layout: 'standalone'
26
26
  end
27
- resources_for('/').each do |r|
27
+ resources_for('/', allow_hidden: true).each do |r|
28
28
  proxy "#{r.path.sub(r.ext, '')}/standalone", r.path, layout: 'standalone'
29
29
  end
30
30
  end
@@ -32,7 +32,7 @@ angular.module('directives', [])
32
32
  replace: true,
33
33
  scope: true,
34
34
  templateUrl: function() {
35
- return relativePathToRoot() + 'partials/glyptotheque/menu.html';
35
+ return relativePathToRoot() + 'glyptotheque/menu.html';
36
36
  },
37
37
  controller: function($scope) {
38
38
  $scope.items = window.APP_CONTEXT.sitemap;
@@ -54,7 +54,7 @@ angular.module('directives', [])
54
54
  filter: '='
55
55
  },
56
56
  templateUrl: function() {
57
- return relativePathToRoot() + 'partials/glyptotheque/menu-tree.html';
57
+ return relativePathToRoot() + 'glyptotheque/menu-tree.html';
58
58
  },
59
59
  link: function($scope, $element, $attrs) {
60
60
  $scope.relativeUrl = function(url) {
@@ -69,7 +69,7 @@ angular.module('directives', [])
69
69
  restrict: 'E',
70
70
  replace: true,
71
71
  templateUrl: function() {
72
- return relativePathToRoot() + 'partials/glyptotheque/menu-node.html';
72
+ return relativePathToRoot() + 'glyptotheque/menu-node.html';
73
73
  },
74
74
  link: function($scope, $element, $attrs) {
75
75
  $scope.relativeUrl = function(url) {
@@ -0,0 +1,61 @@
1
+ .glypto-model-utils {
2
+ > menu {
3
+ margin: 0;
4
+ padding: 8px;
5
+ }
6
+
7
+ ._tab-toggle {
8
+ display: inline-block;
9
+ font-size: 10px;
10
+ font-weight: 600;
11
+ color: rgba(black, .3);
12
+ text-transform: uppercase;
13
+ padding: 4px 8px;
14
+ background: none;
15
+ border-radius: 3px;
16
+ border: none;
17
+ outline: none;
18
+ margin-right: 3px;
19
+
20
+ &:hover {
21
+ color: rgba(black, .4);
22
+ background: rgba(white, .7);
23
+ }
24
+ &:active {
25
+ color: rgba(black, .5);
26
+ background: white;
27
+ }
28
+
29
+ &.__active {
30
+ background: rgba(black, .3);
31
+ color: rgba(white, .9);
32
+
33
+ &:active {
34
+ background: rgba(black, .5);
35
+ color: white;
36
+ }
37
+ }
38
+ }
39
+
40
+ ._container {
41
+ max-height: 40rem;
42
+ overflow: auto;
43
+ }
44
+
45
+ ._panel {
46
+ border-top: 1px solid rgba(black, .05);
47
+ padding: 10px 15px;
48
+ background: rgba(black, .05);
49
+ display: none;
50
+
51
+ &.__shown {
52
+ display: block;
53
+ }
54
+ }
55
+
56
+ pre {
57
+ font: 12px/1.4 Menlo, monospace;
58
+ white-space: pre-wrap;
59
+ margin: 0;
60
+ }
61
+ }
@@ -54,24 +54,15 @@
54
54
  background: white;
55
55
  padding: $_padding;
56
56
 
57
- &:before {
58
- @include transition(300ms);
59
- @include position(absolute, $_padding $_padding $_padding $_padding);
60
- margin: -1px;
61
- box-shadow: 0 0 0 1px transparent;
62
- content: '';
63
- }
64
-
65
- &:hover:before {
66
- box-shadow: 0 0 0 1px rgba(black, .1);
67
- }
68
-
69
57
  > figure,
70
58
  > iframe {
71
- @include box-sizing(content-box);
59
+ @include transition(300ms);
72
60
  display: block;
73
61
  margin: 0;
74
- position: relative;
62
+
63
+ &:hover {
64
+ box-shadow: 0 0 0 1px white, 0 0 0 2px rgba(black, .1);
65
+ }
75
66
  }
76
67
 
77
68
  > figure {
@@ -100,69 +91,4 @@
100
91
  }
101
92
  }
102
93
  }
103
-
104
- > .glypto-model-source,
105
- > .glypto-model-outline {
106
- background: rgba(black, .03);
107
- box-shadow: inset 0 1px darken($light-grey, 5);
108
-
109
- > header {
110
- padding: 8px 15px;
111
- }
112
-
113
- ._toggle {
114
- display: block;
115
- font-size: 10px;
116
- font-weight: 600;
117
- line-height: 1rem;
118
- letter-spacing: 1px;
119
- color: rgba(black, .3);
120
- text-transform: uppercase;
121
- padding: 0;
122
- background: none;
123
- border: none;
124
- outline: none;
125
-
126
- &:before {
127
- @include transition(120ms);
128
- content: '▶';
129
- display: inline-block;
130
- margin-right: 4px;
131
- }
132
-
133
- &:hover {
134
- color: rgba(black, .4);
135
- }
136
- &:active {
137
- color: rgba(black, .6);
138
- }
139
-
140
- &.__toggled:before {
141
- @include transform(rotate(90deg));
142
- }
143
- }
144
-
145
- > ._container {
146
- @include transition(120ms);
147
- max-height: 0;
148
- overflow: auto;
149
- }
150
-
151
- pre {
152
- font: 12px/1.4 Menlo, monospace;
153
- padding: 10px 15px;
154
- margin: 0;
155
- white-space: pre-wrap;
156
- }
157
-
158
- &.__expanded {
159
- > header {
160
- border-bottom: 1px solid darken($light-grey, 3);
161
- }
162
-
163
- > ._container {
164
- max-height: 20rem;
165
- }
166
- }
167
- }
168
94
  }
@@ -4,7 +4,6 @@
4
4
 
5
5
  display: inline-block;
6
6
  vertical-align: top;
7
- white-space: nowrap;
8
7
  overflow: hidden;
9
8
 
10
9
  @if $color {
@@ -20,53 +19,57 @@
20
19
  }
21
20
  }
22
21
 
23
- ._elements {
24
- padding: 10px 15px;
25
- font: 600 11px Menlo, monospace;
26
- cursor: default;
27
- }
22
+ font: 600 11px Menlo, monospace;
23
+ cursor: default;
28
24
 
29
25
  ._element {
30
26
  @include transition(100ms);
31
- margin: 1px 0 0;
32
- padding: 2px;
27
+ padding: 1px 2px 2px;
33
28
  border-radius: 3px;
29
+ margin: 1px 1px 1px;
34
30
 
35
31
  &:hover {
36
32
  box-shadow: inset 0 0 0 1px rgba(black, .07);
37
33
  background: rgba(white, .2);
38
34
  }
39
35
 
36
+ > span {
37
+ margin-top: 1px;
38
+ }
39
+
40
40
  ._element {
41
41
  margin-left: 10px;
42
42
  }
43
- }
44
43
 
45
- ._element {
44
+ > ._name,
45
+ ._classes {
46
+ border-radius: 3px;
47
+ background: rgba(white, .2);
48
+ }
49
+
46
50
  > ._name,
47
51
  ._classes,
48
52
  ._class {
49
53
  padding: 2px 5px;
50
- border-radius: 3px;
51
- background: rgba(white, .2);
52
54
  margin-right: 1px;
55
+ white-space: nowrap;
53
56
  }
54
57
  }
55
58
 
56
59
  ._classes {
57
60
  @include _item;
58
- box-shadow: inset 0 0 0 1px rgba(#cc3333, .1);
61
+ box-shadow: inset 0 0 0 1px rgba(#cc3333, .2);
59
62
  }
60
63
 
61
64
  ._element > ._name {
62
65
  @include _item(#003366);
63
- box-shadow: inset 0 0 0 1px rgba(#003366, .1);
66
+ box-shadow: inset 0 0 0 1px rgba(#003366, .2);
64
67
  }
65
68
 
66
69
  ._element ._class {
67
70
  @include _item(#cc3333, $before: '.');
68
71
  margin: -2px 0 -2px -1px;
69
- border-left: 1px solid #ddd;
72
+ border-left: 1px solid rgba(#cc3333, .1);
70
73
  background: none;
71
74
 
72
75
  &:first-child {
@@ -85,18 +88,15 @@
85
88
 
86
89
  ._attributes {
87
90
  @include _item;
88
- padding: 2px 5px;
89
- box-shadow: inset 0 0 0 1px rgba(#aaa, .2);
91
+ padding: 2px;
92
+ // box-shadow: inset 0 0 0 1px rgba(#aaa, .2);
90
93
  border-radius: 3px;
94
+ word-break: break-word;
91
95
  }
92
96
 
93
97
  ._attr {
94
98
  margin: 0 3px;
95
99
 
96
- &:last-of-type:after {
97
- content: none;
98
- }
99
-
100
100
  > ._name {
101
101
  @include _item(#3366cc, $after: '=');
102
102
  }
@@ -106,7 +106,8 @@
106
106
  position: relative;
107
107
  padding-right: 7px;
108
108
  text-overflow: ellipsis;
109
- max-width: 200px;
109
+ white-space: nowrap;
110
+ max-width: 400px;
110
111
 
111
112
  &:after {
112
113
  position: absolute;
@@ -117,11 +118,9 @@
117
118
 
118
119
  ._text {
119
120
  @include _item(#aaa);
120
- font-weight: normal;
121
- padding: 2px 5px;
122
- font-size: 13px;
123
- font-family: Helvetica, Arial, sans-serif;
124
- text-overflow: ellipsis;
125
- max-width: 200px;
121
+ font: normal 13px/15px Helvetica, Arial, sans-serif;
122
+ padding: 2px 5px 0;
123
+ max-width: 360px;
124
+ word-break: break-word;
126
125
  }
127
126
  }
@@ -4,4 +4,5 @@
4
4
  @import 'glyptotheque/base';
5
5
  @import 'glyptotheque/nav';
6
6
  @import 'glyptotheque/model';
7
+ @import 'glyptotheque/model-utils';
7
8
  @import 'glyptotheque/outliner';
@@ -10,9 +10,9 @@
10
10
  span._attr
11
11
  span._name = a.name
12
12
  span._value title="#{a.value.length > 27 ? a.value.strip : nil}" = a.value
13
- - if item.text
13
+ - if item.text.present?
14
14
  span._text title="#{item.text.length > 27 ? item.text.strip : nil}" = item.text
15
15
 
16
16
  - if item.children.any?
17
17
  - item.children.each do | child |
18
- = partial 'partials/glyptotheque/model-outline-element', locals: { item: child }
18
+ = partial 'glyptotheque/model-outline-element', locals: { item: child }
@@ -0,0 +1,2 @@
1
+ - elements.each do |item|
2
+ = partial 'glyptotheque/model-outline-element', locals: { item: item }
@@ -0,0 +1,7 @@
1
+ section.glypto-model-utils
2
+ menu
3
+ button._tab-toggle(ng-class="{'__active': show == 'source'}" ng-click="show = show === 'source' ? null : 'source'") HTML source
4
+ button._tab-toggle(ng-class="{'__active': show == 'outline'}" ng-click="show = show === 'outline' ? null : 'outline'") Outline
5
+ ._container
6
+ ._panel.glypto-model-source ng-class="{'__shown': show == 'source'}" = code('html') { html }
7
+ ._panel.glypto-model-outline ng-class="{'__shown': show == 'outline'}" = outline(html)
@@ -28,8 +28,7 @@
28
28
  - else
29
29
  figure = html
30
30
 
31
- = model_source(source_type) { source_code }
32
- = outline(html)
31
+ = partial 'glyptotheque/model-utils', locals: { html: html }
33
32
 
34
33
  - unless locals[:iframe]
35
34
  - stylesheets = current_page.metadata.page[:stylesheet] || current_page.metadata.page[:stylesheets] || current_page.data[:stylesheet] || current_page.data[:stylesheets]
@@ -2,4 +2,4 @@
2
2
  h1 Go ahead, create some models
3
3
  p: code sculptor create hello
4
4
  - else
5
- = partial 'partials/glyptotheque/model-index'
5
+ = partial 'glyptotheque/model-index'
@@ -2,4 +2,4 @@
2
2
  title: <%= @dir %>
3
3
  ---
4
4
 
5
- = partial 'partials/glyptotheque/model-index'
5
+ = partial 'glyptotheque/model-index'
@@ -1,3 +1,3 @@
1
1
  module Sculptor
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sculptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyom Semonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -288,6 +288,7 @@ files:
288
288
  - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque.scss
289
289
  - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_$variables.scss
290
290
  - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_base.scss
291
+ - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_model-utils.scss
291
292
  - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_model.scss
292
293
  - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_nav.scss
293
294
  - lib/sculptor/templates/glyptotheque/source/assets/styles/glyptotheque/_outliner.scss
@@ -296,19 +297,19 @@ files:
296
297
  - lib/sculptor/templates/glyptotheque/source/assets/styles/pygments/colorful.css
297
298
  - lib/sculptor/templates/glyptotheque/source/assets/styles/pygments/github.css
298
299
  - lib/sculptor/templates/glyptotheque/source/assets/styles/pygments/trac.css
300
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/_model-index.slim
301
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/_model-outline-element.slim
302
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/_model-outline.slim
303
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/_model-utils.slim
304
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/_model.slim
305
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/_nav.slim
306
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/menu-node.html.slim
307
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/menu-tree.html.slim
308
+ - lib/sculptor/templates/glyptotheque/source/glyptotheque/menu.html.slim
299
309
  - lib/sculptor/templates/glyptotheque/source/index.html.slim
300
310
  - lib/sculptor/templates/glyptotheque/source/layouts/glyptotheque.slim
301
311
  - lib/sculptor/templates/glyptotheque/source/layouts/layout.slim
302
312
  - lib/sculptor/templates/glyptotheque/source/layouts/standalone.slim
303
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-index.slim
304
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-outline-element.slim
305
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-outline.slim
306
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-source.slim
307
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model.slim
308
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_nav.slim
309
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/menu-node.html.slim
310
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/menu-tree.html.slim
311
- - lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/menu.html.slim
312
313
  - lib/sculptor/templates/glyptotheque/source/sitemap.json.erb
313
314
  - lib/sculptor/templates/model/data.tt
314
315
  - lib/sculptor/templates/model/index-template.tt
@@ -1,7 +0,0 @@
1
- section.glypto-model-outline ng-class="{'__expanded': outline_expanded}"
2
- header
3
- button._toggle(ng-class="{'__toggled': outline_expanded}" ng-click="outline_expanded = !outline_expanded") Outline
4
- ._container
5
- ._elements
6
- - elements.each do |item|
7
- = partial 'partials/glyptotheque/model-outline-element', locals: { item: item }
@@ -1,5 +0,0 @@
1
- section.glypto-model-source ng-class="{'__expanded': expanded}"
2
- header
3
- button._toggle(ng-class="{'__toggled': expanded}" ng-click="expanded = !expanded") #{source_type} source
4
- ._container
5
- = code(source_type) { source_code }