giblish 0.8.2 → 2.0.0.pre.alpha1

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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/unit_tests.yml +30 -0
  3. data/.gitignore +7 -3
  4. data/.ruby-version +1 -1
  5. data/Changelog.adoc +59 -0
  6. data/README.adoc +261 -0
  7. data/docs/concepts/text_search.adoc +213 -0
  8. data/docs/concepts/text_search_im/cgi-search_request.puml +35 -0
  9. data/docs/concepts/text_search_im/cgi-search_request.svg +397 -0
  10. data/docs/concepts/text_search_im/search_request.puml +40 -0
  11. data/docs/concepts/text_search_im/search_request.svg +408 -0
  12. data/docs/howtos/trigger_generation.adoc +180 -0
  13. data/docs/{setup_server_assets → howtos/trigger_generation_im}/Render Documents.png +0 -0
  14. data/docs/{setup_server_assets → howtos/trigger_generation_im}/View Documents.png +0 -0
  15. data/docs/{setup_server_assets → howtos/trigger_generation_im}/deploy_with_hooks.graphml +0 -0
  16. data/docs/{setup_server_assets → howtos/trigger_generation_im}/deploy_with_hooks.svg +0 -0
  17. data/docs/{setup_server_assets → howtos/trigger_generation_im}/deploy_with_jenkins.graphml +0 -0
  18. data/docs/{setup_server_assets → howtos/trigger_generation_im}/deploy_with_jenkins.svg +0 -0
  19. data/docs/howtos/trigger_generation_im/docgen_github.puml +51 -0
  20. data/docs/{setup_server_assets → howtos/trigger_generation_im}/giblish_deployment.graphml +0 -0
  21. data/docs/howtos/trigger_generation_im/post-receive-example.sh +50 -0
  22. data/docs/reference/box_flow_spec.adoc +22 -0
  23. data/docs/reference/search_spec.adoc +185 -0
  24. data/giblish.gemspec +54 -32
  25. data/lib/giblish/adocsrc_providers.rb +23 -0
  26. data/lib/giblish/application.rb +214 -41
  27. data/lib/giblish/cmdline.rb +273 -259
  28. data/lib/giblish/config_utils.rb +41 -0
  29. data/lib/giblish/configurator.rb +163 -0
  30. data/lib/giblish/conversion_info.rb +120 -0
  31. data/lib/giblish/docattr_providers.rb +125 -0
  32. data/lib/giblish/docid/docid.rb +181 -0
  33. data/lib/giblish/github_trigger/webhook_manager.rb +64 -0
  34. data/lib/giblish/gitrepos/checkoutmanager.rb +124 -0
  35. data/lib/giblish/{gititf.rb → gitrepos/gititf.rb} +30 -4
  36. data/lib/giblish/gitrepos/gitsummary.erb +61 -0
  37. data/lib/giblish/gitrepos/gitsummaryprovider.rb +78 -0
  38. data/lib/giblish/gitrepos/history_pb.rb +41 -0
  39. data/lib/giblish/indexbuilders/d3treegraph.rb +88 -0
  40. data/lib/giblish/indexbuilders/depgraphbuilder.rb +109 -0
  41. data/lib/giblish/indexbuilders/dotdigraphadoc.rb +174 -0
  42. data/lib/giblish/indexbuilders/standard_index.erb +10 -0
  43. data/lib/giblish/indexbuilders/subtree_indices.rb +132 -0
  44. data/lib/giblish/indexbuilders/templates/circles.html.erb +111 -0
  45. data/lib/giblish/indexbuilders/templates/flame.html.erb +61 -0
  46. data/lib/giblish/indexbuilders/templates/tree.html.erb +366 -0
  47. data/lib/giblish/indexbuilders/templates/treemap.html.erb +127 -0
  48. data/lib/giblish/indexbuilders/verbatimtree.rb +94 -0
  49. data/lib/giblish/pathtree.rb +473 -74
  50. data/lib/giblish/resourcepaths.rb +150 -0
  51. data/lib/giblish/search/expand_adoc.rb +55 -0
  52. data/lib/giblish/search/headingindexer.rb +312 -0
  53. data/lib/giblish/search/request_manager.rb +110 -0
  54. data/lib/giblish/search/searchquery.rb +68 -0
  55. data/lib/giblish/search/textsearcher.rb +349 -0
  56. data/lib/giblish/subtreeinfobuilder.rb +77 -0
  57. data/lib/giblish/treeconverter.rb +272 -0
  58. data/lib/giblish/utils.rb +142 -294
  59. data/lib/giblish/version.rb +1 -1
  60. data/lib/giblish.rb +10 -7
  61. data/scripts/hooks/post-receive.example +66 -0
  62. data/{docgen/scripts/githook_examples → scripts/hooks}/post-update.example +0 -0
  63. data/{docgen → scripts}/resources/css/adoc-colony.css +0 -0
  64. data/scripts/resources/css/giblish-serif.css +419 -0
  65. data/scripts/resources/css/giblish.css +1979 -419
  66. data/{docgen → scripts}/resources/fonts/Ubuntu-B.ttf +0 -0
  67. data/{docgen → scripts}/resources/fonts/Ubuntu-BI.ttf +0 -0
  68. data/{docgen → scripts}/resources/fonts/Ubuntu-R.ttf +0 -0
  69. data/{docgen → scripts}/resources/fonts/Ubuntu-RI.ttf +0 -0
  70. data/{docgen → scripts}/resources/fonts/mplus1p-regular-fallback.ttf +0 -0
  71. data/{docgen → scripts}/resources/images/giblish_logo.png +0 -0
  72. data/{docgen → scripts}/resources/images/giblish_logo.svg +0 -0
  73. data/{docgen → scripts}/resources/themes/giblish.yml +0 -0
  74. data/scripts/wserv_development.rb +32 -0
  75. data/web_apps/cgi_search/gibsearch.rb +43 -0
  76. data/web_apps/gh_webhook_trigger/config.ru +2 -0
  77. data/web_apps/gh_webhook_trigger/gh_webhook_trigger.rb +73 -0
  78. data/web_apps/gh_webhook_trigger/public/dummy.txt +3 -0
  79. data/web_apps/sinatra_search/config.ru +2 -0
  80. data/web_apps/sinatra_search/public/dummy.txt +3 -0
  81. data/web_apps/sinatra_search/sinatra_search.rb +34 -0
  82. data/web_apps/sinatra_search/tmp/restart.txt +0 -0
  83. metadata +188 -85
  84. data/.rubocop.yml +0 -7
  85. data/.travis.yml +0 -3
  86. data/Changelog +0 -16
  87. data/Gemfile +0 -4
  88. data/README.adoc +0 -1
  89. data/Rakefile +0 -41
  90. data/bin/console +0 -14
  91. data/bin/setup +0 -8
  92. data/data/testdocs/malformed/no_header.adoc +0 -5
  93. data/data/testdocs/toplevel.adoc +0 -19
  94. data/data/testdocs/wellformed/adorned_purpose.adoc +0 -17
  95. data/data/testdocs/wellformed/docidtest/docid_1.adoc +0 -24
  96. data/data/testdocs/wellformed/docidtest/docid_2.adoc +0 -8
  97. data/data/testdocs/wellformed/simple.adoc +0 -14
  98. data/data/testdocs/wellformed/source_highlighting/highlight_source.adoc +0 -38
  99. data/docgen/resources/css/giblish.css +0 -1979
  100. data/docgen/scripts/Jenkinsfile +0 -18
  101. data/docgen/scripts/gen_adoc_org.sh +0 -58
  102. data/docs/README.adoc +0 -387
  103. data/docs/setup_server.adoc +0 -202
  104. data/lib/giblish/buildgraph.rb +0 -216
  105. data/lib/giblish/buildindex.rb +0 -459
  106. data/lib/giblish/core.rb +0 -451
  107. data/lib/giblish/docconverter.rb +0 -308
  108. data/lib/giblish/docid.rb +0 -180
  109. data/lib/giblish/docinfo.rb +0 -75
  110. data/lib/giblish/indexheadings.rb +0 -251
  111. data/lib/giblish-search.cgi +0 -459
  112. data/scripts/hooks/post-receive +0 -57
  113. data/scripts/publish_html.sh +0 -99
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Starts up a simple web server for local testing of generated documents.
4
+ #
5
+ # A typical dev flow:
6
+ #
7
+ # 1. Create your html docs using giblish
8
+ # 2. If you want to enable text search, copy or symlink the `gibsearch.rb` script
9
+ # from the giblish gem to the correct location under the target tree.
10
+ # 3. Run this script to kick-off a web server that serves your html docs.
11
+
12
+ require "webrick"
13
+ require "webrick/cgi"
14
+
15
+ # the root directory for the web server
16
+ web_root = "#{__dir__}/html_docs"
17
+
18
+ # the port the web server listens to
19
+ port = 8000
20
+
21
+ puts "Trying to start a WEBrick instance at port #{port} serving files from #{web_root}..."
22
+ server = WEBrick::HTTPServer.new(
23
+ Port: port,
24
+ DocumentRoot: File.expand_path(web_root),
25
+ Logger: WEBrick::Log.new("webrick.log", WEBrick::Log::DEBUG)
26
+ )
27
+
28
+ puts "WEBrick instance now listening to localhost:#{port}"
29
+ trap "INT" do
30
+ server.shutdown
31
+ end
32
+ server.start
@@ -0,0 +1,43 @@
1
+ #!/home/andersr/.rbenv/shims/ruby
2
+ ## /usr/bin/env ruby
3
+ # replace the line above with an absolute path to a ruby interpreter
4
+ # if you don't want the system one.
5
+
6
+ require "cgi"
7
+ begin
8
+ # used when developping this script
9
+ require_relative "../gh_giblish/lib/giblish/search/request_manager"
10
+ rescue LoadError
11
+ # used in deployment
12
+ require "giblish"
13
+ end
14
+
15
+ # Provide the mappings of URL paths that apply to the specific deployment
16
+ # setup.
17
+ #
18
+ # The below example maps the URI www.exaple.com/ to the local directory
19
+ # /home/andersr/repos/gendocs on the web server.
20
+ URL_PATH_MAPPINGS = {
21
+ "/" => __dir__.to_s
22
+ }
23
+
24
+ # This is run for each CGI request.
25
+ #
26
+ # Exits with 0 for success, 1 for failure
27
+ if __FILE__ == $PROGRAM_NAME
28
+ $stdout.sync = true
29
+
30
+ begin
31
+ cgi = CGI.new
32
+
33
+ # assemble the html response for a given search request
34
+ print cgi.header
35
+ print Giblish::RequestManager.new(URL_PATH_MAPPINGS).response(cgi)
36
+ 0
37
+ rescue => e
38
+ print e.message
39
+ print "<br>"
40
+ print e.backtrace
41
+ 1
42
+ end
43
+ end
@@ -0,0 +1,2 @@
1
+ require "./gh_webhook_trigger"
2
+ run Sinatra::Application
@@ -0,0 +1,73 @@
1
+ # This app will trigger a document generation from a 'push' github webhook
2
+ require "sinatra"
3
+ require "json"
4
+ require "pathname"
5
+ require "logger"
6
+
7
+ begin
8
+ # used during development/testing
9
+ require_relative "../../lib/giblish/github_trigger/webhook_manager"
10
+ rescue LoadError
11
+ # used in production
12
+ require "giblish"
13
+ end
14
+
15
+ # setup a specific logger for requests
16
+ accesslog_path = Pathname.new(__dir__).join("log/access.log")
17
+ accesslog_path.dirname.mkpath
18
+ access_logger = ::Logger.new(accesslog_path.to_s)
19
+
20
+ # instantiate the one-and-only web-hook-manager
21
+ DSTDIR = "/var/www/rillbert_se/html/public/giblish_examples/giblish"
22
+ clone_dir = Dir.mktmpdir
23
+
24
+ # setup the doc generation once-and-for-all
25
+ doc_generator = Giblish::GenerateFromRefs.new(
26
+ "https://github.com/rillbert/giblish.git",
27
+ /main/,
28
+ clone_dir,
29
+ "giblish",
30
+ %W[-l debug -j data/],
31
+ ".",
32
+ DSTDIR,
33
+ access_logger
34
+ )
35
+
36
+ post "/" do
37
+ gh_data = JSON.parse(request.body.read, symbolize_names: true)
38
+ # access_logger.debug { "Calling webhook manager with data: #{gh_data}" }
39
+ doc_generator.docs_from_gh_webhook(gh_data)
40
+ end
41
+
42
+ get "/" do
43
+ ""
44
+ end
45
+
46
+ # class GenerateDocsFromGitHubHook < Sinatra::Base
47
+ # ::Logger.class_eval { alias_method :write, :<< }
48
+
49
+ # accesslog_path = Pathname.new(__dir__).join("../log/access.log")
50
+ # accesslog_path.dirname.mkpath
51
+ # access_logger = ::Logger.new(accesslog_path.to_s)
52
+
53
+ # errorlog_path = Pathname.new(__dir__).join("log/error.log")
54
+ # errorlog_path.dirname.mkpath
55
+ # error_logger = ::File.new(errorlog_path.to_s, "a+")
56
+ # error_logger.sync = true
57
+
58
+ # configure do
59
+ # use ::Rack::CommonLogger, access_logger
60
+ # end
61
+
62
+ # before {
63
+ # env["rack.errors"] = error_logger
64
+ # }
65
+
66
+ # # instantiate the one-and-only web-hook-manager
67
+ # wm = WebhookManager.new(/svg/, "https://github.com/rillbert/giblish.git", Dir.mktmpdir, "giblish", "docs", dstdir, error_logger)
68
+
69
+ # post "/payload" do
70
+ # gh_data = JSON.parse(request.body.read, symbolized_names: true)
71
+ # wm.run(gh_data)
72
+ # end
73
+ # end
@@ -0,0 +1,3 @@
1
+ This file only exists to make git create the 'public' dir in which it resides.
2
+
3
+ The 'public' dir, in turn, is needed when deploying the app to a passenger instance.
@@ -0,0 +1,2 @@
1
+ require "./sinatra_search"
2
+ run Sinatra::Application
@@ -0,0 +1,3 @@
1
+ This file only exists to make git create the 'public' dir in which it resides.
2
+
3
+ The 'public' dir, in turn, is needed when deploying the app to a passenger instance.
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "sinatra"
4
+ begin
5
+ # used when developping this script
6
+ require_relative "../gh_giblish/lib/giblish/search/request_manager"
7
+ rescue LoadError
8
+ # used in deployment
9
+ require "giblish"
10
+ end
11
+
12
+ # Provide the mappings of URI paths that apply to the specific deployment
13
+ # setup.
14
+ #
15
+ # The below example maps the URL www.example.com/ to the local directory
16
+ # /var/www/html/mydocs on the web server.
17
+ URL_PATH_MAPPINGS = {
18
+ "/" => "/var/www/html/mydocs"
19
+ }
20
+
21
+ # instantiate the one-and-only manager for search requests.
22
+ #
23
+ # It implements caching of search data internally and this will be
24
+ # wasted if a new instance were created for each search request.
25
+ request_mgr = Giblish::RequestManager.new(URL_PATH_MAPPINGS)
26
+
27
+ get "/gibsearch" do
28
+ # This call encapsulates the search and returns an html page
29
+ # with the search result.
30
+ #
31
+ # The search parameters of this request can be fetched from
32
+ # rack's environment.
33
+ request_mgr.response(request.env["rack.request.query_hash"])
34
+ end
File without changes
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giblish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 2.0.0.pre.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anders Rillbert
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-09 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '5.16'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '5.16'
27
27
  - !ruby/object:Gem::Dependency
28
- name: minitest
28
+ name: standard
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '1.16'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '1.16'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '11.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '11.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: oga
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.15'
61
+ version: '3.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.15'
68
+ version: '3.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thor
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.20.3
75
+ version: '1.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.20.3
82
+ version: '1.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: asciidoctor-mathematical
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,90 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.3.5
97
+ - !ruby/object:Gem::Dependency
98
+ name: sinatra
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: thin
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.8'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.8'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rack
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '='
130
+ - !ruby/object:Gem::Version
131
+ version: 2.2.3
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '='
137
+ - !ruby/object:Gem::Version
138
+ version: 2.2.3
139
+ - !ruby/object:Gem::Dependency
140
+ name: rack-test
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '='
144
+ - !ruby/object:Gem::Version
145
+ version: '1.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: '1.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: matrix
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.4'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.4'
167
+ - !ruby/object:Gem::Dependency
168
+ name: warning
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.2'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.2'
97
181
  - !ruby/object:Gem::Dependency
98
182
  name: asciidoctor
99
183
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +187,7 @@ dependencies:
103
187
  version: '2.0'
104
188
  - - ">="
105
189
  - !ruby/object:Gem::Version
106
- version: 2.0.16
190
+ version: 2.0.17
107
191
  type: :runtime
108
192
  prerelease: false
109
193
  version_requirements: !ruby/object:Gem::Requirement
@@ -113,69 +197,63 @@ dependencies:
113
197
  version: '2.0'
114
198
  - - ">="
115
199
  - !ruby/object:Gem::Version
116
- version: 2.0.16
200
+ version: 2.0.17
117
201
  - !ruby/object:Gem::Dependency
118
202
  name: asciidoctor-diagram
119
203
  requirement: !ruby/object:Gem::Requirement
120
204
  requirements:
121
205
  - - "~>"
122
206
  - !ruby/object:Gem::Version
123
- version: '2.1'
207
+ version: '2.2'
124
208
  type: :runtime
125
209
  prerelease: false
126
210
  version_requirements: !ruby/object:Gem::Requirement
127
211
  requirements:
128
212
  - - "~>"
129
213
  - !ruby/object:Gem::Version
130
- version: '2.1'
214
+ version: '2.2'
131
215
  - !ruby/object:Gem::Dependency
132
216
  name: asciidoctor-pdf
133
217
  requirement: !ruby/object:Gem::Requirement
134
218
  requirements:
135
219
  - - "~>"
136
220
  - !ruby/object:Gem::Version
137
- version: '1.6'
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- version: 1.6.0
221
+ version: '2.3'
141
222
  type: :runtime
142
223
  prerelease: false
143
224
  version_requirements: !ruby/object:Gem::Requirement
144
225
  requirements:
145
226
  - - "~>"
146
227
  - !ruby/object:Gem::Version
147
- version: '1.6'
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: 1.6.0
228
+ version: '2.3'
151
229
  - !ruby/object:Gem::Dependency
152
230
  name: git
153
231
  requirement: !ruby/object:Gem::Requirement
154
232
  requirements:
155
233
  - - "~>"
156
234
  - !ruby/object:Gem::Version
157
- version: '1.9'
235
+ version: '1.12'
158
236
  type: :runtime
159
237
  prerelease: false
160
238
  version_requirements: !ruby/object:Gem::Requirement
161
239
  requirements:
162
240
  - - "~>"
163
241
  - !ruby/object:Gem::Version
164
- version: '1.9'
242
+ version: '1.12'
165
243
  - !ruby/object:Gem::Dependency
166
244
  name: rouge
167
245
  requirement: !ruby/object:Gem::Requirement
168
246
  requirements:
169
247
  - - "~>"
170
248
  - !ruby/object:Gem::Version
171
- version: '3.0'
249
+ version: '3.30'
172
250
  type: :runtime
173
251
  prerelease: false
174
252
  version_requirements: !ruby/object:Gem::Requirement
175
253
  requirements:
176
254
  - - "~>"
177
255
  - !ruby/object:Gem::Version
178
- version: '3.0'
256
+ version: '3.30'
179
257
  - !ruby/object:Gem::Dependency
180
258
  name: prawn-svg
181
259
  requirement: !ruby/object:Gem::Requirement
@@ -200,71 +278,96 @@ executables:
200
278
  extensions: []
201
279
  extra_rdoc_files: []
202
280
  files:
281
+ - ".github/workflows/unit_tests.yml"
203
282
  - ".gitignore"
204
- - ".rubocop.yml"
205
283
  - ".ruby-version"
206
- - ".travis.yml"
207
- - Changelog
208
- - Gemfile
284
+ - Changelog.adoc
209
285
  - LICENSE
210
286
  - README.adoc
211
- - Rakefile
212
- - bin/console
213
- - bin/setup
214
- - data/testdocs/malformed/no_header.adoc
215
- - data/testdocs/toplevel.adoc
216
- - data/testdocs/wellformed/adorned_purpose.adoc
217
- - data/testdocs/wellformed/docidtest/docid_1.adoc
218
- - data/testdocs/wellformed/docidtest/docid_2.adoc
219
- - data/testdocs/wellformed/simple.adoc
220
- - data/testdocs/wellformed/source_highlighting/highlight_source.adoc
221
- - docgen/resources/css/adoc-colony.css
222
- - docgen/resources/css/giblish.css
223
- - docgen/resources/fonts/Ubuntu-B.ttf
224
- - docgen/resources/fonts/Ubuntu-BI.ttf
225
- - docgen/resources/fonts/Ubuntu-R.ttf
226
- - docgen/resources/fonts/Ubuntu-RI.ttf
227
- - docgen/resources/fonts/mplus1p-regular-fallback.ttf
228
- - docgen/resources/images/giblish_logo.png
229
- - docgen/resources/images/giblish_logo.svg
230
- - docgen/resources/themes/giblish.yml
231
- - docgen/scripts/Jenkinsfile
232
- - docgen/scripts/gen_adoc_org.sh
233
- - docgen/scripts/githook_examples/post-update.example
234
- - docs/README.adoc
235
- - docs/setup_server.adoc
236
- - docs/setup_server_assets/Render Documents.png
237
- - docs/setup_server_assets/View Documents.png
238
- - docs/setup_server_assets/deploy_with_hooks.graphml
239
- - docs/setup_server_assets/deploy_with_hooks.svg
240
- - docs/setup_server_assets/deploy_with_jenkins.graphml
241
- - docs/setup_server_assets/deploy_with_jenkins.svg
242
- - docs/setup_server_assets/giblish_deployment.graphml
287
+ - docs/concepts/text_search.adoc
288
+ - docs/concepts/text_search_im/cgi-search_request.puml
289
+ - docs/concepts/text_search_im/cgi-search_request.svg
290
+ - docs/concepts/text_search_im/search_request.puml
291
+ - docs/concepts/text_search_im/search_request.svg
292
+ - docs/howtos/trigger_generation.adoc
293
+ - docs/howtos/trigger_generation_im/Render Documents.png
294
+ - docs/howtos/trigger_generation_im/View Documents.png
295
+ - docs/howtos/trigger_generation_im/deploy_with_hooks.graphml
296
+ - docs/howtos/trigger_generation_im/deploy_with_hooks.svg
297
+ - docs/howtos/trigger_generation_im/deploy_with_jenkins.graphml
298
+ - docs/howtos/trigger_generation_im/deploy_with_jenkins.svg
299
+ - docs/howtos/trigger_generation_im/docgen_github.puml
300
+ - docs/howtos/trigger_generation_im/giblish_deployment.graphml
301
+ - docs/howtos/trigger_generation_im/post-receive-example.sh
302
+ - docs/reference/box_flow_spec.adoc
303
+ - docs/reference/search_spec.adoc
243
304
  - exe/giblish
244
305
  - giblish.gemspec
245
- - lib/giblish-search.cgi
246
306
  - lib/giblish.rb
307
+ - lib/giblish/adocsrc_providers.rb
247
308
  - lib/giblish/application.rb
248
- - lib/giblish/buildgraph.rb
249
- - lib/giblish/buildindex.rb
250
309
  - lib/giblish/cmdline.rb
251
- - lib/giblish/core.rb
252
- - lib/giblish/docconverter.rb
253
- - lib/giblish/docid.rb
254
- - lib/giblish/docinfo.rb
255
- - lib/giblish/gititf.rb
256
- - lib/giblish/indexheadings.rb
310
+ - lib/giblish/config_utils.rb
311
+ - lib/giblish/configurator.rb
312
+ - lib/giblish/conversion_info.rb
313
+ - lib/giblish/docattr_providers.rb
314
+ - lib/giblish/docid/docid.rb
315
+ - lib/giblish/github_trigger/webhook_manager.rb
316
+ - lib/giblish/gitrepos/checkoutmanager.rb
317
+ - lib/giblish/gitrepos/gititf.rb
318
+ - lib/giblish/gitrepos/gitsummary.erb
319
+ - lib/giblish/gitrepos/gitsummaryprovider.rb
320
+ - lib/giblish/gitrepos/history_pb.rb
321
+ - lib/giblish/indexbuilders/d3treegraph.rb
322
+ - lib/giblish/indexbuilders/depgraphbuilder.rb
323
+ - lib/giblish/indexbuilders/dotdigraphadoc.rb
324
+ - lib/giblish/indexbuilders/standard_index.erb
325
+ - lib/giblish/indexbuilders/subtree_indices.rb
326
+ - lib/giblish/indexbuilders/templates/circles.html.erb
327
+ - lib/giblish/indexbuilders/templates/flame.html.erb
328
+ - lib/giblish/indexbuilders/templates/tree.html.erb
329
+ - lib/giblish/indexbuilders/templates/treemap.html.erb
330
+ - lib/giblish/indexbuilders/verbatimtree.rb
257
331
  - lib/giblish/pathtree.rb
332
+ - lib/giblish/resourcepaths.rb
333
+ - lib/giblish/search/expand_adoc.rb
334
+ - lib/giblish/search/headingindexer.rb
335
+ - lib/giblish/search/request_manager.rb
336
+ - lib/giblish/search/searchquery.rb
337
+ - lib/giblish/search/textsearcher.rb
338
+ - lib/giblish/subtreeinfobuilder.rb
339
+ - lib/giblish/treeconverter.rb
258
340
  - lib/giblish/utils.rb
259
341
  - lib/giblish/version.rb
260
- - scripts/hooks/post-receive
261
- - scripts/publish_html.sh
342
+ - scripts/hooks/post-receive.example
343
+ - scripts/hooks/post-update.example
344
+ - scripts/resources/css/adoc-colony.css
345
+ - scripts/resources/css/giblish-serif.css
262
346
  - scripts/resources/css/giblish.css
347
+ - scripts/resources/fonts/Ubuntu-B.ttf
348
+ - scripts/resources/fonts/Ubuntu-BI.ttf
349
+ - scripts/resources/fonts/Ubuntu-R.ttf
350
+ - scripts/resources/fonts/Ubuntu-RI.ttf
351
+ - scripts/resources/fonts/mplus1p-regular-fallback.ttf
352
+ - scripts/resources/images/giblish_logo.png
353
+ - scripts/resources/images/giblish_logo.svg
354
+ - scripts/resources/themes/giblish.yml
355
+ - scripts/wserv_development.rb
356
+ - web_apps/cgi_search/gibsearch.rb
357
+ - web_apps/gh_webhook_trigger/config.ru
358
+ - web_apps/gh_webhook_trigger/gh_webhook_trigger.rb
359
+ - web_apps/gh_webhook_trigger/public/dummy.txt
360
+ - web_apps/sinatra_search/config.ru
361
+ - web_apps/sinatra_search/public/dummy.txt
362
+ - web_apps/sinatra_search/sinatra_search.rb
363
+ - web_apps/sinatra_search/tmp/restart.txt
263
364
  homepage: https://github.com/rillbert/giblish
264
365
  licenses:
265
366
  - MIT
266
- metadata: {}
267
- post_install_message:
367
+ metadata:
368
+ bug_tracker_uri: https://github.com/rillbert/giblish/issues
369
+ source_code_uri: https://github.com/rillbert/giblish
370
+ post_install_message:
268
371
  rdoc_options: []
269
372
  require_paths:
270
373
  - lib
@@ -272,15 +375,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
375
  requirements:
273
376
  - - ">="
274
377
  - !ruby/object:Gem::Version
275
- version: '2.7'
378
+ version: '0'
276
379
  required_rubygems_version: !ruby/object:Gem::Requirement
277
380
  requirements:
278
- - - ">="
381
+ - - ">"
279
382
  - !ruby/object:Gem::Version
280
- version: '0'
383
+ version: 1.3.1
281
384
  requirements: []
282
- rubygems_version: 3.1.6
283
- signing_key:
385
+ rubygems_version: 3.3.7
386
+ signing_key:
284
387
  specification_version: 4
285
388
  summary: A tool for publishing asciidoc docs stored in git repos
286
389
  test_files: []
data/.rubocop.yml DELETED
@@ -1,7 +0,0 @@
1
-
2
- AllCops:
3
- TargetRubyVersion: 2.7
4
-
5
- Style/StringLiterals:
6
- EnforcedStyle: double_quotes
7
- Enabled: true