Skip to content

Commit 42d37c3

Browse files
committed
Merge branch 'main' into rfc2119
2 parents 840c623 + d652174 commit 42d37c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1704
-1
lines changed

.github/workflows/preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deploy PR previews
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types:
66
- opened
77
- reopened
@@ -29,3 +29,4 @@ jobs:
2929
preview-branch: main
3030

3131

32+

pr-preview/pr-14/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/pr-preview/** linguist-vendored=true

pr-preview/pr-14/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_site
2+
.sass-cache
3+
.jekyll-cache
4+
.jekyll-metadata
5+
vendor
6+
Gemfile.lock

pr-preview/pr-14/404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

pr-preview/pr-14/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jsonc.org

pr-preview/pr-14/Gemfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
# gem "jekyll", "~> 4.3.4"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15+
gem "github-pages", "~> 232", group: :jekyll_plugins
16+
# If you have any plugins, put them here!
17+
group :jekyll_plugins do
18+
gem "jekyll-feed", "~> 0.12"
19+
gem "jekyll-remote-theme"
20+
end
21+
22+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
23+
# and associated library.
24+
platforms :mingw, :x64_mingw, :mswin, :jruby do
25+
gem "tzinfo", ">= 1", "< 3"
26+
gem "tzinfo-data"
27+
end
28+
29+
# Performance-booster for watching directories on Windows
30+
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
31+
32+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
33+
# do not have a Java counterpart.
34+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

pr-preview/pr-14/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Martin Leduc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

pr-preview/pr-14/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div align="left">
2+
<blockquote>So I bought JSON.org, put up a web page and sort of declared it's a standard.</blockquote>
3+
<sup>- <a href="https://www.youtube.com/watch?v=kc8BAR7SHJI&t=222s">Douglas Crockford</a> </sup>
4+
</div>
5+
<br />
6+
Well, now it's time to do the same thing with JSONC (JSON with Comments):
7+
8+
Introducing https://jsonc.org/.

pr-preview/pr-14/_config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
#
11+
# If you need help with YAML syntax, here are some quick references for you:
12+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13+
# https://learnxinyminutes.com/docs/yaml/
14+
#
15+
# Site settings
16+
# These are used to personalize your new site. If you look in the HTML files,
17+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18+
# You can create any custom variable you would like, and they will be accessible
19+
# in the templates via {{ site.myvariable }}.
20+
21+
title: JSONC
22+
23+
description: >- # this means to ignore newlines until "baseurl:"
24+
JSONC Specification
25+
baseurl: "" # the subpath of your site, e.g. /blog
26+
url: "https://jsonc.org" # the base hostname & protocol for your site, e.g. http://example.com
27+
github_username: DecimalTurn
28+
29+
# Syntax highlighting (We are using Highlight.js instead)
30+
highlighter: none
31+
32+
# Sass
33+
sass:
34+
sass_dir: _sass
35+
#style: compressed
36+
37+
include:
38+
- assets/css
39+
40+
# Build settings
41+
remote_theme: pages-themes/[email protected]
42+
plugins:
43+
- jekyll-feed
44+
- jekyll-remote-theme
45+
46+
# Exclude from processing.
47+
# The following items will not be processed, by default.
48+
# Any item listed under the `exclude:` key here will be automatically added to
49+
# the internal "default list".
50+
#
51+
# Excluded items can be processed by explicitly listing the directories or
52+
# their entries' file path in the `include:` list.
53+
#
54+
# exclude:
55+
# - .sass-cache/
56+
# - .jekyll-cache/
57+
# - gemfiles/
58+
# - Gemfile
59+
# - Gemfile.lock
60+
# - node_modules/
61+
# - vendor/bundle/
62+
# - vendor/cache/
63+
# - vendor/gems/
64+
# - vendor/ruby/
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="UTF-8">
5+
6+
{% seo %}
7+
<link rel="preconnect" href="https://fonts.gstatic.com">
8+
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
9+
<meta name="viewport" content="width=device-width, initial-scale=1">
10+
<meta name="theme-color" content="#157878">
11+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
12+
<link rel="shortcut icon" type="image/png" href="{{ '/favicon.png' | relative_url }}">
13+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
14+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/vs2015.min.css">
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
16+
{% include head-custom.html %}
17+
</head>
18+
<body>
19+
<a id="skip-to-content" href="#content">Skip to the content.</a>
20+
21+
<header class="page-header" role="banner">
22+
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
23+
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
24+
{% if site.github.is_project_page %}
25+
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
26+
{% endif %}
27+
{% if site.show_downloads %}
28+
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
29+
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
30+
{% endif %}
31+
</header>
32+
33+
<main id="content" class="main-content" role="main">
34+
{{ content }}
35+
36+
<footer class="site-footer">
37+
{% if site.github.is_project_page %}
38+
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
39+
{% endif %}
40+
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
41+
</footer>
42+
</main>
43+
</body>
44+
<script>hljs.highlightAll();</script>
45+
46+
<!-- Invalid syntax highlighting-->
47+
<script>
48+
function markInvalidNumbers(codeBlock) {
49+
var spans = codeBlock.querySelectorAll("span");
50+
51+
for (let i = 1; i < spans.length; i++) {
52+
if (
53+
spans[i].classList.contains("hljs-number") &&
54+
spans[i - 1].classList.contains("hljs-comment") &&
55+
(i - 2 >= 0 && spans[i - 2].classList.contains("hljs-number"))
56+
) {
57+
spans[i].classList.replace("hljs-number", "hljs-error");
58+
}
59+
}
60+
}
61+
62+
document.querySelectorAll("code.language-jsonc").forEach((codeBlock) => {
63+
const observer = new MutationObserver((mutations, obs) => {
64+
if (codeBlock.querySelector("span")) {
65+
markInvalidNumbers(codeBlock); // Run script when syntax highlighting is applied
66+
obs.disconnect(); // Stop observing once highlighting is complete
67+
}
68+
});
69+
70+
observer.observe(codeBlock, { childList: true });
71+
});
72+
</script>
73+
74+
75+
76+
</html>

0 commit comments

Comments
 (0)