From 4a57ec7137be505c8193b00b0468bfa26494265e Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Wed, 13 Jun 2018 12:04:42 +0200 Subject: [PATCH] Fix formatting for StandaloneViewer docs, update Gitbook dependencies --- docs/package.json | 6 ++++-- docs/standalone-viewer/usage.md | 22 ++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/package.json b/docs/package.json index ed23bd515..5fcea3fd4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -32,9 +32,11 @@ }, "homepage": "https://github.com/OHIF/Viewers#readme", "dependencies": { + "gitbook-plugin-anchors": "^0.7.1", "gitbook-plugin-edit-link": "^2.0.2", - "gitbook-plugin-github": "^3.0.0", "gitbook-plugin-ga": "^2.0.0", - "gitbook-plugin-sitemap": "^1.2.0" + "gitbook-plugin-github": "^3.0.0", + "gitbook-plugin-sitemap": "^1.2.0", + "gitbook-plugin-theme-cornerstone": "^1.1.1" } } diff --git a/docs/standalone-viewer/usage.md b/docs/standalone-viewer/usage.md index 4abbacda5..367e0302b 100644 --- a/docs/standalone-viewer/usage.md +++ b/docs/standalone-viewer/usage.md @@ -41,7 +41,6 @@ It is possible to build this standalone viewer to run as a client-only bundle of METEOR_PACKAGE_DIRS="../../Packages" meteor-build-client-fixed ../myOutputFolder -u localhost:3000 ```` - 3. Test the bundled client-side package locally. Note: You will need to have Python installed to run the test server for this case. It is not a typical simple HTTP server. The bundled script redirects all URLs following the base URL to index.html. It will then use the routes defined in your application to handle the URL parameters. @@ -50,25 +49,24 @@ It is possible to build this standalone viewer to run as a client-only bundle of So if you navigate to http://localhost:3000/sampleJPEG.json the application will retrieve the JSON from http://localhost:3000/api/sampleJPEG.json and use it to populate the viewer. If something appears to be broken, make sure you retrieve a JSON file at the /api URL. - Create the api folder for your data - ````bash - cd myOutputFolder - mkdir api - ```` + ````bash + cd myOutputFolder + mkdir api + ```` Copy your data into the folder - ````bash - cp ../etc/sample* api/ - ```` + ````bash + cp ../etc/sample* api/ + ```` Run the server - ```` bash - python ../etc/redirectingSimpleServer.py - ```` + ```` bash + python ../etc/redirectingSimpleServer.py + ```` Open your web browser and navigate to http://localhost:3000/sampleJPEG.json or http://localhost:3000/sampleDICOM.json