glyph 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/AUTHORS.textile +8 -7
- data/CHANGELOG.textile +89 -8
- data/LICENSE.textile +1 -2
- data/README.textile +89 -61
- data/Rakefile +12 -10
- data/VERSION +1 -1
- data/benchmark.rb +1 -1
- data/book/config.yml +18 -4
- data/book/document.glyph +269 -45
- data/book/images/glyph/commands_tasks.png +0 -0
- data/book/images/{document_generation.png → glyph/document_generation.png} +0 -0
- data/book/images/glyph/glyph.eps +123 -0
- data/book/images/glyph/glyph.png +0 -0
- data/book/images/glyph/glyph.svg +29 -0
- data/book/lib/commands/commands.rb +11 -0
- data/book/lib/layouts/bookindex.glyph +127 -0
- data/book/lib/layouts/bookpage.glyph +129 -0
- data/book/lib/layouts/project.glyph +26 -0
- data/book/lib/macros/reference.rb +27 -7
- data/book/lib/tasks/tasks.rake +52 -0
- data/book/snippets.yml +1 -1
- data/book/text/{acknowledgement.glyph → acknowledgements.glyph} +4 -2
- data/book/text/changelog.glyph +29 -3
- data/book/text/compiling/compiling.glyph +44 -20
- data/book/text/compiling/lite_mode.glyph +0 -4
- data/book/text/compiling/programmatic_usage.glyph +1 -5
- data/book/text/config/document.glyph +35 -0
- data/book/text/config/filters.glyph +28 -0
- data/book/text/config/options.glyph +25 -0
- data/book/text/config/output.glyph +83 -0
- data/book/text/extending/bookmarks_headers.glyph +0 -5
- data/book/text/extending/command.glyph +56 -0
- data/book/text/extending/commands_tasks.glyph +39 -0
- data/book/text/extending/further_reading.glyph +0 -3
- data/book/text/extending/internals.glyph +3 -5
- data/book/text/extending/interpreting.glyph +0 -4
- data/book/text/extending/layouts.glyph +68 -0
- data/book/text/extending/macro_def.glyph +0 -5
- data/book/text/extending/output_format.glyph +78 -0
- data/book/text/extending/params_attrs.glyph +0 -3
- data/book/text/extending/placeholders.glyph +0 -4
- data/book/text/extending/task.glyph +46 -0
- data/book/text/extending/validators.glyph +5 -6
- data/book/text/getting_started/configuration.glyph +1 -5
- data/book/text/getting_started/create_project.glyph +1 -5
- data/book/text/getting_started/structure.glyph +0 -4
- data/book/text/introduction.glyph +100 -75
- data/book/text/license.glyph +1 -2
- data/book/text/macros/macros_block.glyph +8 -4
- data/book/text/macros/macros_core.glyph +0 -3
- data/book/text/macros/macros_filters.glyph +2 -7
- data/book/text/macros/macros_inline.glyph +0 -4
- data/book/text/macros/macros_structure.glyph +0 -4
- data/book/text/ref_commands.glyph +29 -7
- data/book/text/stats/bookmarks.glyph +49 -0
- data/book/text/stats/links.glyph +90 -0
- data/book/text/stats/macros.glyph +73 -0
- data/book/text/stats/snippets.glyph +50 -0
- data/book/text/stats/stats.glyph +79 -0
- data/book/text/text_editing/attribute_intro.glyph +22 -0
- data/book/text/text_editing/code.glyph +0 -5
- data/book/text/text_editing/conditionals.glyph +0 -4
- data/book/text/text_editing/esc_quot.glyph +64 -0
- data/book/text/text_editing/evaluation.glyph +0 -3
- data/book/text/text_editing/glyph_files.glyph +0 -3
- data/book/text/text_editing/images.glyph +0 -5
- data/book/text/text_editing/inclusions.glyph +0 -4
- data/book/text/text_editing/links.glyph +2 -7
- data/book/text/text_editing/macro_intro.glyph +1 -98
- data/book/text/text_editing/raw_html.glyph +0 -87
- data/book/text/text_editing/section_aliases.glyph +28 -0
- data/book/text/text_editing/sections.glyph +1 -32
- data/book/text/text_editing/stylesheets.glyph +3 -5
- data/book/text/text_editing/topics.glyph +33 -0
- data/book/text/text_editing/xml_fallback.glyph +73 -0
- data/book/text/troubleshooting/errors_command.glyph +0 -3
- data/book/text/troubleshooting/errors_generic.glyph +21 -6
- data/book/text/troubleshooting/errors_macro.glyph +11 -8
- data/book/text/troubleshooting/errors_parser.glyph +0 -3
- data/config.yml +60 -25
- data/glyph.gemspec +90 -36
- data/layouts/web/index.glyph +16 -0
- data/layouts/web/topic.glyph +15 -0
- data/layouts/web5/index.glyph +16 -0
- data/layouts/web5/topic.glyph +17 -0
- data/lib/glyph.rb +36 -49
- data/lib/glyph/analyzer.rb +253 -0
- data/lib/glyph/bookmark.rb +92 -0
- data/lib/glyph/commands.rb +9 -221
- data/lib/glyph/commands/add.rb +8 -0
- data/lib/glyph/commands/compile.rb +93 -0
- data/lib/glyph/commands/config.rb +38 -0
- data/lib/glyph/commands/init.rb +6 -0
- data/lib/glyph/commands/outline.rb +45 -0
- data/lib/glyph/commands/stats.rb +48 -0
- data/lib/glyph/commands/todo.rb +29 -0
- data/lib/glyph/config.rb +2 -0
- data/lib/glyph/document.rb +61 -30
- data/lib/glyph/interpreter.rb +2 -2
- data/lib/glyph/macro.rb +14 -5
- data/lib/glyph/macro_helpers.rb +280 -0
- data/lib/glyph/macro_validators.rb +37 -2
- data/lib/glyph/reporter.rb +182 -0
- data/lib/glyph/syntax_node.rb +37 -10
- data/lib/glyph/system_extensions.rb +8 -45
- data/lib/glyph/utils.rb +148 -0
- data/macros/core.rb +10 -15
- data/macros/filters.rb +4 -5
- data/macros/html/block.rb +46 -30
- data/macros/html/inline.rb +9 -35
- data/macros/html/structure.rb +59 -72
- data/macros/html5/block.rb +69 -0
- data/macros/html5/inline.rb +24 -0
- data/macros/html5/structure.rb +139 -0
- data/macros/xml.rb +1 -1
- data/spec/files/custom_command.rb +6 -0
- data/spec/files/custom_tasks.rake +6 -0
- data/spec/files/document_for_stats.glyph +12 -0
- data/spec/files/references.glyph +4 -0
- data/spec/files/web1.glyph +11 -0
- data/spec/files/web2.glyph +10 -0
- data/spec/files/web_doc.glyph +23 -0
- data/spec/lib/analyzer_spec.rb +137 -0
- data/spec/lib/bookmark_spec.rb +64 -0
- data/spec/lib/commands_spec.rb +30 -5
- data/spec/lib/document_spec.rb +49 -9
- data/spec/lib/glyph_spec.rb +21 -1
- data/spec/lib/macro_spec.rb +6 -6
- data/spec/lib/macro_validators_spec.rb +24 -0
- data/spec/lib/reporter_spec.rb +132 -0
- data/spec/macros/core_spec.rb +2 -3
- data/spec/macros/filters_spec.rb +2 -2
- data/spec/macros/html5_spec.rb +101 -0
- data/spec/macros/macros_spec.rb +16 -6
- data/spec/macros/web5_spec.rb +32 -0
- data/spec/macros/web_spec.rb +59 -0
- data/spec/macros/xml_spec.rb +1 -1
- data/spec/spec_helper.rb +24 -4
- data/spec/tasks/generate_spec.rb +54 -0
- data/spec/tasks/load_spec.rb +29 -3
- data/spec/tasks/project_spec.rb +21 -3
- data/styles/default.css +40 -4
- data/styles/pagination.css +59 -41
- data/tasks/generate.rake +110 -31
- data/tasks/load.rake +39 -7
- data/tasks/project.rake +9 -7
- metadata +115 -34
- data/book/images/glyph.png +0 -0
- data/book/images/glyph.svg +0 -351
- data/book/output/html/glyph.html +0 -4482
- data/book/output/html/images/document_generation.png +0 -0
- data/book/output/html/images/glyph.png +0 -0
- data/book/output/html/images/glyph.svg +0 -351
- data/book/output/pdf/glyph.pdf +4 -10254
- data/book/script/authors +0 -1
- data/book/script/changelog +0 -1
- data/book/script/license +0 -1
- data/book/script/readme +0 -1
- data/book/text/ref_config.glyph +0 -100
- data/book/text/ref_macros.glyph +0 -6
- data/book/text/troubleshooting/errors_intro.glyph +0 -3
data/tasks/load.rake
CHANGED
@@ -1,9 +1,29 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
namespace :load do
|
4
|
+
include Glyph::Utils
|
4
5
|
|
5
6
|
desc "Load all files"
|
6
|
-
task :all => [:config, :snippets, :macros] do
|
7
|
+
task :all => [:config, :tasks, :commands, :snippets, :macros] do
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "Load tasks"
|
11
|
+
task :tasks do
|
12
|
+
unless Glyph.lite? then
|
13
|
+
load_files_from_dir(Glyph::PROJECT/'lib/tasks', '.rake') do |f, contents|
|
14
|
+
load f
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Load commands"
|
20
|
+
task :commands do
|
21
|
+
unless Glyph.lite? then
|
22
|
+
include GLI if (Glyph::PROJECT/'lib/commands').exist?
|
23
|
+
load_files_from_dir(Glyph::PROJECT/'lib/commands', '.rb') do |f, contents|
|
24
|
+
require f
|
25
|
+
end
|
26
|
+
end
|
7
27
|
end
|
8
28
|
|
9
29
|
desc "Load snippets"
|
@@ -20,18 +40,28 @@ namespace :load do
|
|
20
40
|
task :macros do
|
21
41
|
raise RuntimeError, "The current directory is not a valid Glyph project" unless Glyph.project? || Glyph.lite?
|
22
42
|
load_macros_from_dir = lambda do |dir|
|
23
|
-
|
24
|
-
|
25
|
-
Glyph.instance_eval file_load(c) unless c.directory?
|
26
|
-
end
|
43
|
+
load_files_from_dir(dir, ".rb") do |file, contents|
|
44
|
+
Glyph.instance_eval contents
|
27
45
|
end
|
28
46
|
end
|
29
|
-
|
47
|
+
load_layouts_from_dir = lambda do |dir|
|
48
|
+
load_files_from_dir(dir, ".glyph") do |file, contents|
|
49
|
+
Glyph.rewrite "layout:#{file.basename(file.extname)}".to_sym, contents
|
50
|
+
end
|
51
|
+
end
|
52
|
+
case Glyph['options.macro_set']
|
30
53
|
when 'glyph' then
|
31
54
|
Glyph.instance_eval file_load(Glyph::HOME/'macros/core.rb')
|
32
55
|
Glyph.instance_eval file_load(Glyph::HOME/'macros/filters.rb')
|
33
56
|
Glyph.instance_eval file_load(Glyph::HOME/'macros/xml.rb')
|
34
|
-
|
57
|
+
macro_dirs = Glyph["output.#{Glyph['document.output']}.macro_dirs"]
|
58
|
+
layout_dirs = Glyph["output.#{Glyph['document.output']}.layout_dirs"] || []
|
59
|
+
unless macro_dirs.blank?
|
60
|
+
macro_dirs.each {|d| load_macros_from_dir.call Glyph::HOME/"macros/#{d}" }
|
61
|
+
else
|
62
|
+
warning "No #{Glyph['document.output']} macros defined"
|
63
|
+
end
|
64
|
+
layout_dirs.each {|d| load_layouts_from_dir.call Glyph::HOME/"layouts/#{d}" }
|
35
65
|
when 'xml' then
|
36
66
|
Glyph.instance_eval file_load(Glyph::HOME/'macros/core.rb')
|
37
67
|
Glyph.instance_eval file_load(Glyph::HOME/'macros/filters.rb')
|
@@ -45,6 +75,8 @@ namespace :load do
|
|
45
75
|
# load project macros
|
46
76
|
unless Glyph.lite? then
|
47
77
|
load_macros_from_dir.call Glyph::PROJECT/"lib/macros"
|
78
|
+
load_macros_from_dir.call Glyph::PROJECT/"lib/macros/#{Glyph['document.output']}"
|
79
|
+
load_layouts_from_dir.call Glyph::PROJECT/'lib/layouts' if Glyph.multiple_output_files?
|
48
80
|
end
|
49
81
|
end
|
50
82
|
|
data/tasks/project.rake
CHANGED
@@ -1,26 +1,27 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
namespace :project do
|
4
|
+
include Glyph::Utils
|
4
5
|
|
5
6
|
desc "Create a new Glyph project"
|
6
7
|
task :create, [:dir] do |t, args|
|
7
8
|
dir = Pathname.new args[:dir]
|
8
9
|
raise ArgumentError, "Directory #{dir} does not exist." unless dir.exist?
|
9
|
-
raise ArgumentError, "Directory #{dir} is not empty." unless dir.children.blank?
|
10
|
+
raise ArgumentError, "Directory #{dir} is not empty." unless dir.children.select{|f| !f.basename.to_s.match(/^(\..+|Gemfile[.\w]*|Rakefile)$/)}.blank?
|
10
11
|
# Create subdirectories
|
11
|
-
subdirs = ['lib/tasks', 'lib/
|
12
|
+
subdirs = ['lib/macros', 'lib/tasks', 'lib/layouts', 'lib/tasks', 'lib/commands', 'text', 'output', 'images', 'styles']
|
12
13
|
subdirs.each {|d| (dir/d).mkpath }
|
13
14
|
# Create snippets
|
14
15
|
yaml_dump Glyph::PROJECT/'snippets.yml', {:test => "This is a \nTest snippet"}
|
15
16
|
# Create files
|
16
17
|
file_copy Glyph::HOME/'document.glyph', Glyph::PROJECT/'document.glyph'
|
17
18
|
config = yaml_load Glyph::HOME/'config.yml'
|
18
|
-
|
19
|
-
|
19
|
+
config[:document][:filename] = dir.basename.to_s
|
20
|
+
config[:document][:title] = dir.basename.to_s
|
20
21
|
config[:document][:author] = ENV['USER'] || ENV['USERNAME']
|
21
|
-
config.delete(:
|
22
|
+
config.each_pair { |k, v| config.delete(k) unless k == :document }
|
22
23
|
yaml_dump Glyph::PROJECT/'config.yml', config
|
23
|
-
|
24
|
+
info "Project '#{dir.basename}' created successfully."
|
24
25
|
end
|
25
26
|
|
26
27
|
desc "Add a new text file to the project"
|
@@ -31,5 +32,6 @@ namespace :project do
|
|
31
32
|
raise ArgumentError, "File '#{args[:file]}' already exists." if file.exist?
|
32
33
|
File.new(file.to_s, "w").close
|
33
34
|
end
|
34
|
-
|
35
35
|
end
|
36
|
+
|
37
|
+
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glyph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
-
|
8
|
+
- 4
|
8
9
|
- 0
|
9
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Fabio Cevasco
|
@@ -14,44 +15,50 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-09-03 00:00:00 +02:00
|
18
19
|
default_executable: glyph
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: gli
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 17
|
27
30
|
segments:
|
28
|
-
- 0
|
29
|
-
- 3
|
30
31
|
- 1
|
31
|
-
|
32
|
+
- 1
|
33
|
+
- 1
|
34
|
+
version: 1.1.1
|
32
35
|
type: :runtime
|
33
36
|
version_requirements: *id001
|
34
37
|
- !ruby/object:Gem::Dependency
|
35
38
|
name: extlib
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 37
|
41
46
|
segments:
|
42
47
|
- 0
|
43
48
|
- 9
|
44
|
-
-
|
45
|
-
version: 0.9.
|
49
|
+
- 15
|
50
|
+
version: 0.9.15
|
46
51
|
type: :runtime
|
47
52
|
version_requirements: *id002
|
48
53
|
- !ruby/object:Gem::Dependency
|
49
54
|
name: rake
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - ">="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 49
|
55
62
|
segments:
|
56
63
|
- 0
|
57
64
|
- 8
|
@@ -63,37 +70,43 @@ dependencies:
|
|
63
70
|
name: rspec
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ">="
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 27
|
69
78
|
segments:
|
70
79
|
- 1
|
71
|
-
-
|
72
|
-
-
|
73
|
-
version: 1.
|
80
|
+
- 3
|
81
|
+
- 0
|
82
|
+
version: 1.3.0
|
74
83
|
type: :development
|
75
84
|
version_requirements: *id004
|
76
85
|
- !ruby/object:Gem::Dependency
|
77
86
|
name: yard
|
78
87
|
prerelease: false
|
79
88
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
80
90
|
requirements:
|
81
91
|
- - ">="
|
82
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: 7
|
83
94
|
segments:
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
version:
|
95
|
+
- 0
|
96
|
+
- 6
|
97
|
+
- 0
|
98
|
+
version: 0.6.0
|
88
99
|
type: :development
|
89
100
|
version_requirements: *id005
|
90
101
|
- !ruby/object:Gem::Dependency
|
91
102
|
name: jeweler
|
92
103
|
prerelease: false
|
93
104
|
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
94
106
|
requirements:
|
95
107
|
- - "="
|
96
108
|
- !ruby/object:Gem::Version
|
109
|
+
hash: 7
|
97
110
|
segments:
|
98
111
|
- 1
|
99
112
|
- 4
|
@@ -105,9 +118,11 @@ dependencies:
|
|
105
118
|
name: directory_watcher
|
106
119
|
prerelease: false
|
107
120
|
requirement: &id007 !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
108
122
|
requirements:
|
109
123
|
- - ">="
|
110
124
|
- !ruby/object:Gem::Version
|
125
|
+
hash: 31
|
111
126
|
segments:
|
112
127
|
- 1
|
113
128
|
- 3
|
@@ -119,23 +134,27 @@ dependencies:
|
|
119
134
|
name: haml
|
120
135
|
prerelease: false
|
121
136
|
requirement: &id008 !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
122
138
|
requirements:
|
123
139
|
- - ">="
|
124
140
|
- !ruby/object:Gem::Version
|
141
|
+
hash: 25
|
125
142
|
segments:
|
126
143
|
- 3
|
127
144
|
- 0
|
128
|
-
-
|
129
|
-
version: 3.0.
|
145
|
+
- 15
|
146
|
+
version: 3.0.15
|
130
147
|
type: :development
|
131
148
|
version_requirements: *id008
|
132
149
|
- !ruby/object:Gem::Dependency
|
133
150
|
name: RedCloth
|
134
151
|
prerelease: false
|
135
152
|
requirement: &id009 !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
136
154
|
requirements:
|
137
155
|
- - ">="
|
138
156
|
- !ruby/object:Gem::Version
|
157
|
+
hash: 49
|
139
158
|
segments:
|
140
159
|
- 4
|
141
160
|
- 2
|
@@ -147,9 +166,11 @@ dependencies:
|
|
147
166
|
name: bluecloth
|
148
167
|
prerelease: false
|
149
168
|
requirement: &id010 !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
150
170
|
requirements:
|
151
171
|
- - ">="
|
152
172
|
- !ruby/object:Gem::Version
|
173
|
+
hash: 1
|
153
174
|
segments:
|
154
175
|
- 2
|
155
176
|
- 0
|
@@ -161,9 +182,11 @@ dependencies:
|
|
161
182
|
name: coderay
|
162
183
|
prerelease: false
|
163
184
|
requirement: &id011 !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
164
186
|
requirements:
|
165
187
|
- - ">="
|
166
188
|
- !ruby/object:Gem::Version
|
189
|
+
hash: 61
|
167
190
|
segments:
|
168
191
|
- 0
|
169
192
|
- 9
|
@@ -181,6 +204,7 @@ extra_rdoc_files:
|
|
181
204
|
- LICENSE.textile
|
182
205
|
- README.textile
|
183
206
|
files:
|
207
|
+
- .gitignore
|
184
208
|
- AUTHORS.textile
|
185
209
|
- CHANGELOG.textile
|
186
210
|
- LICENSE.textile
|
@@ -191,33 +215,40 @@ files:
|
|
191
215
|
- bin/glyph
|
192
216
|
- book/config.yml
|
193
217
|
- book/document.glyph
|
194
|
-
- book/images/
|
195
|
-
- book/images/glyph.png
|
196
|
-
- book/images/glyph.
|
218
|
+
- book/images/glyph/commands_tasks.png
|
219
|
+
- book/images/glyph/document_generation.png
|
220
|
+
- book/images/glyph/glyph.eps
|
221
|
+
- book/images/glyph/glyph.png
|
222
|
+
- book/images/glyph/glyph.svg
|
223
|
+
- book/lib/commands/commands.rb
|
224
|
+
- book/lib/layouts/bookindex.glyph
|
225
|
+
- book/lib/layouts/bookpage.glyph
|
226
|
+
- book/lib/layouts/project.glyph
|
197
227
|
- book/lib/macros/reference.rb
|
198
|
-
- book/
|
199
|
-
- book/output/html/images/document_generation.png
|
200
|
-
- book/output/html/images/glyph.png
|
201
|
-
- book/output/html/images/glyph.svg
|
202
|
-
- book/output/pdf/glyph.pdf
|
228
|
+
- book/lib/tasks/tasks.rake
|
203
229
|
- book/resources/document_generation.txt
|
204
|
-
- book/script/authors
|
205
|
-
- book/script/changelog
|
206
|
-
- book/script/license
|
207
|
-
- book/script/readme
|
208
230
|
- book/snippets.yml
|
209
|
-
- book/text/
|
231
|
+
- book/text/acknowledgements.glyph
|
210
232
|
- book/text/changelog.glyph
|
211
233
|
- book/text/compiling/compiling.glyph
|
212
234
|
- book/text/compiling/lite_mode.glyph
|
213
235
|
- book/text/compiling/programmatic_usage.glyph
|
236
|
+
- book/text/config/document.glyph
|
237
|
+
- book/text/config/filters.glyph
|
238
|
+
- book/text/config/options.glyph
|
239
|
+
- book/text/config/output.glyph
|
214
240
|
- book/text/extending/bookmarks_headers.glyph
|
241
|
+
- book/text/extending/command.glyph
|
242
|
+
- book/text/extending/commands_tasks.glyph
|
215
243
|
- book/text/extending/further_reading.glyph
|
216
244
|
- book/text/extending/internals.glyph
|
217
245
|
- book/text/extending/interpreting.glyph
|
246
|
+
- book/text/extending/layouts.glyph
|
218
247
|
- book/text/extending/macro_def.glyph
|
248
|
+
- book/text/extending/output_format.glyph
|
219
249
|
- book/text/extending/params_attrs.glyph
|
220
250
|
- book/text/extending/placeholders.glyph
|
251
|
+
- book/text/extending/task.glyph
|
221
252
|
- book/text/extending/validators.glyph
|
222
253
|
- book/text/getting_started/configuration.glyph
|
223
254
|
- book/text/getting_started/create_project.glyph
|
@@ -230,10 +261,15 @@ files:
|
|
230
261
|
- book/text/macros/macros_inline.glyph
|
231
262
|
- book/text/macros/macros_structure.glyph
|
232
263
|
- book/text/ref_commands.glyph
|
233
|
-
- book/text/
|
234
|
-
- book/text/
|
264
|
+
- book/text/stats/bookmarks.glyph
|
265
|
+
- book/text/stats/links.glyph
|
266
|
+
- book/text/stats/macros.glyph
|
267
|
+
- book/text/stats/snippets.glyph
|
268
|
+
- book/text/stats/stats.glyph
|
269
|
+
- book/text/text_editing/attribute_intro.glyph
|
235
270
|
- book/text/text_editing/code.glyph
|
236
271
|
- book/text/text_editing/conditionals.glyph
|
272
|
+
- book/text/text_editing/esc_quot.glyph
|
237
273
|
- book/text/text_editing/evaluation.glyph
|
238
274
|
- book/text/text_editing/glyph_files.glyph
|
239
275
|
- book/text/text_editing/images.glyph
|
@@ -241,41 +277,71 @@ files:
|
|
241
277
|
- book/text/text_editing/links.glyph
|
242
278
|
- book/text/text_editing/macro_intro.glyph
|
243
279
|
- book/text/text_editing/raw_html.glyph
|
280
|
+
- book/text/text_editing/section_aliases.glyph
|
244
281
|
- book/text/text_editing/sections.glyph
|
245
282
|
- book/text/text_editing/stylesheets.glyph
|
283
|
+
- book/text/text_editing/topics.glyph
|
284
|
+
- book/text/text_editing/xml_fallback.glyph
|
246
285
|
- book/text/troubleshooting/errors_command.glyph
|
247
286
|
- book/text/troubleshooting/errors_generic.glyph
|
248
|
-
- book/text/troubleshooting/errors_intro.glyph
|
249
287
|
- book/text/troubleshooting/errors_macro.glyph
|
250
288
|
- book/text/troubleshooting/errors_parser.glyph
|
251
289
|
- config.yml
|
252
290
|
- document.glyph
|
253
291
|
- glyph.gemspec
|
292
|
+
- layouts/web/index.glyph
|
293
|
+
- layouts/web/topic.glyph
|
294
|
+
- layouts/web5/index.glyph
|
295
|
+
- layouts/web5/topic.glyph
|
254
296
|
- lib/glyph.rb
|
297
|
+
- lib/glyph/analyzer.rb
|
298
|
+
- lib/glyph/bookmark.rb
|
255
299
|
- lib/glyph/commands.rb
|
300
|
+
- lib/glyph/commands/add.rb
|
301
|
+
- lib/glyph/commands/compile.rb
|
302
|
+
- lib/glyph/commands/config.rb
|
303
|
+
- lib/glyph/commands/init.rb
|
304
|
+
- lib/glyph/commands/outline.rb
|
305
|
+
- lib/glyph/commands/stats.rb
|
306
|
+
- lib/glyph/commands/todo.rb
|
256
307
|
- lib/glyph/config.rb
|
257
308
|
- lib/glyph/document.rb
|
258
309
|
- lib/glyph/interpreter.rb
|
259
310
|
- lib/glyph/macro.rb
|
311
|
+
- lib/glyph/macro_helpers.rb
|
260
312
|
- lib/glyph/macro_validators.rb
|
261
313
|
- lib/glyph/node.rb
|
262
314
|
- lib/glyph/parser.rb
|
315
|
+
- lib/glyph/reporter.rb
|
263
316
|
- lib/glyph/syntax_node.rb
|
264
317
|
- lib/glyph/system_extensions.rb
|
318
|
+
- lib/glyph/utils.rb
|
265
319
|
- macros/core.rb
|
266
320
|
- macros/filters.rb
|
267
321
|
- macros/html/block.rb
|
268
322
|
- macros/html/inline.rb
|
269
323
|
- macros/html/structure.rb
|
324
|
+
- macros/html5/block.rb
|
325
|
+
- macros/html5/inline.rb
|
326
|
+
- macros/html5/structure.rb
|
270
327
|
- macros/xml.rb
|
271
328
|
- spec/files/article.glyph
|
272
329
|
- spec/files/container.textile
|
330
|
+
- spec/files/custom_command.rb
|
331
|
+
- spec/files/custom_tasks.rake
|
273
332
|
- spec/files/document.glyph
|
333
|
+
- spec/files/document_for_stats.glyph
|
274
334
|
- spec/files/document_with_toc.glyph
|
275
335
|
- spec/files/included.textile
|
276
336
|
- spec/files/ligature.jpg
|
277
337
|
- spec/files/markdown.markdown
|
338
|
+
- spec/files/references.glyph
|
278
339
|
- spec/files/test.sass
|
340
|
+
- spec/files/web1.glyph
|
341
|
+
- spec/files/web2.glyph
|
342
|
+
- spec/files/web_doc.glyph
|
343
|
+
- spec/lib/analyzer_spec.rb
|
344
|
+
- spec/lib/bookmark_spec.rb
|
279
345
|
- spec/lib/commands_spec.rb
|
280
346
|
- spec/lib/config_spec.rb
|
281
347
|
- spec/lib/document_spec.rb
|
@@ -285,11 +351,15 @@ files:
|
|
285
351
|
- spec/lib/macro_validators_spec.rb
|
286
352
|
- spec/lib/node_spec.rb
|
287
353
|
- spec/lib/parser_spec.rb
|
354
|
+
- spec/lib/reporter_spec.rb
|
288
355
|
- spec/lib/syntax_node_spec.rb
|
289
356
|
- spec/macros/core_spec.rb
|
290
357
|
- spec/macros/filters_spec.rb
|
358
|
+
- spec/macros/html5_spec.rb
|
291
359
|
- spec/macros/macros_spec.rb
|
292
360
|
- spec/macros/textile_spec.rb
|
361
|
+
- spec/macros/web5_spec.rb
|
362
|
+
- spec/macros/web_spec.rb
|
293
363
|
- spec/macros/xml_spec.rb
|
294
364
|
- spec/spec_helper.rb
|
295
365
|
- spec/tasks/generate_spec.rb
|
@@ -332,35 +402,44 @@ rdoc_options:
|
|
332
402
|
require_paths:
|
333
403
|
- lib
|
334
404
|
required_ruby_version: !ruby/object:Gem::Requirement
|
405
|
+
none: false
|
335
406
|
requirements:
|
336
407
|
- - ">="
|
337
408
|
- !ruby/object:Gem::Version
|
409
|
+
hash: 3
|
338
410
|
segments:
|
339
411
|
- 0
|
340
412
|
version: "0"
|
341
413
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
414
|
+
none: false
|
342
415
|
requirements:
|
343
416
|
- - ">="
|
344
417
|
- !ruby/object:Gem::Version
|
418
|
+
hash: 3
|
345
419
|
segments:
|
346
420
|
- 0
|
347
421
|
version: "0"
|
348
422
|
requirements: []
|
349
423
|
|
350
424
|
rubyforge_project:
|
351
|
-
rubygems_version: 1.3.
|
425
|
+
rubygems_version: 1.3.7
|
352
426
|
signing_key:
|
353
427
|
specification_version: 3
|
354
428
|
summary: Glyph -- A Ruby-powered Document Authoring Framework
|
355
429
|
test_files:
|
356
430
|
- spec/macros/core_spec.rb
|
431
|
+
- spec/macros/web_spec.rb
|
432
|
+
- spec/macros/html5_spec.rb
|
357
433
|
- spec/macros/filters_spec.rb
|
434
|
+
- spec/macros/web5_spec.rb
|
358
435
|
- spec/macros/textile_spec.rb
|
359
436
|
- spec/macros/xml_spec.rb
|
360
437
|
- spec/macros/macros_spec.rb
|
361
438
|
- spec/lib/interpreter_spec.rb
|
439
|
+
- spec/lib/analyzer_spec.rb
|
362
440
|
- spec/lib/commands_spec.rb
|
363
441
|
- spec/lib/node_spec.rb
|
442
|
+
- spec/lib/bookmark_spec.rb
|
364
443
|
- spec/lib/macro_spec.rb
|
365
444
|
- spec/lib/macro_validators_spec.rb
|
366
445
|
- spec/lib/config_spec.rb
|
@@ -368,7 +447,9 @@ test_files:
|
|
368
447
|
- spec/lib/parser_spec.rb
|
369
448
|
- spec/lib/syntax_node_spec.rb
|
370
449
|
- spec/lib/document_spec.rb
|
450
|
+
- spec/lib/reporter_spec.rb
|
371
451
|
- spec/tasks/load_spec.rb
|
372
452
|
- spec/tasks/generate_spec.rb
|
373
453
|
- spec/tasks/project_spec.rb
|
454
|
+
- spec/files/custom_command.rb
|
374
455
|
- spec/spec_helper.rb
|