[refactor-doc] Updates the API doc for new API usage. (#2553)

* [refactor-doc] Updates the API doc to new API usage.
This commit is contained in:
Shefali Joshi 2019-12-06 09:40:24 -08:00 committed by Andrew Henry
parent 28d2194d51
commit 55327a0150

7
API.md
View File

@ -109,15 +109,13 @@ script loaders are also supported.
<html> <html>
<head> <head>
<title>Open MCT</title> <title>Open MCT</title>
<script src="openmct.js"></script> <script src="dist/openmct.js"></script>
</head> </head>
<body> <body>
<script> <script>
openmct.setAssetPath('openmct/dist');
openmct.install(openmct.plugins.LocalStorage()); openmct.install(openmct.plugins.LocalStorage());
openmct.install(openmct.plugins.MyItems()); openmct.install(openmct.plugins.MyItems());
openmct.install(openmct.plugins.UTCTimeSystem()); openmct.install(openmct.plugins.UTCTimeSystem());
openmct.install(openmct.plugins.Espresso());
openmct.start(); openmct.start();
</script> </script>
</body> </body>
@ -128,9 +126,6 @@ The Open MCT library included above requires certain assets such as html
templates, images, and css. If you installed Open MCT from GitHub as described templates, images, and css. If you installed Open MCT from GitHub as described
in the section on [Building from Source](#building-from-source) then these in the section on [Building from Source](#building-from-source) then these
assets will have been downloaded along with the Open MCT javascript library. assets will have been downloaded along with the Open MCT javascript library.
You can specify the location of these assets by calling `openmct.setAssetPath()`.
Typically this will be the same location as the `openmct.js` library is
included from.
There are some plugins bundled with the application that provide UI, There are some plugins bundled with the application that provide UI,
persistence, and other default configuration which are necessary to be able to persistence, and other default configuration which are necessary to be able to