Skip to content

Commit 769a4d6

Browse files
committed
your message
1 parent 1ca4a48 commit 769a4d6

File tree

129 files changed

+87312
-44694
lines changed

Some content is hidden

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

129 files changed

+87312
-44694
lines changed

CONTRIBUTING-docs.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# Docs Contributing Guide
22

3-
This guide describes the workflow to contribute to the JSON Schema technical documentation. If you would like to contribute to other aspects of the JSON Schema website, like writing blog articles or publishing a case study, please read the website's [Contributing Guide](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING.md) for more details.
3+
This guide describes the workflow to contribute to the JSON Schema technical documentation. If you would like to contribute to other aspects of the JSON Schema website, like writing blog articles or publishing a case study, please read the website's [Contributing Guide](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING.md) for more details.
44

55
## Welcome
6+
67
Thank you for helping us improve our documentation.
78

89
This guide is intended for use by documentation contributors and will help you get started with the basics of our working processes.
910

1011
## Before you start
12+
1113
To contribute to the JSON Schema documentation you will need to complete the following steps:
1214

1315
1. [Create a GitHub account](https://docs.github.com/en/get-started/start-your-journey/creating-an-account-on-github), if you don't have one already.
1416
2. Read our [Code of Conduct](https://json-schema.org/overview/code-of-conduct).
1517
3. [Install the JSON Schema website](https://github.com/json-schema-org/website/blob/main/INSTALLATION.md) on your computer.
16-
4. Read our [style guide](https://json-schema.org/md-style-guide).
18+
4. Read our [style guide](https://json-schema.org/md-style-guide).
1719

1820
## Community engagement
21+
1922
To stay updated with news about the JSON Schema project and its documentation, engage with our team, ask questions, and discuss ideas, please join our [Slack workspace](https://json-schema.org/slack). We particularly recommend the following channels:
2023

2124
- `#documentation`: Discussions related to the JSON Schema documentation.
@@ -29,60 +32,63 @@ To stay updated with news about the JSON Schema project and its documentation, e
2932
- `#anouncements`: Important announcement from the JSON Schema organization.
3033

3134
- `#stack-overflow`: Stack overflow questions tagged with JSON Schema.
32-
35+
3336
## Best practices
3437

3538
This is a list of best practices the JSON Schema project strives for and resources we recommend for additional information:
3639

3740
1. File and branching naming conventions: We use dashes instead of spaces, and lowercase letters to name .md files and branches. For example: `implementers-guide.md`, `web-feat-diataxis`.
3841
2. Commit messages: To learn how to write good commit messages, see [Step-by-step guide on how to write good commit messages on Git](https://www.freecodecamp.org/news/how-to-write-better-git-commit-messages/).
3942

40-
## Contribution workflow
43+
## Contribution workflow
4144

4245
Here we describe three ways you can help us improve our documentation:
4346

44-
4547
1. Review pull requests
46-
2. Work on an existing issue
47-
3. Propose changes
48+
2. Work on an existing issue
49+
3. Propose changes
4850

4951
### Review pull requests
5052

51-
Are you new to the JSON Schema community? Help us review pull requests. Reviewing pull requests helps you familiarize yourself with our workflows, learn how others contribute, and understand the project's needs and goals. It's a great way to start contributing and you'll be better prepared to make your own contributions.
53+
Are you new to the JSON Schema community? Help us review pull requests. Reviewing pull requests helps you familiarize yourself with our workflows, learn how others contribute, and understand the project's needs and goals. It's a great way to start contributing and you'll be better prepared to make your own contributions.
5254

5355
### Work on an existing issue
5456

55-
To work on an existing issue, go to the [JSON Schema docs board](https://github.com/orgs/json-schema-org/projects/16) and check all the open issues.
57+
To work on an existing issue, go to the [JSON Schema docs board](https://github.com/orgs/json-schema-org/projects/16) and check all the open issues.
5658

57-
If the issue you select has no assignees, you can claim the issue by assigning it to yourself and tag @json-schema-org/docs-team in the comments to let us know you'll be working on it.
59+
If the issue you select has no assignees, you can claim the issue by assigning it to yourself and tag @json-schema-org/docs-team in the comments to let us know you'll be working on it.
5860

5961
If the issue you select has already an assignee, write a comment expressing your interest in collaborating with them. The JSON Schema respects the order in which people claim issues, therefore, you will have to check if the assignee is accepting collaborations.
6062

61-
After you have been assigned to an issue, fork the [json-schema-org/website](https://github.com/json-schema-org/website) repository and create a new branch from `main` to work on the changes.
63+
After you have been assigned to an issue, fork the [json-schema-org/website](https://github.com/json-schema-org/website) repository and create a new branch from `main` to work on the changes.
6264

6365
### Propose changes
6466

65-
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.
67+
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.
6668

6769
## Add metadata to newly created markdown files
70+
6871
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.
6972

7073
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.
7174

7275
### 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-
---
76+
77+
## Every new `.md` file should start with a YAML front matter block. Here's an example:
78+
7579
title: "Your Page Title"
7680
section: "docs" # Can be used to categorize the content
7781
date: "YYYY-MM-DD" # Optional: Date when the page was created or last updated
7882
author: "Your Name" # Optional: Your name if you're the author
7983
tags: ["tag1", "tag2"] # Optional: Tags to categorize the page
84+
8085
---
86+
8187
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.
8288

8389
## Create a Pull Request
8490

85-
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.
91+
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.
8692

8793
The reviewers might ask for additional changes. When they approve your pull request, you can merge your changes into `main` and your contribution to the project will be complete!
8894

CONTRIBUTING.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ First off, thanks for taking the time to contribute! 🫶
55
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it much easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
66

77
If you don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation:
8+
89
- Star the project on Github
910
- Post on X or Linkedin about JSON Schema `#jsonschema
1011

@@ -26,7 +27,6 @@ If you don't have time to contribute, that's fine. There are other easy ways to
2627
- ⌨️ [Pull requests](#%EF%B8%8F-pull-requests)
2728
- 🏛 [License](#-license)
2829

29-
3030
## 🌱 Code of Conduct
3131

3232
Before making your first contribution, please ensure you are familiar with our [Code of Conduct](https://github.com/json-schema-org/.github/blob/main/CODE_OF_CONDUCT.md).
@@ -47,7 +47,7 @@ Please use our issues templates that provide hints on what information we need t
4747

4848
### 🛠️ Add a new Implementation
4949

50-
To add a new implementation, please open a PR, adding the details of your implementation to `\pages\implementations\main.md` file. We also invite you to join the discussion in `#implementers` channel in our [Slack workspace](https://json-schema.org/slack).
50+
To add a new implementation, please open a PR, adding the details of your implementation to `\pages\implementations\main.md` file. We also invite you to join the discussion in `#implementers` channel in our [Slack workspace](https://json-schema.org/slack).
5151

5252
### ✍️ Publish a blog post
5353

@@ -61,11 +61,11 @@ To publish a case study, we encourage you to join `#adopters` channel in our [Sl
6161

6262
### 📋 Improving the Documentation
6363

64-
Want to help us improve the JSON Schema documentation? Check out our [docs Contributing guide](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING-docs.md) for docs and Style guide. These documents will give you the basics of our processes to get you started and text-formatting guidelines to create consistent documentation for JSON Schema.
64+
Want to help us improve the JSON Schema documentation? Check out our [docs Contributing guide](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING-docs.md) for docs and Style guide. These documents will give you the basics of our processes to get you started and text-formatting guidelines to create consistent documentation for JSON Schema.
6565

6666
### 🌐 Improving the Website
6767

68-
If you would like to join the efforts to improve the JSON Schema Website, we encourage you to check our [website contribution board](https://github.com/orgs/json-schema-org/projects/11) to get a sense of the pending issues and bugs and who is doing what. We also invite you to join the discussion in `#website` channel in our [Slack workspace](https://json-schema.org/slack).
68+
If you would like to join the efforts to improve the JSON Schema Website, we encourage you to check our [website contribution board](https://github.com/orgs/json-schema-org/projects/11) to get a sense of the pending issues and bugs and who is doing what. We also invite you to join the discussion in `#website` channel in our [Slack workspace](https://json-schema.org/slack).
6969

7070
### 🎨 Improving the Design
7171

@@ -80,7 +80,6 @@ If you would like to contribute to our CI/CD pipeline, we encourage you to revie
8080
We value contributions to our testing efforts. Here are ways you can help improve our test coverage and quality:
8181

8282
1. **Writing Tests**: If you're adding new features or fixing bugs, please include relevant tests. We use Cypress for both end-to-end (E2E) and component testing.
83-
8483
- For new components, add component tests in the `cypress/components` directory.
8584
- For new features or bug fixes affecting user interactions, add E2E tests in the `cypress/e2e` directory.
8685

@@ -89,6 +88,7 @@ We value contributions to our testing efforts. Here are ways you can help improv
8988
3. **Test Documentation**: Help improve our testing documentation, making it easier for new contributors to understand and write tests.
9089

9190
4. **Running Tests**: Before submitting a pull request, ensure all tests pass by running:
91+
9292
```
9393
yarn cypress:run:all
9494
```
@@ -97,7 +97,6 @@ We value contributions to our testing efforts. Here are ways you can help improv
9797

9898
For more details on our testing setup and how to run tests, please refer to the Testing section in our [INSTALLATION.md](./INSTALLATION.md#testing) file.
9999

100-
101100
### ⌨️ Pull requests
102101

103102
We welcome pull requests for editorial suggestions and resolving open issues.
@@ -111,26 +110,20 @@ We strongly encourage linking every pull request to an existing issue. If no cor
111110

112111
Generally, pull requests should be made to the `main` branch.
113112

114-
Most PRs, will be left open for a minimum of 14 days. Minor fixes may be merged more quickly once approved by a project member.
113+
Most PRs, will be left open for a minimum of 14 days. Minor fixes may be merged more quickly once approved by a project member.
115114

116115
### Markdown Style Guide
117116

118117
Contributors to our Docs or our Blog can have a look at the [custom markdown style guide](https://json-schema.org/md-style-guide) with a list of useful markdown tags providing tools to easily create cool content that provides a better user experience.
119118

120119
## Triage
121120

122-
Please check the [triage process](https://github.com/json-schema-org/.github/blob/main/TRIAGE.md) to learn how we review and label incoming issues .
121+
Please check the [triage process](https://github.com/json-schema-org/.github/blob/main/TRIAGE.md) to learn how we review and label incoming issues .
123122

124123
## Feedback
125124

126125
Feedback on this process can be made informally through our [Slack server](https://json-schema.org/slack) and formally using our [Community Discussions](https://github.com/json-schema-org/community/discussions).
127126

128-
## References
127+
## References
129128

130129
This document was adapted from [https://contributing.md](https://contributing.md/)!
131-
132-
133-
134-
135-
136-

INSTALLATION.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,20 @@ This guide provides step-by-step instructions for installing the JSON Schema Web
3030
- [Prerequisites](#prerequisites)
3131
- [Steps](#steps)
3232

33-
3433
## Setting up Project
3534

3635
## Configuration
3736

3837
### Requirements
38+
3939
Use the following tools to set up the project:
4040

4141
Node.js v20.9.0+
4242

4343
### Cloning the repository
44+
4445
This project uses git submodules, so you will need to run the following commands to fully clone the repo.
46+
4547
```
4648
git submodule init
4749
git submodule update
@@ -52,9 +54,11 @@ git submodule update
5254
This step is optional. Environment variables are not required to run the website on your local development server.
5355

5456
1. Create a new `.env` file by copying the contents of the `.env.example` into `.env` file. Use this command:
57+
5558
```
5659
cp .env.example .env
5760
```
61+
5862
2. Open .env and fill in your actual values for each variable.
5963

6064
3. Save the file.
@@ -69,7 +73,6 @@ This project uses modern Yarn ([email protected]), which requires Corepack for proper s
6973

7074
Corepack is an experimental tool to help with managing versions of your package managers. It exposes binary proxies for each supported package manager that, when called, will identify whatever package manager is configured for the current project, download it if needed, and finally run it.
7175

72-
7376
#### Installing Corepack
7477

7578
If you're using Node.js version 14.19.0 or later, Corepack is included but might need to be enabled. For Node.js 16.10 or later, Corepack is available by default but might still need to be enabled.
@@ -129,30 +132,33 @@ For more information about Corepack, refer to the [official Node.js documentatio
129132
### Installing Dependencies
130133

131134
Install dependencies
135+
132136
```
133137
yarn
134138
```
135139

136140
### Running the Development Server
137141

138142
Run the development server on http://localhost:3000
143+
139144
```
140145
yarn dev
141146
```
142147

143148
### Building Static Files
144149

145150
Build static files on `/out` folder
151+
146152
```
147153
yarn build
148154
```
155+
149156
## Testing
150157

151158
We use Cypress for both end-to-end (E2E) testing and component testing. This document will guide you through the process of running tests and generating coverage reports.
152159

153160
### Running Tests
154161

155-
156162
#### Opening Cypress Test Runner
157163

158164
To open the Cypress Test Runner, which allows you to run tests interactively, use:
@@ -200,6 +206,7 @@ yarn test:coverage:all
200206
```
201207

202208
This command will:
209+
203210
1. Run E2E tests with coverage
204211
2. Run component tests with coverage
205212
3. Merge the coverage results
@@ -251,6 +258,7 @@ yarn run lint:fix
251258
This project uses Husky to run checks for the formatting, linting, typecheck and build commands before committing the code.
252259

253260
#### pre-commit hook
261+
254262
pre-commit hook will run the following commands:
255263

256264
```
@@ -260,6 +268,7 @@ yarn run build
260268
```
261269

262270
If you don't want these pre-commit checks running on each commit, you can manually opt out of it using the `--no-verify` flag with your commit message as shown:-
271+
263272
```
264273
git commit -m "commit message" --no-verify
265274
```
@@ -275,14 +284,16 @@ If you are a Docker lover, you have the option to use it following these instruc
275284
After cloning repository to your local, perform the following steps from the root of the repository.
276285

277286
#### Steps:
287+
278288
1. Build the Docker image:
279-
```bash
280-
make install
281-
```
289+
290+
```bash
291+
make install
292+
```
282293

283294
2. Start the container:
284-
```bash
285-
make run
286-
```
295+
```bash
296+
make run
297+
```
287298

288299
Now you're running JSON Schema website in a development mode. Container is mapped with your local copy of the website. Whenever you make changes to the code, the website will refresh and changes visible in `http://localhost:3000`.

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
</p>
2121

2222
# 👋 Welcome to the JSON Schema website
23+
2324
This repository contains the source code of the JSON Schema website:
2425

25-
* Powered by Next.js,
26-
* Uses the Tailwind CSS framework,
27-
* Built and deployed with Netlify.
26+
- Powered by Next.js,
27+
- Uses the Tailwind CSS framework,
28+
- Built and deployed with Netlify.
2829

2930
## Setting up the Project
3031

@@ -53,6 +54,7 @@ This repository has the following structure:
5354
```
5455

5556
## Contribute
57+
5658
Here are some areas where you can contribute to the website:
5759

5860
- Blog posts
@@ -72,7 +74,7 @@ You should also check out our [Contributing guidelines](./CONTRIBUTING.md).
7274
Thanks to these wonderful people who contributed to this website:
7375
<br />
7476
<a href="https://github.com/json-schema-org/website/graphs/contributors">
75-
<img src="https://contrib.rocks/image?repo=json-schema-org/website"/>
77+
<img src="https://contrib.rocks/image?repo=json-schema-org/website"/>
7678
</a>
7779

7880
<sub>Made with [contributors-img](https://contrib.rocks).</sub>
@@ -97,7 +99,9 @@ Thanks to these wonderful people who contributed to this website:
9799
</p>
98100

99101
## Inspired by
102+
100103
This document was inspired by [AsyncAPI website README.md](https://github.com/asyncapi/website/blob/master/README.md).
101104

102105
## License
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).
106+
107+
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/TableOfContentMarkdown.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,8 @@ export const TableOfContent = ({ depth }: TableOfContentProps) => {
175175
<span>Table of Contents</span>
176176
</div>
177177
<div className='mt-2 bg-slate-50 dark:bg-slate-900 pt-6 pb-3 pr-3 border border-r-0 border-y-0 border-l-blue-400/40 border-l-[2.5px]'>
178-
<TableOfContentMarkdown
179-
markdown={fullMarkdown}
180-
depth={depth}
181-
/>
178+
<TableOfContentMarkdown markdown={fullMarkdown} depth={depth} />
182179
</div>
183180
</>
184181
);
185-
};
182+
};

0 commit comments

Comments
 (0)