jlengstorf / docs-1

PlanetScale documentation

Home Page:https://docs.planetscale.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docs.planetscale.com

CleanShot 2021-07-21 at 16 20 19@2x

Internals

Local development setup

MacOS

  • Install homebrew (https://brew.sh/)
  • Install node and npm
  • Git clone this repository (git@github.com:planetscale/docs.planetscale.com.git)
  • Switch to repository's folder
  • Install package dependencies with npm install
  • Execute npx next dev or npm run develop to start a local nextJS server
  • Access development server at http://localhost:3000. Check terminal to find the actual port being used by your nextJS local server.

How to

Add a new document

  • All pages in the documentation are markdown (.mdx) files with a frontmatter block on the top. The frontmatter block defines the title and (optionally) a subtitle and/or banner for the page.
  • When creating a new document, also create a corresponding entry in meta.json to define the category and position of the document's link in the navigation list.

Add a theme sensitive asset (image)

  • An image can be added with corresponding light and dark equivalents by having two assets: ASSET_NAME_light.png and ASSET_NAME_dark.png.
  • The image link to be used in a .mdx document needs to be the light version of the asset i.e. ASSET_NAME_light.png.

Notes

  • Search is powered by DocSearch. PlanetScale's configuration on DocSearch can be viewed here
  • Sitemap is only generated during a build and is not checked in to the repo.

About

PlanetScale documentation

https://docs.planetscale.com/


Languages

Language:JavaScript 99.9%Language:HTML 0.1%