bookbindery 2.1.1 → 2.1.3
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.
- checksums.yaml +4 -4
- data/install_bin/bookbinder +2 -1
- data/lib/bookbinder.rb +2 -2
- data/lib/bookbinder/app_fetcher.rb +2 -2
- data/lib/bookbinder/cf_command_runner.rb +1 -1
- data/lib/bookbinder/cli.rb +10 -1
- data/lib/bookbinder/command_runner.rb +1 -1
- data/lib/bookbinder/command_validator.rb +2 -2
- data/lib/bookbinder/commands/bind.rb +22 -31
- data/lib/bookbinder/commands/tag.rb +1 -2
- data/lib/bookbinder/dita_html_to_middleman_formatter.rb +1 -1
- data/lib/bookbinder/dita_section_gatherer.rb +5 -3
- data/lib/bookbinder/{cli_error.rb → errors/cli_error.rb} +0 -0
- data/lib/bookbinder/git_accessor.rb +1 -1
- data/lib/bookbinder/ingest/cloner_factory.rb +4 -4
- data/lib/bookbinder/ingest/{git_hub_repository_cloner_facade.rb → git_hub_repository_cloner.rb} +1 -1
- data/lib/bookbinder/ingest/{local_filesystem_cloner_facade.rb → local_filesystem_cloner.rb} +1 -1
- data/lib/bookbinder/local_dita_preprocessor.rb +8 -13
- data/lib/bookbinder/local_dita_to_html_converter.rb +2 -3
- data/lib/bookbinder/local_file_system_accessor.rb +4 -0
- data/lib/bookbinder/middleman_runner.rb +1 -1
- data/lib/bookbinder/repositories/command_repository.rb +6 -10
- data/lib/bookbinder/{blue_green_app.rb → values/blue_green_app.rb} +0 -0
- data/lib/bookbinder/{cf_routes.rb → values/cf_routes.rb} +0 -0
- data/lib/bookbinder/{code_example.rb → values/code_example.rb} +0 -0
- data/lib/bookbinder/values/dita_section.rb +26 -0
- data/lib/bookbinder/values/output_locations.rb +11 -0
- data/lib/bookbinder/{section.rb → values/section.rb} +0 -1
- data/lib/bookbinder/{subnav.rb → values/subnav.rb} +0 -0
- data/lib/bookbinder/{user_message.rb → values/user_message.rb} +0 -0
- metadata +13 -12
- data/lib/bookbinder/dita_section.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 738c31dab5c4057b6f486aef21926f603615651c
|
4
|
+
data.tar.gz: 3a149c514e408ff32ba77c6835dbd7b315646cd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f7024799d3f9318cdcc19d5a42653614a6f70bc1577d70cc796a8115ceae219ce29fef032f15c920581fbe9a35445e102ad436ce61c8fbbf5be6aecdbe1413
|
7
|
+
data.tar.gz: e3cc42e4d350875b1115348fba6aaa1e12c9c8c41306f65991e03474edd1cb2966a2853ac8aa653830fc7ecd3c9c05979d2fcd74f3f2c374e5763c5964ac0ae6
|
data/install_bin/bookbinder
CHANGED
data/lib/bookbinder.rb
CHANGED
@@ -13,9 +13,9 @@ require 'puma'
|
|
13
13
|
|
14
14
|
require_relative 'bookbinder/deprecated_logger'
|
15
15
|
require_relative 'bookbinder/git_client'
|
16
|
-
require_relative 'bookbinder/section'
|
16
|
+
require_relative 'bookbinder/values/section'
|
17
17
|
require_relative 'bookbinder/book'
|
18
|
-
require_relative 'bookbinder/code_example'
|
18
|
+
require_relative 'bookbinder/values/code_example'
|
19
19
|
require_relative 'bookbinder/remote_yaml_credential_provider'
|
20
20
|
require_relative 'bookbinder/configuration'
|
21
21
|
require_relative 'bookbinder/configuration_fetcher'
|
data/lib/bookbinder/cli.rb
CHANGED
@@ -8,11 +8,15 @@ require_relative 'user_message_presenter'
|
|
8
8
|
|
9
9
|
module Bookbinder
|
10
10
|
class Cli
|
11
|
+
def initialize(version_control_system)
|
12
|
+
@version_control_system = version_control_system
|
13
|
+
end
|
14
|
+
|
11
15
|
def run(args)
|
12
16
|
command_name, *command_arguments = args
|
13
17
|
|
14
18
|
logger = DeprecatedLogger.new
|
15
|
-
commands = Repositories::CommandRepository.new(logger)
|
19
|
+
commands = Repositories::CommandRepository.new(logger, version_control_system)
|
16
20
|
|
17
21
|
command_validator = CommandValidator.new(commands, commands.help.usage_message)
|
18
22
|
command_runner = CommandRunner.new(logger, commands)
|
@@ -52,5 +56,10 @@ module Bookbinder
|
|
52
56
|
1
|
53
57
|
end
|
54
58
|
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
attr_reader :version_control_system
|
63
|
+
|
55
64
|
end
|
56
65
|
end
|
@@ -1,11 +1,12 @@
|
|
1
1
|
require_relative '../archive_menu_configuration'
|
2
2
|
require_relative '../book'
|
3
|
-
require_relative '../cli_error'
|
3
|
+
require_relative '../errors/cli_error'
|
4
4
|
require_relative '../directory_helpers'
|
5
5
|
require_relative '../publisher'
|
6
|
-
require_relative '../section'
|
7
|
-
require_relative '../dita_section'
|
6
|
+
require_relative '../values/section'
|
7
|
+
require_relative '../values/dita_section'
|
8
8
|
require_relative '../dita_section_gatherer'
|
9
|
+
require_relative '../values/output_locations'
|
9
10
|
require_relative 'naming'
|
10
11
|
|
11
12
|
module Bookbinder
|
@@ -57,39 +58,38 @@ module Bookbinder
|
|
57
58
|
|
58
59
|
def run(cli_arguments)
|
59
60
|
raise CliError::InvalidArguments unless arguments_are_valid?(cli_arguments)
|
61
|
+
|
60
62
|
@section_repository = Repositories::SectionRepository.new(logger)
|
61
63
|
@gem_root = File.expand_path('../../../../', __FILE__)
|
62
|
-
|
63
64
|
@publisher = Publisher.new(logger, sitemap_generator, static_site_generator, server_director, file_system_accessor)
|
64
65
|
|
65
66
|
bind_source, *options = cli_arguments
|
66
67
|
|
67
|
-
output_paths = output_directory_paths(bind_source)
|
68
|
-
|
69
68
|
bind_config = bind_config(bind_source)
|
70
69
|
@versions = bind_config.fetch(:versions, [])
|
71
70
|
@book_repo = bind_config[:book_repo]
|
72
71
|
|
72
|
+
output_paths = output_directory_paths(bind_source)
|
73
73
|
master_middleman_dir = output_paths.fetch(:master_middleman_dir)
|
74
74
|
output_dir = output_paths.fetch(:output_dir)
|
75
|
-
|
76
75
|
master_dir = File.join output_dir, 'master_middleman'
|
77
|
-
workspace_dir = File.join master_dir, 'source'
|
78
76
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
77
|
+
output_locations = OutputLocations.new(
|
78
|
+
workspace_dir = File.join(master_dir, 'source'),
|
79
|
+
dita_home_dir = File.join(output_dir, 'dita'),
|
80
|
+
cloned_dita_dir = File.join(dita_home_dir, 'dita_sections'),
|
81
|
+
html_from_dita_dir = File.join(dita_home_dir, 'html_from_dita'),
|
82
|
+
formatted_dir = File.join(dita_home_dir, 'site_generator_ready'),
|
83
|
+
subnavs_for_layout_dir = File.join(workspace_dir, 'subnavs'),
|
84
|
+
dita_subnav_template_path = File.join(workspace_dir, 'subnavs', '_dita_subnav_template.erb')
|
85
|
+
)
|
85
86
|
|
86
87
|
prepare_directories(final_app_directory,
|
87
88
|
output_dir,
|
88
89
|
workspace_dir,
|
89
90
|
master_middleman_dir,
|
90
91
|
master_dir,
|
91
|
-
|
92
|
-
formatted_dir)
|
92
|
+
dita_home_dir)
|
93
93
|
|
94
94
|
dita_section_config_hash = config.dita_sections || {}
|
95
95
|
dita_sections = dita_section_config_hash.map do |dita_section_config|
|
@@ -98,12 +98,12 @@ module Bookbinder
|
|
98
98
|
target_ref = dita_section_config.fetch('repository', {})['ref']
|
99
99
|
directory = dita_section_config['directory']
|
100
100
|
|
101
|
-
DitaSection.new(nil, relative_path_to_dita_map, full_name, target_ref, directory)
|
101
|
+
DitaSection.new(nil, relative_path_to_dita_map, full_name, target_ref, directory, output_locations)
|
102
102
|
end
|
103
103
|
|
104
104
|
if bind_source == 'github'
|
105
|
-
dita_section_gatherer = DitaSectionGatherer.new(version_control_system, logger)
|
106
|
-
gathered_dita_sections = dita_section_gatherer.gather(dita_sections, to:
|
105
|
+
dita_section_gatherer = DitaSectionGatherer.new(version_control_system, output_locations, logger)
|
106
|
+
gathered_dita_sections = dita_section_gatherer.gather(dita_sections, to: cloned_dita_dir)
|
107
107
|
else
|
108
108
|
gathered_dita_sections = dita_sections.map do |dita_section|
|
109
109
|
relative_path_to_dita_map = dita_section.ditamap_location
|
@@ -113,16 +113,13 @@ module Bookbinder
|
|
113
113
|
|
114
114
|
path_to_local_copy = File.join output_paths[:local_repo_dir], directory
|
115
115
|
|
116
|
-
DitaSection.new(path_to_local_copy, relative_path_to_dita_map, full_name, target_ref, directory)
|
116
|
+
DitaSection.new(path_to_local_copy, relative_path_to_dita_map, full_name, target_ref, directory, output_locations)
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
120
|
gathered_dita_sections.each do |dita_section|
|
121
121
|
dita_preprocessor.preprocess(dita_section,
|
122
|
-
|
123
|
-
formatted_dir,
|
124
|
-
workspace_dir,
|
125
|
-
subnavs_dir,
|
122
|
+
subnavs_for_layout_dir,
|
126
123
|
dita_subnav_template_path)
|
127
124
|
end
|
128
125
|
|
@@ -187,16 +184,10 @@ module Bookbinder
|
|
187
184
|
middleman_source,
|
188
185
|
master_middleman_dir,
|
189
186
|
middleman_dir,
|
190
|
-
dita_processing_dir
|
191
|
-
formatted_dir)
|
187
|
+
dita_processing_dir)
|
192
188
|
forget_sections(output_dir)
|
193
189
|
file_system_accessor.remove_directory File.join final_app, '.'
|
194
190
|
file_system_accessor.remove_directory dita_processing_dir
|
195
|
-
file_system_accessor.make_directory output_dir
|
196
|
-
file_system_accessor.make_directory formatted_dir
|
197
|
-
file_system_accessor.make_directory File.join dita_processing_dir, 'dita_sections'
|
198
|
-
file_system_accessor.make_directory File.join final_app, 'public'
|
199
|
-
file_system_accessor.make_directory middleman_source
|
200
191
|
|
201
192
|
copy_directory_from_gem 'template_app', final_app
|
202
193
|
copy_directory_from_gem 'master_middleman', middleman_dir
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Bookbinder
|
2
2
|
class DitaSectionGatherer
|
3
|
-
def initialize(version_control_system, view_updater)
|
3
|
+
def initialize(version_control_system, output_locations, view_updater)
|
4
4
|
@version_control_system = version_control_system
|
5
|
+
@output_locations = output_locations
|
5
6
|
@view_updater = view_updater
|
6
7
|
end
|
7
8
|
|
@@ -16,13 +17,14 @@ module Bookbinder
|
|
16
17
|
dita_section.ditamap_location,
|
17
18
|
dita_section.full_name,
|
18
19
|
dita_section.target_ref,
|
19
|
-
dita_section.directory
|
20
|
+
dita_section.directory,
|
21
|
+
output_locations)
|
20
22
|
end
|
21
23
|
end
|
22
24
|
|
23
25
|
private
|
24
26
|
|
25
|
-
attr_reader :version_control_system, :view_updater
|
27
|
+
attr_reader :version_control_system, :view_updater, :output_locations
|
26
28
|
|
27
29
|
end
|
28
30
|
end
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require_relative '
|
2
|
-
require_relative '
|
1
|
+
require_relative 'git_hub_repository_cloner'
|
2
|
+
require_relative 'local_filesystem_cloner'
|
3
3
|
|
4
4
|
module Bookbinder
|
5
5
|
module Ingest
|
@@ -11,9 +11,9 @@ module Bookbinder
|
|
11
11
|
|
12
12
|
def produce(source, user_repo_dir)
|
13
13
|
if user_repo_dir
|
14
|
-
|
14
|
+
LocalFilesystemCloner.new(logger, version_control_system, user_repo_dir)
|
15
15
|
else
|
16
|
-
|
16
|
+
GitHubRepositoryCloner.new(logger, version_control_system)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require_relative 'subnav'
|
1
|
+
require_relative 'values/subnav'
|
2
2
|
|
3
3
|
module Bookbinder
|
4
4
|
class LocalDitaPreprocessor
|
@@ -10,19 +10,14 @@ module Bookbinder
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def preprocess(dita_section,
|
13
|
-
html_from_dita_dir,
|
14
|
-
formatted_dita_dir,
|
15
|
-
workspace_dir,
|
16
13
|
subnavs_dir,
|
17
14
|
dita_subnav_template_path)
|
18
|
-
dita_converter.convert_to_html dita_section, write_to:
|
15
|
+
dita_converter.convert_to_html dita_section, write_to: dita_section.html_from_dita_section_dir
|
19
16
|
|
20
|
-
dita_formatter.format_html
|
17
|
+
dita_formatter.format_html dita_section.html_from_dita_section_dir, dita_section.formatted_section_dir
|
21
18
|
|
22
19
|
dita_subnav_template_text = local_file_system_accessor.read(dita_subnav_template_path)
|
23
|
-
tocjs_text = local_file_system_accessor.read(File.join
|
24
|
-
dita_section.directory,
|
25
|
-
'index.html')
|
20
|
+
tocjs_text = local_file_system_accessor.read(File.join dita_section.html_from_dita_section_dir, 'index.html')
|
26
21
|
|
27
22
|
json_props_location = File.join(dita_section.directory + '-props.json')
|
28
23
|
props_file_location = File.join(subnavs_dir, json_props_location)
|
@@ -39,11 +34,11 @@ module Bookbinder
|
|
39
34
|
filename="#{dita_section.directory}_subnav.erb")
|
40
35
|
|
41
36
|
local_file_system_accessor.copy_named_directory_with_path('images',
|
42
|
-
|
43
|
-
|
37
|
+
dita_section.html_from_dita_section_dir,
|
38
|
+
dita_section.section_source_for_site_generator)
|
44
39
|
|
45
|
-
local_file_system_accessor.copy_contents(
|
46
|
-
|
40
|
+
local_file_system_accessor.copy_contents(dita_section.formatted_section_dir,
|
41
|
+
dita_section.section_source_for_site_generator)
|
47
42
|
end
|
48
43
|
|
49
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require_relative '../bookbinder/dita_section'
|
1
|
+
require_relative '../bookbinder/values/dita_section'
|
2
2
|
|
3
3
|
module Bookbinder
|
4
4
|
class LocalDitaToHtmlConverter
|
@@ -21,11 +21,10 @@ module Bookbinder
|
|
21
21
|
"#{path_to_dita_ot_library}:" +
|
22
22
|
"#{path_to_dita_ot_library}/lib/:" +
|
23
23
|
"#{path_to_dita_ot_library}/lib/dost.jar"
|
24
|
-
out_dir = File.join write_to, dita_section.directory
|
25
24
|
command = "export CLASSPATH=#{classpath}; " +
|
26
25
|
"ant -f #{path_to_dita_ot_library} " +
|
27
26
|
"-Dbasedir='/' " +
|
28
|
-
"-Doutput.dir=#{
|
27
|
+
"-Doutput.dir=#{write_to} " +
|
29
28
|
"-Dtranstype='tocjs' " +
|
30
29
|
"-Ddita.temp.dir='/tmp/bookbinder_dita' " +
|
31
30
|
"-Dargs.input=#{absolute_path_to_ditamap} "
|
@@ -4,7 +4,6 @@ end
|
|
4
4
|
require_relative '../configuration_fetcher'
|
5
5
|
require_relative '../configuration_validator'
|
6
6
|
require_relative '../dita_html_to_middleman_formatter'
|
7
|
-
require_relative '../git_accessor'
|
8
7
|
require_relative '../html_document_manipulator'
|
9
8
|
require_relative '../ingest/cloner_factory'
|
10
9
|
require_relative '../local_dita_preprocessor'
|
@@ -20,8 +19,9 @@ module Bookbinder
|
|
20
19
|
class CommandRepository
|
21
20
|
include Enumerable
|
22
21
|
|
23
|
-
def initialize(logger)
|
22
|
+
def initialize(logger, version_control_system)
|
24
23
|
@logger = logger
|
24
|
+
@version_control_system = version_control_system
|
25
25
|
end
|
26
26
|
|
27
27
|
def each(&block)
|
@@ -37,7 +37,7 @@ module Bookbinder
|
|
37
37
|
|
38
38
|
private
|
39
39
|
|
40
|
-
attr_reader :logger
|
40
|
+
attr_reader :logger, :version_control_system
|
41
41
|
|
42
42
|
def list
|
43
43
|
standard_commands + flags
|
@@ -73,7 +73,7 @@ module Bookbinder
|
|
73
73
|
loader: config_loader,
|
74
74
|
config_filename: 'bookbinder.yml'
|
75
75
|
),
|
76
|
-
|
76
|
+
version_control_system,
|
77
77
|
local_file_system_accessor,
|
78
78
|
middleman_runner,
|
79
79
|
spider,
|
@@ -81,7 +81,7 @@ module Bookbinder
|
|
81
81
|
server_director,
|
82
82
|
File.absolute_path('.'),
|
83
83
|
dita_preprocessor,
|
84
|
-
Ingest::ClonerFactory.new(logger,
|
84
|
+
Ingest::ClonerFactory.new(logger, version_control_system)
|
85
85
|
)
|
86
86
|
end
|
87
87
|
|
@@ -112,7 +112,7 @@ module Bookbinder
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def middleman_runner
|
115
|
-
@middleman_runner ||= MiddlemanRunner.new(logger,
|
115
|
+
@middleman_runner ||= MiddlemanRunner.new(logger, version_control_system)
|
116
116
|
end
|
117
117
|
|
118
118
|
def configuration_fetcher
|
@@ -160,10 +160,6 @@ module Bookbinder
|
|
160
160
|
@html_document_manipulator ||= HtmlDocumentManipulator.new
|
161
161
|
end
|
162
162
|
|
163
|
-
def git_accessor
|
164
|
-
@git_accessor ||= GitAccessor.new
|
165
|
-
end
|
166
|
-
|
167
163
|
def local_file_system_accessor
|
168
164
|
@local_file_system_accessor ||= LocalFileSystemAccessor.new
|
169
165
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Bookbinder
|
2
|
+
DitaSection = Struct.new(:path_to_local_repo,
|
3
|
+
:ditamap_location,
|
4
|
+
:full_name,
|
5
|
+
:target_ref,
|
6
|
+
:directory,
|
7
|
+
:output_locations) do
|
8
|
+
def subnav
|
9
|
+
namespace = directory.gsub('/', '_')
|
10
|
+
template = "#{directory}_subnav"
|
11
|
+
{namespace => template}
|
12
|
+
end
|
13
|
+
|
14
|
+
def html_from_dita_section_dir
|
15
|
+
File.join(output_locations.html_from_dita_dir, directory)
|
16
|
+
end
|
17
|
+
|
18
|
+
def formatted_section_dir
|
19
|
+
File.join(output_locations.formatted_dir, directory)
|
20
|
+
end
|
21
|
+
|
22
|
+
def section_source_for_site_generator
|
23
|
+
File.join(output_locations.source_for_site_generator, directory)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookbindery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Grafton
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: install_bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2015-03-
|
18
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: fog-aws
|
@@ -309,13 +309,9 @@ files:
|
|
309
309
|
- lib/bookbinder/archive.rb
|
310
310
|
- lib/bookbinder/archive_menu_configuration.rb
|
311
311
|
- lib/bookbinder/artifact_namer.rb
|
312
|
-
- lib/bookbinder/blue_green_app.rb
|
313
312
|
- lib/bookbinder/book.rb
|
314
313
|
- lib/bookbinder/cf_command_runner.rb
|
315
|
-
- lib/bookbinder/cf_routes.rb
|
316
314
|
- lib/bookbinder/cli.rb
|
317
|
-
- lib/bookbinder/cli_error.rb
|
318
|
-
- lib/bookbinder/code_example.rb
|
319
315
|
- lib/bookbinder/code_example_reader.rb
|
320
316
|
- lib/bookbinder/colorizer.rb
|
321
317
|
- lib/bookbinder/command_runner.rb
|
@@ -341,15 +337,15 @@ files:
|
|
341
337
|
- lib/bookbinder/directory_helpers.rb
|
342
338
|
- lib/bookbinder/distributor.rb
|
343
339
|
- lib/bookbinder/dita_html_to_middleman_formatter.rb
|
344
|
-
- lib/bookbinder/dita_section.rb
|
345
340
|
- lib/bookbinder/dita_section_gatherer.rb
|
341
|
+
- lib/bookbinder/errors/cli_error.rb
|
346
342
|
- lib/bookbinder/git_accessor.rb
|
347
343
|
- lib/bookbinder/git_client.rb
|
348
344
|
- lib/bookbinder/git_hub_repository.rb
|
349
345
|
- lib/bookbinder/html_document_manipulator.rb
|
350
346
|
- lib/bookbinder/ingest/cloner_factory.rb
|
351
|
-
- lib/bookbinder/ingest/
|
352
|
-
- lib/bookbinder/ingest/
|
347
|
+
- lib/bookbinder/ingest/git_hub_repository_cloner.rb
|
348
|
+
- lib/bookbinder/ingest/local_filesystem_cloner.rb
|
353
349
|
- lib/bookbinder/local_dita_preprocessor.rb
|
354
350
|
- lib/bookbinder/local_dita_to_html_converter.rb
|
355
351
|
- lib/bookbinder/local_file_system_accessor.rb
|
@@ -360,7 +356,6 @@ files:
|
|
360
356
|
- lib/bookbinder/remote_yaml_credential_provider.rb
|
361
357
|
- lib/bookbinder/repositories/command_repository.rb
|
362
358
|
- lib/bookbinder/repositories/section_repository.rb
|
363
|
-
- lib/bookbinder/section.rb
|
364
359
|
- lib/bookbinder/server_director.rb
|
365
360
|
- lib/bookbinder/shell_out.rb
|
366
361
|
- lib/bookbinder/sheller.rb
|
@@ -368,11 +363,17 @@ files:
|
|
368
363
|
- lib/bookbinder/sitemap_generator.rb
|
369
364
|
- lib/bookbinder/spider.rb
|
370
365
|
- lib/bookbinder/stabilimentum.rb
|
371
|
-
- lib/bookbinder/subnav.rb
|
372
366
|
- lib/bookbinder/subnav_formatter.rb
|
373
367
|
- lib/bookbinder/terminal.rb
|
374
|
-
- lib/bookbinder/user_message.rb
|
375
368
|
- lib/bookbinder/user_message_presenter.rb
|
369
|
+
- lib/bookbinder/values/blue_green_app.rb
|
370
|
+
- lib/bookbinder/values/cf_routes.rb
|
371
|
+
- lib/bookbinder/values/code_example.rb
|
372
|
+
- lib/bookbinder/values/dita_section.rb
|
373
|
+
- lib/bookbinder/values/output_locations.rb
|
374
|
+
- lib/bookbinder/values/section.rb
|
375
|
+
- lib/bookbinder/values/subnav.rb
|
376
|
+
- lib/bookbinder/values/user_message.rb
|
376
377
|
- lib/bookbinder/yaml_loader.rb
|
377
378
|
- lib/bookbinder.rb
|
378
379
|
- template_app/app.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
module Bookbinder
|
2
|
-
DitaSection = Struct.new(:path_to_local_repo,
|
3
|
-
:ditamap_location,
|
4
|
-
:full_name,
|
5
|
-
:target_ref,
|
6
|
-
:directory) do
|
7
|
-
def subnav
|
8
|
-
namespace = directory.gsub('/', '_')
|
9
|
-
template = "#{directory}_subnav"
|
10
|
-
{namespace => template}
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|