acos_jekyll_openapi_helper 1.4.4 → 1.4.5
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/bin/start.rb +3 -3
- data/lib/acos_jekyll_openapi.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e14565e520d910b4fb71d19d57b32315fdf2ea1592a932fe98c12c8c0e0362fe
|
|
4
|
+
data.tar.gz: 87e9f0168e68274c41387e1148fa9e60371ff10e15300ca05fde77f2534b5a16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2b31b4d1e8c4fb37cccaa3924fb1a15341b39bed0d71c9996cb4396f6f151071e188f0d56635d6ddb708669ff2f59aa00e36d8176c3ffcd8686aa06122fc0e8
|
|
7
|
+
data.tar.gz: e094bbbcef3b62db93109913245944d0940dc8e8689f5ea3a3a20d52fa5d14d8a269a2169ac5086ab1b98e13fe59c668b04b9ee363d1b3ea9191f1783f5d82f7
|
data/bin/start.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require 'acos_jekyll_openapi'
|
|
4
4
|
AcosOpenApiHelper.generate_pages_from_data(
|
|
5
|
-
"/mnt/c/
|
|
6
|
-
"/mnt/c/
|
|
7
|
-
"/mnt/c/
|
|
5
|
+
"/mnt/c/Kode/github/Acos.Integration.Documentation/_data/swagger",
|
|
6
|
+
"/mnt/c/Kode/github/Acos.Integration.Documentation",
|
|
7
|
+
"/mnt/c/Kode/github/Acos.Integration.Documentation/pages/swagger"
|
|
8
8
|
)
|
data/lib/acos_jekyll_openapi.rb
CHANGED
|
@@ -56,7 +56,7 @@ class AcosOpenApiHelper::PageEngine
|
|
|
56
56
|
puts "Open API version %s in .json file" % (@data.key?("openapi") ? @data['openapi'] : @data['swagger'])
|
|
57
57
|
docTitle = (@data["info"]["title"])
|
|
58
58
|
_components = @data.key?("components") ? "components" :"definitions"
|
|
59
|
-
docFile = docTitle.gsub(
|
|
59
|
+
docFile = docTitle.gsub(/\+|\s+|{|}|\//, "_").downcase
|
|
60
60
|
puts "Document title : %s" % docTitle
|
|
61
61
|
sidebar = "%s_sidebar" % docFile
|
|
62
62
|
menu = AcosOpenApiHelper::SidebarMenu.new()
|
|
@@ -114,7 +114,8 @@ class AcosOpenApiHelper::SidebarMenu
|
|
|
114
114
|
|
|
115
115
|
def write (output_path, name, menuTitle)
|
|
116
116
|
#no spaces in filename ofr sidebar.yml
|
|
117
|
-
name = name.gsub(/\s+|{|}
|
|
117
|
+
name = name.gsub(/\s+|{|}|\/|\+/, "_").downcase
|
|
118
|
+
puts "Name of file %s" % [name]
|
|
118
119
|
_standardLines = [
|
|
119
120
|
"# THIS PAGE IS GENERATED. ANY CHANGES TO PAGE WILL POTENTIALLY BE OVERWRITTEN.",
|
|
120
121
|
"# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting.",
|
|
@@ -170,7 +171,7 @@ class AcosOpenApiHelper::PermalinkGenerator
|
|
|
170
171
|
def self.create(path, swaggerfile)
|
|
171
172
|
@swaggerfileBase = File.basename(swaggerfile, ".*")
|
|
172
173
|
@permalinkBase = "%s_%s" % [@swaggerfileBase, path]
|
|
173
|
-
@permalink = @permalinkBase.gsub(
|
|
174
|
+
@permalink = @permalinkBase.gsub(/\+|\s+|{|}|\//, "_").downcase
|
|
174
175
|
return @permalink
|
|
175
176
|
end
|
|
176
177
|
|
|
@@ -183,7 +184,7 @@ end
|
|
|
183
184
|
class AcosOpenApiHelper::FileNameGenerator
|
|
184
185
|
def self.create(path, docFile)
|
|
185
186
|
@docFileBase = "%s_%s" % [docFile, path]
|
|
186
|
-
@docFileName = @docFileBase.gsub(
|
|
187
|
+
@docFileName = @docFileBase.gsub(/\+|\s+|{|}|\//, "_").downcase
|
|
187
188
|
return @docFileName
|
|
188
189
|
end
|
|
189
190
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acos_jekyll_openapi_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Acos AS
|
|
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: '0'
|
|
53
53
|
requirements: []
|
|
54
|
-
rubygems_version: 3.
|
|
54
|
+
rubygems_version: 3.1.2
|
|
55
55
|
signing_key:
|
|
56
56
|
specification_version: 4
|
|
57
57
|
summary: Open API json file helper
|