Skip to content

Commit 8bbb491

Browse files
authored
Merge branch 'json-schema-org:main' into sidebar-sticky
2 parents ab281bb + 5114356 commit 8bbb491

File tree

83 files changed

+2357
-1339
lines changed

Some content is hidden

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

83 files changed

+2357
-1339
lines changed

.github/workflows/build-preview.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-yarn-
3737
38-
- name: Cache Next Build
39-
uses: actions/cache@v4
40-
with:
41-
path: |
42-
${{ steps.yarn-cache-dir-path.outputs.dir }}
43-
${{ github.workspace }}/.next/cache
44-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
45-
restore-keys: |
46-
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
47-
4838
- name: Setup Node.js
4939
uses: actions/setup-node@v4
5040
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: yarn run test:coverage:all
6565

6666
- name: Upload coverage report to Codecov
67-
uses: codecov/codecov-action@v4.6.0
67+
uses: codecov/codecov-action@v5.1.2
6868
with:
6969
token: ${{ secrets.CODECOV_TOKEN }}
7070
name: ${{ env.CODECOV_UNIQUE_NAME }}

.github/workflows/issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Auto Label Issue
13-
uses: Renato66/[email protected].0
13+
uses: Renato66/[email protected].1
1414
with:
1515
repo-token: ${{ secrets.GITHUB_TOKEN }}
1616
ignore-comments: true

.github/workflows/production-deployment.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ jobs:
2626
id: yarn-cache-dir-path
2727
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
2828

29-
- name: Cache Next Build
30-
uses: actions/cache@v4
31-
with:
32-
path: |
33-
${{ steps.yarn-cache-dir-path.outputs.dir }}
34-
${{ github.workspace }}/.next/cache
35-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
36-
restore-keys: |
37-
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
38-
3929
- name: Setup Node.js
4030
uses: actions/setup-node@v4
4131
with:

CONTRIBUTING-docs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ After you have been assigned to an issue, fork the [json-schema-org/website](htt
6464

6565
To propose modifications to our documentation that do not have an issue in the [documentation board](https://github.com/orgs/json-schema-org/projects/16), you can [create a GitHub issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue#creating-an-issue-from-a-repository) and use the *Documentation* template to describe the changes. After that, you can decide whether you want to work on the changes yourself or let someone else claim the issue. If you decide to work on the issue, assign it to yourself and commit the changes to a new branch.
6666

67+
## Add metadata to newly created markdown files
68+
Metadata helps organize content and maintain consistency across all pages in the documentation. It also provides key information about the file, such as its title, author, and the last updated date.
69+
70+
When contributing to the documentation, it is essential to include metadata in every new markdown file. Metadata is critical for successfully building and rendering the file locally. Without it, the file may fail to render correctly or cause errors in the documentation system.
71+
72+
### Example of metadata in a new markdown file
73+
Every new `.md` file should start with a YAML front matter block. Here's an example:
74+
---
75+
title: "Your Page Title"
76+
section: "docs" # Can be used to categorize the content
77+
date: "YYYY-MM-DD" # Optional: Date when the page was created or last updated
78+
author: "Your Name" # Optional: Your name if you're the author
79+
tags: ["tag1", "tag2"] # Optional: Tags to categorize the page
80+
---
81+
To add the front matter metadata, copy and paste the example above at the top of your .md file and replace the details with the information of your document.
82+
6783
## Create a Pull Request
6884

6985
To submit your work to review by the community, open a draft pull request to the `main` upstream branch, and add the issue your pull request solves. Add @json-schema-org/docs-team as a reviewer of your pull request, and let us know in the #documentation Slack channel your pull request is ready for review.

INSTALLATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This guide provides step-by-step instructions for installing the JSON Schema Web
44

55
## Table of Contents
66

7-
1. [Setting Up the Project](#setting-up-the-project)
7+
1. [Setting Up the Project](#setting-up-project)
88
- [Requirements](#requirements)
99
- [Cloning the Repository](#cloning-the-repository)
1010
- [Setting Up Environment Variables](#setting-up-environment-variables)

README.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
</p>
2121

2222
# 👋 Welcome to the JSON Schema website
23-
This repository contains the sources of JSON Schema website:
23+
This repository contains the source code of the JSON Schema website:
2424

25-
* It's powered by Next.js,
26-
* It uses Tailwind CSS framework,
27-
* It's build and deployed with Netlify.
25+
* Powered by Next.js,
26+
* Uses the Tailwind CSS framework,
27+
* Built and deployed with Netlify.
2828

29-
## Setting up Project
29+
## Setting up the Project
3030

31-
Please refer to the [INSTALLATION.md](./INSTALLATION.md) file for instructions on how to set up the project on your local machine.
31+
Please refer to [INSTALLATION.md](./INSTALLATION.md) for instructions on how to set up the project for local development.
3232

3333
## Project structure
3434

@@ -37,41 +37,42 @@ This repository has the following structure:
3737
<!-- If you make any changes in the project structure, remember to update it. -->
3838

3939
```text
40-
├── .github # Definitions of GitHub workflows, pull request and issue templates
40+
├── .github # Definitions of GitHub workflows, pull request, and issue templates
4141
├── components # Various generic components such as "Button", "Figure", etc.
42-
├── data # JSON Schema Implementations.
42+
├── data # JSON Schema implementations
4343
├── styles # Various CSS files
44-
├── lib # Various JS code for preparing static data to render in pages
45-
├── pages # Website's pages source. It includes raw markdown files and React page templates.
44+
├── lib # Various JS code for preparing static data to render on pages
45+
├── pages # Website's pages source, including raw markdown files and React page templates
4646
│ ├── overview # JSON Schema initiative docs
4747
│ ├── blog # Blog posts
4848
│ ├── learn # JSON Schema docs
4949
│ └── implementations # Various pages to describe tools
50-
├── public # Data for site metadata and static blog such as images
50+
├── public # Data for site metadata and static assets such as images
5151
├── next.config.js # Next.js configuration file
5252
5353
```
5454

5555
## Contribute
56-
5756
Here are some areas where you can contribute to the website:
58-
- Blogs posts
59-
- Case Studies
57+
58+
- Blog posts
59+
- Case studies
6060
- Design
61-
- Documentation
61+
- Documentation improvements
6262
- Website enhancements
63-
- Add a new JSON Schema Implementation
63+
- Add a new JSON Schema implementation
6464
- JSON Schema Landscape
6565

66-
To figure out a good first issue to work on, join our Slack workspace and visit the `#contribute` channel. This channel is specifically designed for onboarding and supporting new contributors.
66+
To identify good first issues to work on, join our Slack workspace and visit the `#contribute` channel. This channel is specifically designed for onboarding and supporting new contributors.
6767

6868
You should also check out our [Contributing guidelines](./CONTRIBUTING.md).
6969

7070
### Contributors
7171

72-
Thanks goes to these wonderful people who contributed to this website:
73-
<a href = "https://github.com/json-schema-org/website/graphs/contributors">
74-
<img src = "https://contrib.rocks/image?repo=json-schema-org/website"/>
72+
Thanks to these wonderful people who contributed to this website:
73+
<br />
74+
<a href="https://github.com/json-schema-org/website/graphs/contributors">
75+
<img src="https://contrib.rocks/image?repo=json-schema-org/website"/>
7576
</a>
7677

7778
<sub>Made with [contributors-img](https://contrib.rocks).</sub>
@@ -83,19 +84,20 @@ Thanks goes to these wonderful people who contributed to this website:
8384
### Backers
8485

8586
**Thank you to all our backers!**
87+
8688
[![Backers](https://opencollective.com/json-schema/backers.svg)](https://opencollective.com/json-schema/backers.svg?avatarHeight=90)
8789

8890
## Connect with the JSON Schema Community
8991

9092
<p align="left">
91-
<a href="https://json-schema.org/slack" target="blank" style="margin-right: 5px;"><img align="center" src="https://img.icons8.com/color/48/null/slack-new.png" alt="JSON Schema Slack" height="30" width="40" /></a>
92-
<a href="https://x.com/jsonschema" target="blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="JSON Schema Twitter" height="30" width="40" /></a>
93-
<a href="https://www.linkedin.com/company/jsonschema" target="blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg" alt="JSON Schema LinkedIn" height="30" width="40" /></a>
94-
<a href="https://www.youtube.com/@JSONSchemaOrgOfficial" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/youtube.svg" alt="JSON Schema YouTube" height="30" width="40" /></a>
93+
<a href="https://json-schema.org/slack" target="_blank" style="margin-right: 5px;"><img align="center" src="https://img.icons8.com/color/48/null/slack-new.png" alt="JSON Schema Slack" height="30" width="auto" /></a>
94+
<a href="https://twitter.com/jsonschema" target="_blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="JSON Schema Twitter" height="30" width="auto" /></a>
95+
<a href="https://www.linkedin.com/company/jsonschema" target="_blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg" alt="JSON Schema LinkedIn" height="30" width="auto" /></a>
96+
<a href="https://www.youtube.com/@JSONSchemaOrgOfficial" target="_blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/youtube.svg" alt="JSON Schema YouTube" height="30" width="auto" /></a>
9597
</p>
9698

9799
## Inspired by
98-
This document has been inspired by [AsyncAPI website README.md](https://github.com/asyncapi/website/blob/master/README.md).
100+
This document was inspired by [AsyncAPI website README.md](https://github.com/asyncapi/website/blob/master/README.md).
99101

100102
## License
101-
The contents of this repository are [licensed under](./LICENSE) either the BSD 3-clause license *or* the Academic Free License v3.0.
103+
The contents of this repository are licensed under either the BSD 3-clause license *or* the Academic Free License v3.0. See [LICENSE](./LICENSE).

components/AmbassadorsBanner.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import Link from 'next/link';
2+
import React from 'react';
3+
4+
const AmbassadorBanner: React.FC = () => {
5+
return (
6+
<div className='flex justify-center mx-4 sm:mx-6 md:mx-10 my-8 w-full'>
7+
<div className='group relative h-auto w-full sm:w-5/6 md:w-4/5 lg:w-2/3 xl:w-1/2 rounded-lg border border-gray-200 bg-white p-6 sm:p-8 shadow-3xl dark:shadow-2xl dark:shadow-slate-900 transition-colors ease-in-out hover:bg-slate-100 dark:bg-slate-800 hover:dark:bg-slate-900/30'>
8+
<h3 className='text-xl sm:text-2xl md:text-3xl font-bold mb-4 text-gray-800 dark:text-slate-100 text-center'>
9+
Become a JSON Schema Ambassador
10+
</h3>
11+
<p className='text-sm sm:text-base md:text-lg text-gray-600 dark:text-slate-100 mb-6 text-center'>
12+
The JSON Schema Ambassador program is now open for applications! If
13+
you're selected, you'll join JSON Schema's mission of helping
14+
community members all over the world build the future of JSON Schema.
15+
</p>
16+
<div className='w-full grid grid-cols-1 sm:grid-cols-2 gap-4 my-4 mx-auto'>
17+
<Link
18+
href='https://github.com/json-schema-org/community/tree/main/programs/ambassadors#become-an-json-schema-ambassador'
19+
className='inline-block px-6 py-3 bg-blue-600 text-white font-semibold text-center rounded hover:bg-blue-700 transition duration-300'
20+
>
21+
Become Ambassador
22+
</Link>
23+
<Link
24+
href='https://github.com/json-schema-org/community/tree/main/programs/ambassadors'
25+
className='inline-block bg-gray-300 text-slate-700 text-center px-6 py-3 rounded-md shadow hover:bg-gray-400 transition'
26+
>
27+
Learn More
28+
</Link>
29+
</div>
30+
</div>
31+
</div>
32+
);
33+
};
34+
35+
export default AmbassadorBanner;

0 commit comments

Comments
 (0)