giblish 0.8.2 → 1.0.0.rc2

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 +61 -0
  6. data/README.adoc +267 -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 +47 -29
  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 +168 -73
  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,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giblish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 1.0.0.rc2
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-01-30 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.0'
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.0'
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.1'
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.1'
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
@@ -94,6 +94,76 @@ 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: warning
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.2'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.2'
97
167
  - !ruby/object:Gem::Dependency
98
168
  name: asciidoctor
99
169
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +173,7 @@ dependencies:
103
173
  version: '2.0'
104
174
  - - ">="
105
175
  - !ruby/object:Gem::Version
106
- version: 2.0.16
176
+ version: 2.0.17
107
177
  type: :runtime
108
178
  prerelease: false
109
179
  version_requirements: !ruby/object:Gem::Requirement
@@ -113,21 +183,21 @@ dependencies:
113
183
  version: '2.0'
114
184
  - - ">="
115
185
  - !ruby/object:Gem::Version
116
- version: 2.0.16
186
+ version: 2.0.17
117
187
  - !ruby/object:Gem::Dependency
118
188
  name: asciidoctor-diagram
119
189
  requirement: !ruby/object:Gem::Requirement
120
190
  requirements:
121
191
  - - "~>"
122
192
  - !ruby/object:Gem::Version
123
- version: '2.1'
193
+ version: '2.2'
124
194
  type: :runtime
125
195
  prerelease: false
126
196
  version_requirements: !ruby/object:Gem::Requirement
127
197
  requirements:
128
198
  - - "~>"
129
199
  - !ruby/object:Gem::Version
130
- version: '2.1'
200
+ version: '2.2'
131
201
  - !ruby/object:Gem::Dependency
132
202
  name: asciidoctor-pdf
133
203
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +207,7 @@ dependencies:
137
207
  version: '1.6'
138
208
  - - ">="
139
209
  - !ruby/object:Gem::Version
140
- version: 1.6.0
210
+ version: 1.6.2
141
211
  type: :runtime
142
212
  prerelease: false
143
213
  version_requirements: !ruby/object:Gem::Requirement
@@ -147,7 +217,7 @@ dependencies:
147
217
  version: '1.6'
148
218
  - - ">="
149
219
  - !ruby/object:Gem::Version
150
- version: 1.6.0
220
+ version: 1.6.2
151
221
  - !ruby/object:Gem::Dependency
152
222
  name: git
153
223
  requirement: !ruby/object:Gem::Requirement
@@ -200,71 +270,96 @@ executables:
200
270
  extensions: []
201
271
  extra_rdoc_files: []
202
272
  files:
273
+ - ".github/workflows/unit_tests.yml"
203
274
  - ".gitignore"
204
- - ".rubocop.yml"
205
275
  - ".ruby-version"
206
- - ".travis.yml"
207
- - Changelog
208
- - Gemfile
276
+ - Changelog.adoc
209
277
  - LICENSE
210
278
  - 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
279
+ - docs/concepts/text_search.adoc
280
+ - docs/concepts/text_search_im/cgi-search_request.puml
281
+ - docs/concepts/text_search_im/cgi-search_request.svg
282
+ - docs/concepts/text_search_im/search_request.puml
283
+ - docs/concepts/text_search_im/search_request.svg
284
+ - docs/howtos/trigger_generation.adoc
285
+ - docs/howtos/trigger_generation_im/Render Documents.png
286
+ - docs/howtos/trigger_generation_im/View Documents.png
287
+ - docs/howtos/trigger_generation_im/deploy_with_hooks.graphml
288
+ - docs/howtos/trigger_generation_im/deploy_with_hooks.svg
289
+ - docs/howtos/trigger_generation_im/deploy_with_jenkins.graphml
290
+ - docs/howtos/trigger_generation_im/deploy_with_jenkins.svg
291
+ - docs/howtos/trigger_generation_im/docgen_github.puml
292
+ - docs/howtos/trigger_generation_im/giblish_deployment.graphml
293
+ - docs/howtos/trigger_generation_im/post-receive-example.sh
294
+ - docs/reference/box_flow_spec.adoc
295
+ - docs/reference/search_spec.adoc
243
296
  - exe/giblish
244
297
  - giblish.gemspec
245
- - lib/giblish-search.cgi
246
298
  - lib/giblish.rb
299
+ - lib/giblish/adocsrc_providers.rb
247
300
  - lib/giblish/application.rb
248
- - lib/giblish/buildgraph.rb
249
- - lib/giblish/buildindex.rb
250
301
  - 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
302
+ - lib/giblish/config_utils.rb
303
+ - lib/giblish/configurator.rb
304
+ - lib/giblish/conversion_info.rb
305
+ - lib/giblish/docattr_providers.rb
306
+ - lib/giblish/docid/docid.rb
307
+ - lib/giblish/github_trigger/webhook_manager.rb
308
+ - lib/giblish/gitrepos/checkoutmanager.rb
309
+ - lib/giblish/gitrepos/gititf.rb
310
+ - lib/giblish/gitrepos/gitsummary.erb
311
+ - lib/giblish/gitrepos/gitsummaryprovider.rb
312
+ - lib/giblish/gitrepos/history_pb.rb
313
+ - lib/giblish/indexbuilders/d3treegraph.rb
314
+ - lib/giblish/indexbuilders/depgraphbuilder.rb
315
+ - lib/giblish/indexbuilders/dotdigraphadoc.rb
316
+ - lib/giblish/indexbuilders/standard_index.erb
317
+ - lib/giblish/indexbuilders/subtree_indices.rb
318
+ - lib/giblish/indexbuilders/templates/circles.html.erb
319
+ - lib/giblish/indexbuilders/templates/flame.html.erb
320
+ - lib/giblish/indexbuilders/templates/tree.html.erb
321
+ - lib/giblish/indexbuilders/templates/treemap.html.erb
322
+ - lib/giblish/indexbuilders/verbatimtree.rb
257
323
  - lib/giblish/pathtree.rb
324
+ - lib/giblish/resourcepaths.rb
325
+ - lib/giblish/search/expand_adoc.rb
326
+ - lib/giblish/search/headingindexer.rb
327
+ - lib/giblish/search/request_manager.rb
328
+ - lib/giblish/search/searchquery.rb
329
+ - lib/giblish/search/textsearcher.rb
330
+ - lib/giblish/subtreeinfobuilder.rb
331
+ - lib/giblish/treeconverter.rb
258
332
  - lib/giblish/utils.rb
259
333
  - lib/giblish/version.rb
260
- - scripts/hooks/post-receive
261
- - scripts/publish_html.sh
334
+ - scripts/hooks/post-receive.example
335
+ - scripts/hooks/post-update.example
336
+ - scripts/resources/css/adoc-colony.css
337
+ - scripts/resources/css/giblish-serif.css
262
338
  - scripts/resources/css/giblish.css
339
+ - scripts/resources/fonts/Ubuntu-B.ttf
340
+ - scripts/resources/fonts/Ubuntu-BI.ttf
341
+ - scripts/resources/fonts/Ubuntu-R.ttf
342
+ - scripts/resources/fonts/Ubuntu-RI.ttf
343
+ - scripts/resources/fonts/mplus1p-regular-fallback.ttf
344
+ - scripts/resources/images/giblish_logo.png
345
+ - scripts/resources/images/giblish_logo.svg
346
+ - scripts/resources/themes/giblish.yml
347
+ - scripts/wserv_development.rb
348
+ - web_apps/cgi_search/gibsearch.rb
349
+ - web_apps/gh_webhook_trigger/config.ru
350
+ - web_apps/gh_webhook_trigger/gh_webhook_trigger.rb
351
+ - web_apps/gh_webhook_trigger/public/dummy.txt
352
+ - web_apps/sinatra_search/config.ru
353
+ - web_apps/sinatra_search/public/dummy.txt
354
+ - web_apps/sinatra_search/sinatra_search.rb
355
+ - web_apps/sinatra_search/tmp/restart.txt
263
356
  homepage: https://github.com/rillbert/giblish
264
357
  licenses:
265
358
  - MIT
266
- metadata: {}
267
- post_install_message:
359
+ metadata:
360
+ bug_tracker_uri: https://github.com/rillbert/giblish/issues
361
+ source_code_uri: https://github.com/rillbert/giblish
362
+ post_install_message:
268
363
  rdoc_options: []
269
364
  require_paths:
270
365
  - lib
@@ -272,15 +367,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
367
  requirements:
273
368
  - - ">="
274
369
  - !ruby/object:Gem::Version
275
- version: '2.7'
370
+ version: '0'
276
371
  required_rubygems_version: !ruby/object:Gem::Requirement
277
372
  requirements:
278
- - - ">="
373
+ - - ">"
279
374
  - !ruby/object:Gem::Version
280
- version: '0'
375
+ version: 1.3.1
281
376
  requirements: []
282
- rubygems_version: 3.1.6
283
- signing_key:
377
+ rubygems_version: 3.2.32
378
+ signing_key:
284
379
  specification_version: 4
285
380
  summary: A tool for publishing asciidoc docs stored in git repos
286
381
  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
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - ruby
data/Changelog DELETED
@@ -1,16 +0,0 @@
1
- = giblish changelog
2
-
3
- == v0.7.0
4
-
5
- * *Breaking change* include the entire path in the -i and -j options
6
- * *Breaking change* change the meaning of the -w flag (and rename the long form to --web-path)
7
- and add the -mp flag.
8
- This was done as a means to remove the hard-coded arguments to the search box html so that one
9
- can generate html docs to a destination that is not the same as the one where they are deployed
10
- on a web server.
11
- * take the idprefix and idseparator into account when indexing sections for text search
12
- * Add the font awesome css as link to search box and use the magnifying glass icon
13
- * update README file
14
- * handle the case where a 'index.adoc' file exists by making the basename configurable using the
15
- '--index-basename' flag.
16
- * update the dependencies to the latest asciidoctor-pdf release
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in giblish.gemspec
4
- gemspec
data/README.adoc DELETED
@@ -1 +0,0 @@
1
- ./docs/README.adoc