ohif-viewer/docs
2021-06-15 19:14:37 -04:00
..
latest moved v3 docs 2021-06-15 19:14:37 -04:00
v2 versioned docs v1, and moved docs v2 2021-06-15 16:38:40 -04:00
_redirects ci: fix docs deploy-preview redirect (#878) 2019-09-06 15:09:20 -04:00
.gitignore feat: Added documentation for OHIF-v3 (#2450) 2021-06-15 11:15:29 -04:00
CNAME move CNAME file 2019-04-17 14:03:32 -04:00
README.md feat: Added documentation for OHIF-v3 (#2450) 2021-06-15 11:15:29 -04:00
win-server-workaround.bat Silly little bat script to make dev on windows less painful 2019-04-17 16:42:56 -04:00

How To: Documentation Step-by-Step

We use GitBook to create our documentation. It primarily uses markdown, html, css, js, misc. plugins, and configuration to generate high quality, easy to read, and easy to maintain documentation.

Getting Started

Requirements:

Make sure you have the gitbook-cli installed globally:

(Note that gitbook 3.2.3 works with node 10.19.0 and node 10.24.0, but not with node 14.x.)

npm install -g gitbook-cli

Editing and Previewing Changes

Currently, you can only edit and preview a single "book" at a time. We maintain one "book" per API major version. You can find each version's book at:

Past Versions:

  • Template:
    • <project-root>/docs/v<versionNumber>
  • Examples:
    • /docs/v1
    • /docs/v2

Latest Version:

The latest version will always be located in /docs/latest

Live Preview:

In your terminal / command prompt:

cd /docs/latest
gitbook install
gitbook serve

Which should generate output like:

starting server... serving book on http://localhost:4000

Navigating to the the provided URL will show a preview of what the generated book should look like. Any edits you make to the book's markdown files should automatically update in your browser.

Publishing