This documentation website is hosted in a public GitHub repository. It is built with VuePress, written in MarkDown, and deployed on Netlify.
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
The maintainers of Meilisearch's documentation use GitHub Issues 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 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.
To open an issue you need a GitHub account. Create one if necessary, then follow these steps:
- Log into your account
- Go to the Meilisearch Documentation repository
- 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! 🎉
You can also improve the documentation by making a pull request.
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
- 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.
To create a PR you need a GitHub account. 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
- 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/documentation
and the base branch is set tomain
. 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
main
branch and become part of the official documentation site. You are now a Meilisearch Contributor! 🚀
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.
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.
- Node version >= v14 and <= v16
# Clone the repository
git clone [email protected]: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:
yarn test
The tests are triggered on build and on any pull request to main.
Check for broken or dead links before submitting a pull request using:
yarn check-links
Run the following command to check for any styling errors like extra spaces or lines in *.vue
, *.js
, and *.md
files:
yarn style
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.
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.