Coder Social home page Coder Social logo

website's Introduction

etcd.io

This repository houses all of the assets used to build the etcd docs and website available at https://etcd.io.

Run the site locally

Prerequisites

In order to run the site locally, you need to have the following installed:

  • The Yarn package manager

  • The Hugo static site generator. Check the netlify.toml configuration file to see which version of Hugo you need to install.

    Note: You need to install the "extended" version of Hugo with support for Sass.

Setup

Once you've installed the prerequisites:

make setup

Running

Once the setup has completed, you can run the site in your local environment:

make serve

Docker

You can also run the site locally using Docker:

make docker-serve

Publishing the site

The site is published automatically by Netlify. Any time changes are pushed to the master branch, the site is rebuilt and redeployed.

Preview builds

Any time you submit a pull request to this repository, Netlify will publish a preview build of the changes in that pull request. You can find a link to the preview build in the checks section of the pull request, under netlify/etcd/deploy-preview.

Releasing a new version of the etcd documentation

In order to add documentation for a version of etcd, you need to:

  • Navigate to the etcd-io/etcd repo and checkout the tag for the version, for example git checkout v3.3.12.

  • Copy the Documentation directory from the main etcd repo into the content/docs directory of this repository, renaming the directory to match the version. Here's an example for (non-existing) version 4.3.2:

    cp -rf /path/to/etcd-io/etcd/Documentation /path/to/etcd-io/website/content/docs/v4.3.2
  • In the _index.md file at the root of the new directory, update the title metadata to reflect the new version. The title should read etcd version <new-version>.

  • Add the version to the params.versions.all array in the config.toml configuration file.

  • If the version is meant to be the latest version of etcd, change the params.versions.latest parameter to the desired new version.

  • Submit a pull request with the changes.

Troubleshooting

If you have an issue with updating the documentation, file an issue against this repo and cc lucperkins.

website's People

Contributors

burningalchemist avatar connor4312 avatar dmarsh19 avatar gtamas avatar gyuho avatar jberkus avatar katarzyna-jurek avatar kcrouch avatar leulz avatar liuchang0812 avatar lucperkins avatar mikespreitzer avatar nic-chen avatar ptabor avatar snowjunkie avatar spzala avatar yiyiyimu avatar yoyinzyc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.