jekyll-kroki 0.2.0 → 0.2.1
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/README.md +2 -2
- data/lib/jekyll/kroki/version.rb +1 -1
- data/lib/jekyll/kroki.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22cd7bfae1fa5a37266559c800563db4352a1f7323a65ce15a8058ddae6a7e55
|
|
4
|
+
data.tar.gz: d76013092f50d163ab83efde344705ec02e8252043d5cd90eadd68903aec472e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eeeeb8d251bcdbaa85429189d11c5ab3aae798b34a28fc4b7742fb195e5ba50af9d450f33dc14db629dc901b5a4e632da77d48abb599ed97b16ae2aa80cd5fee
|
|
7
|
+
data.tar.gz: 1d2bf0763f3551576b8e1d0f47b4aa8d62f14b01fe25698bd7ad1d043f4dad1a0c723f7ec607db4cae11bb4c4183be4018ae62b56a7803e8622ad83ac57aa12d
|
data/README.md
CHANGED
|
@@ -40,8 +40,8 @@ The site remains truly static as the SVG is directly embedded in the HTML files
|
|
|
40
40
|
You can specify the URL of the Kroki instance to use in the Jekyll `_config.yml` file:
|
|
41
41
|
|
|
42
42
|
```yaml
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
kroki:
|
|
44
|
+
url: "https://my-kroki.server"
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
This is useful if you want to run a Kroki instance locally or your organisation maintains its own private Kroki server. `jekyll-kroki` will use the public Kroki instance https://kroki.io by default if a URL is not specified.
|
data/lib/jekyll/kroki/version.rb
CHANGED
data/lib/jekyll/kroki.rb
CHANGED
|
@@ -130,9 +130,9 @@ module Jekyll
|
|
|
130
130
|
# @param The Jekyll site configuration
|
|
131
131
|
# @return [URI::HTTP] The URL of the Kroki instance
|
|
132
132
|
def kroki_url(config)
|
|
133
|
-
if config.key?("
|
|
134
|
-
url = config["
|
|
135
|
-
raise TypeError, "'
|
|
133
|
+
if config.key?("kroki") && config["kroki"].key?("url")
|
|
134
|
+
url = config["kroki"]["url"]
|
|
135
|
+
raise TypeError, "'url' is not a valid HTTP URL" unless URI.parse(url).is_a?(URI::HTTP)
|
|
136
136
|
|
|
137
137
|
URI(url)
|
|
138
138
|
else
|