zrok/website
2025-02-20 09:12:50 -05:00
..
src fix button font 2025-01-24 14:55:29 -05:00
static add pricing and account to top nav 2024-08-30 15:55:21 -04:00
versioned_docs/version-0.4 refine install card text hints 2025-02-20 09:12:50 -05:00
versioned_sidebars Tweaked version labels and fixed zrok capitalization in the project name 2025-02-13 13:58:39 -05:00
.gitignore add package-lock and unignore 2023-01-27 22:12:49 -05:00
.nvmrc organize download and install info as guides and add nice downloads 2023-11-22 23:00:48 -05:00
algolia-crawler-config.js add a crawler schedule 2024-01-12 00:11:41 -05:00
babel.config.js initial attempt at website 2023-01-25 16:04:35 -05:00
docusaurus.config.js Tweaked version labels and fixed zrok capitalization in the project name 2025-02-13 13:58:39 -05:00
package-lock.json upgrade docusaurus 2024-11-07 16:05:30 -05:00
package.json upgrade docusaurus 2024-11-07 16:05:30 -05:00
README.md Apply suggestions from code review 2025-02-18 09:38:20 -05:00
sidebars.js initial attempt at website 2023-01-25 16:04:35 -05:00
vercel.json build docs when any markdown changes so we can import them in docusaurus 2024-04-26 14:42:23 -04:00
versions.json Tweaked version labels and fixed zrok capitalization in the project name 2025-02-13 13:58:39 -05:00

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Cutting a new doc version

New doc releases should only be cut when major revisions are coming and the current version is ready to be frozen. Cutting a new version will snapshot the current ./docs directory and copy it all into the ./website/versioned_docs directory based on the version that is tagged.

$ yarn docusaurus docs:version 1.1`

The default doc version that is displayed is managed in the docusaurus.config.js file. By default the last version that was cut will be displayed, but this can be overridden be updating the config to render the "current" doc version.

  presets: [
    [
        docs: {
          // These lines to show the current docs by default and assign them a label
          lastVersion: 'current',
          versions: {
             current: {
               label: '1.0',
             },
          },

        },

Deployment

Using SSH:

$ USE_SSH=true yarn deploy

Not using SSH:

$ GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.