jekyll-x3d 1.0.2 → 1.0.4
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/{LICENSE.txt → LICENSE.md} +1 -1
- data/README.md +5 -2
- data/build/merge-development.sh +6 -0
- data/build/release.js +45 -0
- data/lib/jekyll-x3d/version.rb +1 -1
- data/lib/jekyll-x3d.rb +4 -2
- data/package-lock.json +118 -0
- data/package.json +8 -1
- metadata +11 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 255b0cc64172904c6392c5f9101292ad4c03ff034749c66df41a75c0836d95de
|
|
4
|
+
data.tar.gz: 45ed69d10f46cb46289d1e486006c4cff552057cd50c3405cdda45dd8a28dbab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d130bf53cb579231326f41ccd9d16b1e81ef02cdb853e8ebd0b8140ac0fcef48a3fc9c369a5539731c74914b12257c1a79f9f4cf22bd483b8c94fc9b4f0b4730
|
|
7
|
+
data.tar.gz: a2c501330d635dd95362efebc2305c1ca9468906bacac2ad600988ff1a3ec0ffca0e3594a358950756dd541013d1471e789a588ac4734a29cd727c08e0876248
|
data/{LICENSE.txt → LICENSE.md}
RENAMED
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# jekyll-x3d
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://badge.fury.io/rb/jekyll-x3d)
|
|
4
|
+
|
|
5
|
+
Adds support for X3D syntax highlighting to Jekyll. Enables automatic highlighting of X3D XML code blocks in documentation and blog posts, making 3D scene descriptions easier to read and understand. Supports syntax highlighting for embedded script and shader nodes.
|
|
4
6
|
|
|
5
7
|
## Usage
|
|
6
8
|
|
|
@@ -25,7 +27,7 @@ Now you can highlight your source code in Markdown as X3D:
|
|
|
25
27
|
|
|
26
28
|
``````md
|
|
27
29
|
```x3d
|
|
28
|
-
<Script>
|
|
30
|
+
<Script DEF='Example'>
|
|
29
31
|
<
|
|
42
45
|
* [X_ITE X3D Browser](https://create3000.github.io/x_ite/)
|
|
43
46
|
* [web3d.org](https://www.web3d.org)
|
data/build/release.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { glob } = require ("glob");
|
|
5
|
+
const { sh, systemSync } = require ("shell-tools");
|
|
6
|
+
|
|
7
|
+
function main ()
|
|
8
|
+
{
|
|
9
|
+
// version
|
|
10
|
+
const
|
|
11
|
+
name = sh (`node -p "require('./package.json').name"`) .trim (),
|
|
12
|
+
file = glob .sync (`**/version.rb`) [0],
|
|
13
|
+
current = sh (`cat`, file) .match (/VERSION\s*=\s*"(.*?)"/) [1];
|
|
14
|
+
|
|
15
|
+
if (sh (`npm pkg get version | sed 's/"//g'`) .trim () === current)
|
|
16
|
+
systemSync (`npm version patch --no-git-tag-version --force`);
|
|
17
|
+
|
|
18
|
+
const
|
|
19
|
+
updated = sh (`npm pkg get version | sed 's/"//g'`) .trim (),
|
|
20
|
+
series = updated .replace (/\.[^\.]+$/, "");
|
|
21
|
+
|
|
22
|
+
systemSync (`sed -i "" -E "s|"${current}"|"${updated}"|g" ${file}`);
|
|
23
|
+
systemSync (`sed -i "" -E "s|'~> [0-9.]+'|'~> ${series}'|g" ./README.md`);
|
|
24
|
+
|
|
25
|
+
const version = sh (`npm pkg get version | sed 's/"//g'`) .trim ();
|
|
26
|
+
|
|
27
|
+
console .log (`Current version ${current}`);
|
|
28
|
+
console .log (`New version ${version}`);
|
|
29
|
+
|
|
30
|
+
// commit
|
|
31
|
+
systemSync (`git add -A`);
|
|
32
|
+
systemSync (`git commit -am 'Published version ${version}'`);
|
|
33
|
+
systemSync (`git push origin`);
|
|
34
|
+
systemSync (`npm run merge:development`);
|
|
35
|
+
|
|
36
|
+
// tag
|
|
37
|
+
systemSync (`git tag ${version}`);
|
|
38
|
+
systemSync (`git push origin --tags`);
|
|
39
|
+
|
|
40
|
+
// gem
|
|
41
|
+
systemSync (`npm run build`);
|
|
42
|
+
systemSync (`gem push ./*.gem`);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
main ();
|
data/lib/jekyll-x3d/version.rb
CHANGED
data/lib/jekyll-x3d.rb
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
require_relative "jekyll-x3d/version"
|
|
5
5
|
require "jekyll"
|
|
6
6
|
|
|
7
|
+
# Taken from
|
|
8
|
+
# https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/lexers/xml.rb
|
|
9
|
+
|
|
7
10
|
# This "hook" is executed right before the site"s pages are rendered
|
|
8
11
|
Jekyll::Hooks.register :site, :pre_render do |site|
|
|
9
12
|
# puts "Adding X3D Markdown Lexer ..."
|
|
@@ -15,13 +18,12 @@ Jekyll::Hooks.register :site, :pre_render do |site|
|
|
|
15
18
|
desc "X3D XML Encoding"
|
|
16
19
|
|
|
17
20
|
tag "x3d"
|
|
18
|
-
aliases "x3d"
|
|
19
21
|
filenames "*.x3d"
|
|
20
22
|
|
|
21
23
|
mimetypes "model/x3d+xml"
|
|
22
24
|
|
|
23
25
|
def self.detect?(text)
|
|
24
|
-
return
|
|
26
|
+
return true if text.doctype?(/X3D/)
|
|
25
27
|
return true if text =~ /<X3D\b/
|
|
26
28
|
end
|
|
27
29
|
|
data/package-lock.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jekyll-x3d",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "jekyll-x3d",
|
|
9
|
+
"version": "1.0.4",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"glob": "^13.0.6",
|
|
13
|
+
"shell-tools": "^1.1.9"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"node_modules/balanced-match": {
|
|
17
|
+
"version": "4.0.4",
|
|
18
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
|
19
|
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
20
|
+
"dev": true,
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": "18 || 20 || >=22"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"node_modules/brace-expansion": {
|
|
27
|
+
"version": "5.0.6",
|
|
28
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
|
|
29
|
+
"integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
|
|
30
|
+
"dev": true,
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"balanced-match": "^4.0.2"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": "18 || 20 || >=22"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"node_modules/glob": {
|
|
40
|
+
"version": "13.0.6",
|
|
41
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
|
|
42
|
+
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
|
|
43
|
+
"dev": true,
|
|
44
|
+
"license": "BlueOak-1.0.0",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"minimatch": "^10.2.2",
|
|
47
|
+
"minipass": "^7.1.3",
|
|
48
|
+
"path-scurry": "^2.0.2"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": "18 || 20 || >=22"
|
|
52
|
+
},
|
|
53
|
+
"funding": {
|
|
54
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"node_modules/lru-cache": {
|
|
58
|
+
"version": "11.5.1",
|
|
59
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.1.tgz",
|
|
60
|
+
"integrity": "sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==",
|
|
61
|
+
"dev": true,
|
|
62
|
+
"license": "BlueOak-1.0.0",
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": "20 || >=22"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"node_modules/minimatch": {
|
|
68
|
+
"version": "10.2.5",
|
|
69
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
|
|
70
|
+
"integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
|
|
71
|
+
"dev": true,
|
|
72
|
+
"license": "BlueOak-1.0.0",
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"brace-expansion": "^5.0.5"
|
|
75
|
+
},
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": "18 || 20 || >=22"
|
|
78
|
+
},
|
|
79
|
+
"funding": {
|
|
80
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"node_modules/minipass": {
|
|
84
|
+
"version": "7.1.3",
|
|
85
|
+
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
|
|
86
|
+
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
|
|
87
|
+
"dev": true,
|
|
88
|
+
"license": "BlueOak-1.0.0",
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">=16 || 14 >=14.17"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"node_modules/path-scurry": {
|
|
94
|
+
"version": "2.0.2",
|
|
95
|
+
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
|
|
96
|
+
"integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
|
|
97
|
+
"dev": true,
|
|
98
|
+
"license": "BlueOak-1.0.0",
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"lru-cache": "^11.0.0",
|
|
101
|
+
"minipass": "^7.1.2"
|
|
102
|
+
},
|
|
103
|
+
"engines": {
|
|
104
|
+
"node": "18 || 20 || >=22"
|
|
105
|
+
},
|
|
106
|
+
"funding": {
|
|
107
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"node_modules/shell-tools": {
|
|
111
|
+
"version": "1.1.9",
|
|
112
|
+
"resolved": "https://registry.npmjs.org/shell-tools/-/shell-tools-1.1.9.tgz",
|
|
113
|
+
"integrity": "sha512-acF/7DsEeUPd9WmniNJ6Ev6vEYjQnjpIMW1686krf/tOT30fqJnWqoUURo9B4A6CvNZ7ojMRgAqFF0O8xqrvlQ==",
|
|
114
|
+
"dev": true,
|
|
115
|
+
"license": "GPL-3.0"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
data/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jekyll-x3d",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"license": "MIT",
|
|
3
5
|
"scripts": {
|
|
4
6
|
"prebuild": "rm -f ./*.gem",
|
|
5
7
|
"build": "gem build jekyll-x3d.gemspec",
|
|
6
8
|
"try": "sudo gem install ./*.gem",
|
|
7
|
-
"
|
|
9
|
+
"release": "node build/release.js",
|
|
10
|
+
"merge:development": "sh build/merge-development.sh"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"glob": "^13.0.6",
|
|
14
|
+
"shell-tools": "^1.1.9"
|
|
8
15
|
}
|
|
9
16
|
}
|
metadata
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-x3d
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Holger Seelig
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
|
-
description: Adds support for X3D syntax highlighting to Jekyll.
|
|
14
|
-
|
|
12
|
+
description: Adds support for X3D syntax highlighting to Jekyll. Enables automatic
|
|
13
|
+
highlighting of X3D XML code blocks in documentation and blog posts, making 3D scene
|
|
14
|
+
descriptions easier to read and understand. Supports syntax highlighting for embedded
|
|
15
|
+
script and shader nodes.
|
|
15
16
|
email:
|
|
16
17
|
- holger.seelig@gmail.com
|
|
17
18
|
executables: []
|
|
18
19
|
extensions: []
|
|
19
20
|
extra_rdoc_files: []
|
|
20
21
|
files:
|
|
21
|
-
- LICENSE.
|
|
22
|
+
- LICENSE.md
|
|
22
23
|
- README.md
|
|
24
|
+
- build/merge-development.sh
|
|
25
|
+
- build/release.js
|
|
23
26
|
- lib/jekyll-x3d.rb
|
|
24
27
|
- lib/jekyll-x3d/version.rb
|
|
28
|
+
- package-lock.json
|
|
25
29
|
- package.json
|
|
26
30
|
homepage: https://github.com/create3000/jekyll-x3d/blob/main/README.md
|
|
27
31
|
licenses:
|
|
@@ -30,7 +34,6 @@ metadata:
|
|
|
30
34
|
allowed_push_host: https://rubygems.org
|
|
31
35
|
homepage_uri: https://github.com/create3000/jekyll-x3d/blob/main/README.md
|
|
32
36
|
source_code_uri: https://github.com/create3000/jekyll-x3d/
|
|
33
|
-
post_install_message:
|
|
34
37
|
rdoc_options: []
|
|
35
38
|
require_paths:
|
|
36
39
|
- lib
|
|
@@ -45,8 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
45
48
|
- !ruby/object:Gem::Version
|
|
46
49
|
version: '0'
|
|
47
50
|
requirements: []
|
|
48
|
-
rubygems_version:
|
|
49
|
-
signing_key:
|
|
51
|
+
rubygems_version: 4.0.23
|
|
50
52
|
specification_version: 4
|
|
51
53
|
summary: X3D Syntax Highlighter
|
|
52
54
|
test_files: []
|