Fix formatting for StandaloneViewer docs, update Gitbook dependencies
This commit is contained in:
parent
e528c430de
commit
4a57ec7137
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user