Skip to main content

Improving Documentation


Maintaining consistent, accurate and readable documentation is way to improve the user experience for everybody, including experienced users.

The truth is that while we try our best, mistakes happen (we are not perfect! 😅). And if you found something difficult to understand, others may have too, which presents an opportunity for improvement.

So if you spot any typos, errors, unclear explanations, missing references or anything that stands out, please let us know, and we can work on it together.

How Weaviate documentation is built

Weaviate's documentation is built with a static site builder (Jekyll) with data from our GitHub repository. Before you get started, we suggest you set up a local development environment first. This will allow you to preview any changes on your computer as you work on it.

For instructions on setting up the development environment, please take a look at this README file.

Once your local environment is set up, you can make your proposed changes, preview them locally, and submit them for review.

Documentation folders

The documentation repository is structured as below:

├── .github/                            #contains GitHub template files for issues and pull requests
├── _data/ #contains site's data files
├── _includes/ #contains numerous templates like header, footer, navbar, etc
│ ├── benchmarks/
│ ├── code/
├── _layouts/ #contains layouts for documentation and posts
├── _posts/ #contains blog posts
├── _python/
├── developers/ #contains documentation
│ ├── assets/ #contains clipboard functionality
│ ├── contributor-guide/ #contains contributor guide for Weaviate
│ ├── weaviate/ #contains files and folder for product documentation
├── img/ #contains all site images
├── js/ #contains JS files for various functionalities
├── resources/ #contains additional site pages like gsoc, gsod
├── .editorconfig
├── .gitignore
├── .travis.yml #for continuous integration and deployment
├── 404.html #custom not found page.
├── Gemfile #contains gem dependencies for the site.
├── Gemfile.lock
├── _config.yml #contains Jekyll settings for the site
├── _config_dev.yml #for site build time improvement
├── #main blog page of the site
├── #homepage of
├── #podcast page of the site
├── #product page of the site
├── #resource page of the site
├── robots.txt #tells search engine crawlers which URLs are accesible
├── #script for previewing the site
└── #script for setting up the website

The content is stored on HTML and Markdown (.md) files, and YAML files are used for configurations.

Liquid syntax

Jekyll uses the Liquid templating language to process templates. To learn more about Liquid, check out the official Liquid Documentation.

Here are some syntax which we commonly use in our code:

  • if conditional

This executes the block of code only if the given condition is true. For example:

{% raw %}
Published on {{ | date: '%B %d, %Y' }}
{% if page.canonical-name %}
originally on
<a href="{{ page.canonical-url }}" target="_blank">{{ page.canonical-name }}</a>
{% endif %}
{% endraw %}
  • for loop

The for statement executes a block of code repeatedly. For example:

{% raw %}
{% for integration in %}
<a class="dropdown-item" href="/product.html#{{ | downcase }}">
{{ }} ({{ integration.type }})
{% endfor %}
{% endraw %}
  • Include

The above tag is used to insert a already rendered file within the current template. For example:

{% raw %}
{% include docs-current_version_finder.html %}
{% endraw %}
  • Assign

The assign tag is used to create a new variable. For example:

{% raw %}
{% assign sortedResources = | sort: 'date' %}
{% endraw %}