pingcap / gdocwiki

A wiki based on Google Doc / Drive
MIT License
104 stars 17 forks source link

gdocwiki

A wiki based on Google Doc / Drive.

Overview

Gdocwiki combines a folder tree view in a sidebar (equivalent to drive.google.com) with a document viewer in the main panel (equivalent to docs.google.com, etc). Documents can be browsed and edited without opening (lots of) new tabs. This helps the user stay in flow and understand the folder hierarchy.

Gdocwiki also helps with understanding lots of documents. README files in a folder are automatically rendered to give an overview of a directory. Tags and folder hierarchy are shown wherever docs are shown.

Gdocwiki defaults to a mobile-friendly HTML preview with comments. Switch to edit mode to start writing. On mobile this will link out to the Google Docs mobile app.

Features

Development

  1. Install Node.js, yarn

  2. Install dependencies:

    cd packages/website
    yarn
  3. Create .env.local file for configuration. See Configuration section below.

  4. Start a local development server:

    yarn start
  5. Navigate to http://localhost:3000

Deployment

You should set up a configuration for local development and building by creating a .env.local file. This file is not needed for deployment, since it is embedded into the artifact during the building process.

A sample .env.local file could be:

REACT_APP_GAPI_KEY=xxxxxxx
REACT_APP_GAPI_CLIENT_ID=xxxxxxx

Note

This is not an official PingCAP product.