# Contributing to our documentation
This documentation website is hosted in a public GitHub repository (opens new window). It is built with VuePress (opens new window), written in MarkDown (opens new window), and deployed on Netlify (opens new window).
# Our documentation philosophy
Our documentation aims to be:
- Efficient: we don't want to waste anyone's time
- Accessible: reading the texts here shouldn't require native English or a computer science degree
- Thorough: the documentation website should contain all information anyone needs to use Meilisearch
- Open source: this is a resource by Meilisearch users, for Meilisearch users
# How to contribute?
The maintainers of Meilisearch's documentation use GitHub Issues (opens new window) to track tasks. Helpful issues include:
- Bug reports detailing technical issues with this website
- Requests for new features such as versioning or an embedded console
- Requests for new content such as new guides and tutorials
Before opening an issue or PR, please look through our open issues (opens new window) to see if one already exists for your problem. If yes, please leave a comment letting us know that you're waiting for a fix or willing to work on it yourself. If not, please open a new issue describing the problem and informing us whether you want to work on it or not.
We love issues at Meilisearch, because they help us do our jobs better. Nine times out of ten, the most useful contribution is a simple GitHub issue that points out a problem and proposes a solution.
# Creating your first issue
To open an issue you need a GitHub account (opens new window). Create one if necessary, then follow these steps:
- Log into your account
- Go to the Meilisearch Documentation repository (opens new window)
- Click on "Issues"
- Use the search bar to check if somebody else has reported the same problem. If they have, upvote with a 👍 and don't create a new issue!
- If no one reported the problem you experienced, click on "New issue"
- Write a short and descriptive title, then add a longer summary explaining the issue. If you're reporting a bug, make sure to include steps to reproduce the error, as well as your OS and browser version
- Click on "Submit new issue"
- A member of our team should get back to you shortly
- Enjoy the feeling of a job well done! 🎉
# Pull requests
You can also improve the documentation by making a pull request (opens new window).
Pull requests ("PRs" for short) are requests to integrate changes into a GitHub repository. The simplest way to create a PR on our documentation is using the "Edit this page" link at the bottom left of every page.
Pull requests are particularly good when you want to:
- Solve an existing issue (opens new window)
- Fix a small error, such as a typo or broken link
- Create or improve content about something you know very well—for example, a guide on how to integrate Meilisearch with a tool you have mastered
In most cases, it is a good idea to create an issue before making a PR. This allows you to coordinate with the documentation maintainers and find the best way of addressing the problem you want to solve.
# Creating your first PR
To create a PR you need a GitHub account (opens new window). Create one if necessary, then follow these steps:
- Go to the documentation page you'd like to edit, scroll down, and click "Edit this page" at the bottom left of the screen. This will take you to GitHub
- If you're not already signed in, do so now. You may be prompted to create a fork (opens new window)
- Use GitHub's text editor to update the page
- Scroll down until you reach a box named "Propose changes"
- Fill in the first field to give your PR a short and descriptive title—for example, "Fix typo in search API reference"
- Use the second field to add a more detailed explanation of the changes you're proposing
- Click the "Propose changes" button to continue. You should see a page that says "Comparing changes"
- Make sure the base repository is set to
meilisearch/documentationand the base branch is set to
main. You can ignore the remaining fields
- This screen will also show you a "diff", which allows you to see the changes you made compared to what's currently published on the documentation website
- Click "Create pull request"
- Congrats, you made your first PR! A documentation maintainer will review your pull request shortly. They may ask for changes, so keep an eye on your GitHub notifications
- If everything looks good, your work will be merged into the
mainbranch and become part of the official documentation site. You are now a Meilisearch Contributor! 🚀
# How we review contributions
# How we review issues
When reviewing issues, we consider a few criteria:
- Is this task a priority for the documentation maintainers?
- Is the documentation website the best place for this information? Sometimes an idea might work better on our blog than the docs, or it might be more effective to link to an external resource than write and maintain it ourselves
- If it's a bug report, can we reproduce the error?
If users show interest in an issue by upvoting or reporting similar problems, it is more likely the documentation will dedicate resources to that task.
# How we review PRs
For reviewing contributor PRs, we start by making sure the PR is up to our quality standard.
We ask the following questions:
- Is the information accurate?
- Is it easy to understand?
- Do the code samples run without errors? Do they help users understand what we are explaining?
- Is the English clear and concise? Can a non-native speaker understand it?
- Is the grammar perfect? Are there any typos?
- Can we shorten text without losing any important information?
- Do the suggested changes require updating other pages in the documentation website?
- In the case of new content, is the article in the right place? Should other articles in the documentation link to it?
Nothing makes us happier than a thoughtful and helpful PR. Your PRs often save us time and effort, and they make the documentation even stronger.
Our only major requirement for PR contributions is that the author responds to communication requests within a reasonable timeframe.
Once you've opened a PR on this repo, one of our team members will stop by shortly to review it. If your PR is approved, nothing further is required from you. However, if in seven days you have not responded to a request for further changes or more information, we will consider the PR abandoned and close it.
If this happens to you and you think there has been some mistake, please let us know and we will try to rectify the situation.
# Local development
- Node version (opens new window) >= v14 and <= v16
# Installing and running the docs
# Clone the repository git clone email@example.com:meilisearch/documentation.git meilisearch-documentation # Open the newly created directory cd meilisearch-documentation # Install dependencies yarn install # Run Meilisearch documentation on http://localhost:8080 yarn dev
A complete test can be done using the following command:
The tests are triggered on build and on any pull request to main.
# Checking dead links
Check for broken or dead links before submitting a pull request using:
# Checking styling
Run the following command to check for any styling errors like extra spaces or lines in
# Handling images and other assets
Screenshots, images, GIFs, and video demonstrations should be placed in a relevant folder under
.vuepress/public/ and then referenced from any markdown file a using relative link. For example, if you create the file
.vuepress/public/my_cool_guide/my_cool_image.png, you would embed it in your document using
![A description of my cool image](/my_cool_guide/my_cool_image.png)
The documentation is deployed as a static website. The main branch is automatically deployed at https://docs.meilisearch.com (opens new window).
You can build the static website using the following command:
yarn build # The website is now available in .vuepress/dist and you can serve it using any webserver.