liquidoc 0.12.0.pre.rc3 → 0.12.0.pre.rc4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 160405a6b6e7900676aac78ae58d8ad7279595d595dd87f7737153e06e59d371
4
- data.tar.gz: 539db1e029630ea0629d7478eee78b0f4a374e4ff7d6a9641d48f6ad1cda717e
3
+ metadata.gz: 6fb2c899ee28ead304240eb43845e3e2fe178d9853ef79c726a0ba6ce95c9214
4
+ data.tar.gz: b7f1363b8a9734d16ce2f874562e2abb2233cc1afe5844285060676471fd624b
5
5
  SHA512:
6
- metadata.gz: 6a94f45ae84a5b9052c5c570eff5c3e2558c4e9046e79b819a11a861bfb8669dbcd0ccaedba8263ce68c5c4ced767b467d607f75d5ce744046739d789a1eeada
7
- data.tar.gz: 9476eb3483d0976f6d0702b412b1661ef14d6a7d60f48cd003aa128451f4d23bb33b5fa4da3761a04f99db9a3cb7abd17cd3110436661ca78073e751b6a93615
6
+ metadata.gz: 2b93027fd037a3fec80d16848a55ac34bde034418584d436740d64ce696cc1732ce63e80914d3bf181b774020b346292f4bc50d40b747ac41a30a006d4c810d9
7
+ data.tar.gz: b9ff1ced8dc5cb9e269baad24dbfa6fe810a3876e77e4d89aa7c2fbc40561cdd894d7b9a374f21ad0727509f0c3268774952975dfe522e6f8b185497c6eca256
@@ -57,6 +57,7 @@ require 'highline'
57
57
  @search_index = false
58
58
  @search_index_dry = ''
59
59
  @safemode = true
60
+ @render_count = 0
60
61
 
61
62
  # Instantiate the main Logger object, which is always running
62
63
  @logger = Logger.new(STDOUT)
@@ -67,6 +68,7 @@ end
67
68
 
68
69
 
69
70
  FileUtils::mkdir_p("#{@build_dir}") unless File.exists?("#{@build_dir}")
71
+ FileUtils::rm_rf("#{@build_dir}/pre")
70
72
  FileUtils::mkdir_p("#{@build_dir}/pre") unless File.exists?("#{@build_dir}/pre")
71
73
 
72
74
 
@@ -1019,6 +1021,8 @@ def derive_backend type, out_file
1019
1021
  end
1020
1022
 
1021
1023
  def render_doc doc, build
1024
+ @render_count += 1
1025
+ @logger.info "### Build ##{@render_count}"
1022
1026
  case build.backend
1023
1027
  when "html5", "pdf"
1024
1028
  asciidocify(doc, build)
@@ -1090,18 +1094,19 @@ def generate_site doc, build
1090
1094
  attrs.merge!(build.attributes) if build.attributes
1091
1095
  attrs = {"asciidoctor" => {"attributes" => attrs} }
1092
1096
  attrs_yaml = attrs.to_yaml # Convert it all back to Yaml, as we're going to write a file to feed back to Jekyll
1093
- File.open("#{@build_dir}/pre/_attributes.yml", 'w') { |file| file.write(attrs_yaml) }
1094
- build.add_config_file("#{@build_dir}/pre/_attributes.yml")
1097
+ File.open("#{@build_dir}/pre/attributes_#{@render_count}.yml", 'w') { |file| file.write(attrs_yaml) }
1098
+ build.add_config_file("#{@build_dir}/pre/attributes_#{@render_count}.yml")
1095
1099
  config_list = build.prop_files_array.join(',') # flatten the Array back down for the CLI
1096
1100
  quiet = "--quiet" if @quiet || @explicit
1097
1101
  if build.props['arguments']
1098
- opts_args_file = "#{@build_dir}/pre/jekyll_opts_args.yml"
1102
+ opts_args_file = "#{@build_dir}/pre/jekyll_opts_args_#{@render_count}.yml"
1099
1103
  opts_args = build.props['arguments']
1100
1104
  File.open(opts_args_file, 'w') { |file|
1101
1105
  file.write(opts_args.to_yaml)}
1102
1106
  config_list << ",#{opts_args_file}"
1103
1107
  end
1104
1108
  base_args = "--config #{config_list}"
1109
+ base_args += " --trace" if @verbose
1105
1110
  command = "bundle exec jekyll build #{base_args} #{quiet}"
1106
1111
  if @search_index
1107
1112
  # TODO enable config-based admin api key ingest once config is dynamic
@@ -1,3 +1,3 @@
1
1
  module Liquidoc
2
- VERSION = "0.12.0-rc3"
2
+ VERSION = "0.12.0-rc4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquidoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.pre.rc3
4
+ version: 0.12.0.pre.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dominick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -177,7 +177,7 @@ files:
177
177
  - bin/liquidoc
178
178
  - lib/liquidoc.rb
179
179
  - lib/liquidoc/version.rb
180
- homepage: https://github.com/scalingdata/liquidoc
180
+ homepage: https://github.com/DocOps/liquidoc
181
181
  licenses:
182
182
  - MIT
183
183
  metadata: