diff --git a/docs/contributing.mdx b/docs/contributing.mdx index c19f43f..dcf5ca3 100644 --- a/docs/contributing.mdx +++ b/docs/contributing.mdx @@ -3,4 +3,84 @@ title: 'Contributing' sidebarTitle: 'Contributing' description: 'Wanna help? Awesome! There are many ways you can contribute.' icon: 'code-pull-request' ---- \ No newline at end of file +--- + +## Improving the docs + +Documentation is extremely important and takes a fair deal of time and effort to write and keep updated. Everything is written in [Markdown](https://www.markdownguide.org/) to facilitate the process of contributing. + + + + +}> + +## Docs Setup Guide + +1. Clone the repository: + +```sh +git clone https://github.com/onedoclabs/react-print +``` + +2. Install all dependencies: + +```sh +pnpm install +``` + +3. Run local servers and watch for changes: + +```sh +pnpm dev +``` + +4. Make your changes under the `/docs` folder and see a live preview at [localhost:3000](http://localhost:3000). + +5. Submit a pull request. + + + +## Building new components + +We're open to expanding the catalog of components to cover as many use cases as possible. We suggest to open an issue for discussion first to make sure your idea is aligned with the project goals. + + + + +}> + +## Components Setup Guide + + + +4. Add a new folder under `packages` and build your component. + +5. Don't forget to add tests. + +6. Submit a pull request. + + + +## Opening issues + +Open an issue to report bugs or to propose new features. + +- **Reporting bugs**: describe the bug as clearly as you can, including steps to reproduce, what happened and what you were expecting to happen. Also include browser version, OS and other related software's (npm, Node.js, etc) versions when applicable. + +- **Suggesting features**: explain the proposed feature, what it should do, why it is useful, how users should use it. Give us as much info as possible so it will be easier to discuss, access and implement the proposed feature. When you're unsure about a certain aspect of the feature, feel free to leave it open for others to discuss and find an appropriate solution. + +## Proposing pull requests + +Pull requests are very welcome. Note that if you are going to propose drastic changes, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it. + +- **Forking the repository**: clone it locally and create a branch for your proposed bug fix or new feature. Avoid working directly on the main branch. + +- **Making changes**: implement your bug fix or feature, write tests to cover it and make sure all tests are passing. Then commit your changes, push your bug fix/feature branch to the origin (your forked repo) and open a pull request to the upstream (the repository you originally forked)'s main branch. \ No newline at end of file diff --git a/docs/images/background.png b/docs/images/background.png new file mode 100644 index 0000000..2472624 Binary files /dev/null and b/docs/images/background.png differ diff --git a/docs/mint.json b/docs/mint.json index f07c87d..014b639 100644 --- a/docs/mint.json +++ b/docs/mint.json @@ -1,5 +1,4 @@ { - "$schema": "https://mintlify.com/schema.json", "name": "React Print", "logo": { "dark": "/logo/dark.svg", @@ -107,5 +106,11 @@ "twitter": "https://twitter.com/mintlify", "github": "https://github.com/mintlify", "linkedin": "https://www.linkedin.com/company/mintsearch" + }, + "backgroundImage": "docs/images/background.png", + "classes": { + "anchors": "group-hover:bg-gradient-to-tr from-primary to-primary-dark dark:from-[#61DAFB] dark:to-[#06BCEE]", + "activeAnchors": "bg-gradient-to-tr" } + } \ No newline at end of file