vitess.io website and other project management related content
Go to file
Harshit Gangal b64b42bc36
updated vindex document (#1956)
* updated vindex document

Signed-off-by: Harshit Gangal <harshit@planetscale.com>

* Update content/en/docs/22.0/reference/features/vindexes.md

Co-authored-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>

* addressed review comments

Signed-off-by: Harshit Gangal <harshit@planetscale.com>

---------

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Co-authored-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
2025-03-20 20:47:35 +05:30
assets Feat: Add a changelog section on hompage (#1907) 2025-01-10 07:33:03 -08:00
content updated vindex document (#1956) 2025-03-20 20:47:35 +05:30
data Add OSS 2021 talk (#1941) 2025-02-25 15:08:15 +05:30
i18n Feat: Add a changelog section on hompage (#1907) 2025-01-10 07:33:03 -08:00
layouts docs: Make separate md for each FAQ (#1950) 2025-03-19 16:55:33 +01:00
static updating footer logo to new horizontal color white version (#1931) 2025-02-17 08:54:08 +05:30
tools Cobradocs sync: improve makefile, resync without commit hash (#1904) 2025-03-11 13:49:36 -06:00
wip-docs feat: remove references of enable_semi_sync and add cross_cell durability policy 2022-07-19 20:22:07 +05:30
.editorconfig Add basic single-page and list page templates for documentation 2018-11-01 15:33:35 -07:00
.gitignore Disable analytics for deploy previews (#1378) 2023-02-06 15:37:57 -08:00
.htmltest.external.yml Add link checker and fix existing links 2020-02-26 16:36:41 -08:00
.htmltest.yml Add link checker and fix existing links 2020-02-26 16:36:41 -08:00
.nvmrc Use hugo-extended NPM package to get hugo (#1107) 2022-08-11 09:26:27 -07:00
LICENSE Initial commit 2018-10-23 18:52:02 -07:00
Makefile Update CLI documentation for v20, v21 and v22 (#1961) 2025-03-12 10:07:23 -06:00
README-zh.md Add Chinese README 2019-06-14 15:37:31 -07:00
README.md Feat: Resource page update (#1886) 2024-11-15 13:01:27 -06:00
config.toml Feat: Add a changelog section on hompage (#1907) 2025-01-10 07:33:03 -08:00
go.mod Add tooling and makefile target for autogenerating `vtctldclient` for N versions 2022-12-22 13:48:25 -05:00
netlify.toml Use hugo-extended NPM package to get hugo (#1107) 2022-08-11 09:26:27 -07:00
package.json Drop yarn requirement from toolchain (#1132) 2022-08-15 10:35:14 -07:00

README.md

The Vitess website

Netlify Status

This repo houses the assets used to build the website at https://vitess.io.

Running the site locally

First install npm, then fetch dependencies, including Hugo by running these commands:

cd website
npm install

To build a development version of the site, run the following command:

make build

To serve the site locally, run:

make serve

View the locally served site at http://localhost:1313.

If you'd like to add your logo to the Who uses Vitess section of the website, add a PNG, JPEG, or SVG of your logo to the static/img/logos/users directory in this repo and submit a pull request with your change. Name the image file something that reflects your company (e.g., if your company is called Acme, name the image acme.png).

You can check the site's internal links by running make check-internal-links and all links—internal and external—by running make check-all-links.

CSS/SASS

The Vitess website uses Bulma, a CSS (and SASS) framework that provides all kinds of variables, utilities, and components.

Adding a new learning resources filter option

To add a new filter option, simply follow these steps:

  1. Navigate to resources.yaml file to annotate: cd data/resources.yaml.
  2. add your new filter option to all the data in the folder.
  - youtube: uRB-Qni_bCM
    title: "Vitess: Introduction, New Features and the Vinted User Story - Florent Poinsard, Deepthi Sigireddi, PlanetScale & Kazimieras Aliulis, Vinted"
    date: 2024
    type: video
    FILTER_NAME = "filter_value"

Replace FILTER_NAME with any desired name of your choice. Same applies to the value.

  1. Navigate to the index.searchindex.json file to edit: cd layouts/_default/index.searchindex.json.
  2. Open the file and go down to line 3. You will notice the format of the data represented in a key/value pair. Just before the closing parenthesis, append your new option like this: "FILTER_NAME" $resources.FILTER_NAME.

Replace FILTER_NAME with the same name represented in the frontmatter (see step 2 above for reference).

  1. Head over to config.toml file. In the params.lunr section, you will see two arrays named vars and params. Add your new filter option's name to each of the arrays:
vars = ["title", "summary", "date", "publishdate", "expirydate", "permalink", "FILTER_NAME"]
  1. Navigate to javascript.html and scroll down to where the logic for resource filter is declared. Within that scope, find where the lunr() function is being called. You will notice a callback function is being passed to the lunr() function. Within the callback function, you will also notice this.field being called with some values passed in. Append this block of code right after the last this.field function call:
this.field("FILTER_NAME");

Replace FILTER_NAME with the same name represented in the frontmatter (see step 2 above for reference).

  1. Navigate to layouts/partials/learning-resources/filter-panel.html. Locate the div with a class name of filter. Within the div, add this new block:
<div class="mt-5">
      <h5>FILTER_NAME</h5>
      {{ $resources := $.Site.Data.resources.resources }}
      {{ $FILTER_NAMe := slice }}
      {{ range $resources }}
          {{ $FILTER_NAME = $years | append .FILTER_NAME }}
          {{ $FILTER_NAME = uniq $FILTER_NAME }}
      {{ end }}
      {{ range $FILTER_NAME }}
      {{ $filter := . }}
       <div>
          <input id="{{ . }}" type="checkbox" name="resource_filter" value="{{ . }}">
          <label for="{{ . }}">{{ . }}</label>
      </div>
      {{ end }}
  </div>

Replace FILTER_NAME with the same name represented in the frontmatter (see step 2 above for reference).

  1. Save your changes and rebuild your frontend.

Releasing a new version of the documentation

To release a new version of the documentation you can use one of the following two scripts:

  • ./tools/rc_release.sh: for RC release.

    • Takes one argument, the number of the next release.
    • Usage when releasing v16.0.0-rc1: ./tools/rc_release.sh "17"
  • ./tools/ga_release.sh: when a version becomes GA.

    • Takes one argument too, the number of the version we are making GA.
    • Usage when releasing v16.0.0 GA: ./tools/ga_release.sh "16"