Skip to content

Commit e799d78

Browse files
Merge branch 'json-schema-org:main' into started
2 parents 17c73ba + 233f41c commit e799d78

File tree

6 files changed

+111
-23
lines changed

6 files changed

+111
-23
lines changed

.github/workflows/stale.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0' # Runs every Sunday at midnight
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v8
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
# Message to comment on stale issues.
20+
stale-issue-message: |
21+
Hello! :wave:
22+
23+
This issue has been automatically marked as stale due to inactivity :sleeping:
24+
25+
It will be closed in 180 days if no further activity occurs. To keep it active, please add a comment with more details.
26+
27+
There can be many reasons why a specific issue has no activity. The most probable cause is a lack of time, not a lack of interest.
28+
29+
Let us figure out together how to push this issue forward. Connect with us through our slack channel : https://json-schema.org/slack
30+
31+
Thank you for your patience :heart:
32+
33+
# Message to comment on stale pull requests.
34+
stale-pr-message: |
35+
Hello! :wave:
36+
37+
This pull request has been automatically marked as stale due to inactivity :sleeping:
38+
39+
It will be closed in 180 days if no further activity occurs. To keep it active, please add a comment with more details.
40+
41+
There can be many reasons why a specific pull request has no activity. The most probable cause is a lack of time, not a lack of interest.
42+
43+
Let us figure out together how to push this pull request forward. Connect with us through our slack channel : https://json-schema.org/slack
44+
45+
Thank you for your patience :heart:
46+
47+
# Message to comment on issues that are about to be closed.
48+
close-issue-message: 'This issue did not get any activity in the past 180 days and thus has been closed. Please check if the main branch has fixed it. Please, create a new issue if the issue is not fixed.'
49+
50+
# Message to comment on pull requests that are about to be closed.
51+
close-pr-message: 'This pull request did not get any activity in the past 180 days and thus has been closed.'
52+
53+
# Labels to add to stale issues and pull requests.
54+
stale-issue-label: 'Status: Stale'
55+
stale-pr-label: 'Status: Stale'
56+
57+
# Number of days of inactivity before an issue/PR is marked as stale.
58+
days-before-stale: 30
59+
60+
# Number of days of inactivity before an issue/PR is closed.
61+
days-before-close: 180
62+
63+
# Remove the stale label when the issue/PR is updated.
64+
remove-stale-when-updated: true
65+
66+
# Exempt labels to ignore when checking for stale issues/PRs.
67+
exempt-pr-labels: 'Status: On Hold,Status: Blocked'
68+
exempt-issue-labels: 'Status: On Hold,Status: Blocked'

components/Sidebar.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export const DocsNav = ({
373373
onClick={handleClickGet}
374374
>
375375
<div className='flex items-center align-middle'>
376-
<img src={`${learn_icon}`} alt='eye icon' className='mr-2' />
376+
<img src={`${learn_icon}`} alt='compass icon' className='mr-2' />
377377
<SegmentHeadline label='Getting Started' />
378378
</div>
379379
<svg
@@ -428,13 +428,13 @@ export const DocsNav = ({
428428
</div>
429429
{/* Reference */}
430430

431-
<div className='mb-2 bg-slate-200 dark:bg-slate-900 p-2 rounded border border-white shadow-lg lg:border-hidden '>
431+
<div className='mb-2 bg-slate-200 dark:bg-slate-900 p-2 rounded border border-white lg:border-hidden '>
432432
<div
433433
className='flex justify-between w-full items-center'
434434
onClick={handleClickReference}
435435
>
436436
<div className='flex items-center align-middle'>
437-
<img src={`${reference_icon}`} alt='eye icon' className='mr-2' />
437+
<img src={`${reference_icon}`} alt='book icon' className='mr-2' />
438438
<SegmentHeadline label='Reference' />
439439
</div>
440440
<svg
@@ -617,7 +617,7 @@ export const DocsNav = ({
617617
onClick={handleClickSpec}
618618
>
619619
<div className='flex items-center align-middle'>
620-
<img src={`${spec_icon}`} alt='eye icon' className='mr-2' />
620+
<img src={`${spec_icon}`} alt='clipboard icon' className='mr-2' />
621621
<SegmentHeadline label='Specification' />
622622
</div>
623623
<svg

components/StyledMarkdown.tsx

+35-15
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export function TableOfContentMarkdown({
530530
return (
531531
<a
532532
href={`#${slug}`}
533-
className='block cursor-pointer mb-3 max-sm:text-sm text-slate-600 dark:text-slate-300 leading-4 ml-[-0.40rem] font-bold'
533+
className='block cursor-pointer mb-3 max-sm:text-sm text-slate-600 dark:text-slate-300 leading-4 ml-[-0.40rem] font-medium'
534534
>
535535
<span className='mr-1 text-blue-400 text-[1.5em]'>
536536
&#9679;
@@ -540,21 +540,41 @@ export function TableOfContentMarkdown({
540540
);
541541
},
542542
},
543-
h2: {
544-
component: ({ children }) => {
545-
const slug = slugifyMarkdownHeadline(children);
546-
return (
547-
<a
548-
href={`#${slug}`}
549-
className='block cursor-pointer mb-3 max-sm:text-sm text-slate-600 dark:text-slate-300 leading-4 -ml-[9px] max-sm:-ml-[7px] font-bold'
550-
>
551-
<span className='mr-1 text-blue-400 text-[1em]'>&#9679;</span>
552-
{children}
553-
</a>
554-
);
555-
},
556-
},
543+
557544
/* eslint-disable */
545+
h2:
546+
depth === 0
547+
? {
548+
component: ({ children }) => {
549+
const slug = slugifyMarkdownHeadline(children);
550+
return (
551+
<a
552+
href={`#${slug}`}
553+
className='block cursor-pointer mb-3 text-slate-600 dark:text-slate-300 leading-4 font-medium'
554+
>
555+
{children}
556+
</a>
557+
);
558+
},
559+
}
560+
: depth >= 2
561+
? {
562+
component: ({ children }) => {
563+
const slug = slugifyMarkdownHeadline(children);
564+
return (
565+
<a
566+
href={`#${slug}`}
567+
className='block cursor-pointer mb-3 max-sm:text-sm text-slate-600 dark:text-slate-300 leading-4 -ml-[9px] max-sm:-ml-[7px] font-medium'
568+
>
569+
<span className='mr-1 text-blue-400 text-[1em]'>
570+
&#9679;
571+
</span>
572+
{children}
573+
</a>
574+
);
575+
},
576+
}
577+
: { component: () => null },
558578
h3:
559579
depth >= 3
560580
? {

data/validator-libraries-modern.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,12 @@
476476
last-updated: "2022-08-31"
477477
- name: JSON Schema Validator
478478
url: https://www.jsonschemavalidator.net/
479-
date-draft: [2019-09]
479+
date-draft: [2020-12, 2019-09]
480480
draft: [7, 6, 4, 3]
481481
notes: server-side validation
482482
built-on:
483483
name: Json.NET Schema
484-
last-updated: "2022-08-31"
484+
last-updated: "2024-05-29"
485485
- name: jsonschema.dev
486486
url: https://jsonschema.dev
487487
draft: [7]

pages/blog/posts/[slug].page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function StaticMarkdownPage({
9292
},
9393
)}
9494
</div>
95-
<div className='pt-4 pr-4 border-r border-slate-100 hidden lg:block w-full'>
95+
<div className='pt-4 pr-4 hidden lg:block w-full'>
9696
<div className='uppercase text-xs text-slate-400 mb-4'>
9797
on this page
9898
</div>

pages/blog/posts/understanding-lexical-dynamic-scopes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,6 @@ Schema](https://www.oreilly.com/library/view/unifying-business-data/978109814499
407407
You can also connect with me on
408408
[LinkedIn](https://www.linkedin.com/in/jviotti/).
409409

410-
***
410+
411411

412412
*Image by [Christina Morillo](https://www.pexels.com/@divinetechygirl/) from [Pexels](https://www.pexels.com/photo/man-standing-infront-of-white-board-1181345/).*

0 commit comments

Comments
 (0)