HTTP Toolkit website is an opensource documentation build with Next.js and use MDX as a content managament. The rendering aproach is SSG.
- Next.js App directory
- React 18
- Typescript
- Styled Components
- MDX
- Algolia DocSearch
- Posthog
- Radix UI for primitives components
- next-image-export-optimizer For image optimization at built time.
- You need to have Node.js installed on your machine and we uses NPM as a package manager.
After completing the token setup, you can proceed to install all the project dependencies using pnpm:
npm install && npm run prepare;
npm run dev
Thank you for considering contributing to httptoolkit-website! We welcome contributions from everyone.
There are several ways you can contribute to httptoolkit-website:
-
Reporting Bugs: If you find a bug, please ensure it hasn't been reported already in the Issues section, and then open a new issue with a detailed description of the problem.
-
Submitting Feature Requests: Have an idea for a new feature? Feel free to open an issue and describe your feature request.
-
Improving Documentation: Documentation can always be improved. If you find something unclear or missing, feel free to submit a pull request with your improvements.
-
Fixing Issues: Browse through the open issues. If you find one you can tackle, feel free to submit a pull request with your fix.
-
Adding New Posts: Have a post you want to add? Please open an issue first to discuss it, and then submit a pull request with your content.
To get started with contributing to httptoolkit-website, follow these steps:
-
Fork the Repository: Click on the "Fork" button at the top right corner of the repository page to create your own fork.
-
Clone the Repository: Clone your forked repository to your local machine using the following command:
git clone https://github.com/your-username/httptoolkit-website.git
-
Install Dependencies: Navigate to the project directory and install the required dependencies:
cd httptoolkit-website npm install
-
Make Changes: Make your desired changes to the codebase.
-
Test Your Changes: Before submitting a pull request, ensure that your changes work as expected and do not introduce any new issues.
-
Commit Your Changes: Once you're happy with your changes, commit them to your forked repository.
-
Push Changes: Push your changes to your forked repository.
-
Submit a Pull Request: Finally, go to the original repository and click on the "New Pull Request" button to submit your changes for review.
Please ensure that your code adheres to the existing code style and conventions used in the project.
In order to get the benefis of the image optimization, these images should stored inside the public folder like public/images/posts/..
or public/images/docs/..
(except for the statically imported images and remote images). Then these images can be referenced in the src attribute of the <Image />
element.
This project uses a simplified version of Conventional Commits.
Commit message should se the present tense
"Adds this..", not "Added this..."
List of available commit types:
feat >> "add a new feature",
chore >> "tool, configuration changes, linters",
fix: >> "bug fix",
docs: >> "documentation update",
posts: >> "post update",
refactor: >> "code changes, no new features added",
This project uses Styled Components for styling.
The code will be format automatically with prettier
in every commit to keep the consistency in base the rules inside .prettierrc
file. t