Skip to content

msolters/website

 
 

Repository files navigation

The Vitess website

Netlify Status

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

Running the site locally

To run the website locally, you need to have the "extended" version of the Hugo static site generator installed (installation instructions here). Installing the Hugo version in netlify.toml is recommended.

Once Hugo is installed you will need to install npm or yarn and fetch the dependencies in the git directory:

cd website
npm install

or

cd website
yarn

You are now ready to startup the hugo server:

hugo server --buildDrafts --buildFuture

This starts Hugo in local mode. You can see access the site at http://localhost:1313.

Adding a user logo

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).

Link checking

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.

⚠ If you are running Hugo locally and your .sass file changes are not getting picked up: make sure you have installed the "extended" version of the hugo binary.

Releasing a new version of the documentation

  1. Copy the most recent docs version folder to a new folder named for the new upcoming version (for each language) cp -R content/en/docs/v1.0 content/en/docs/v2.0 cp -R content/zh/docs/v1.0 content/zh/docs/v2.0

  2. Update config.toml Set [params.versions] current to the value of the new release number. Set [params.versions] next to the value of the upcoming planned version.

  3. (optional) Remove any version of the documenation that is no longer supported git rm -rf content/en/docs/v0.0 git rm -rf content/zh/docs/v0.0

About

vitess.io website and other project management related content

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 66.8%
  • HTML 15.9%
  • Python 15.1%
  • Sass 1.7%
  • CSS 0.3%
  • Makefile 0.1%
  • JavaScript 0.1%