Add jsdoc and refactor a bit of code

This commit is contained in:
Yash-Singh1
2021-11-06 19:36:06 -07:00
parent 66d4d9d5b8
commit d2d8c9bc8e
18 changed files with 21590 additions and 35968 deletions

View File

@@ -1005,7 +1005,7 @@ Note: currentConfig is set in this function
- `conf` the base currentConfig to use as siteConfig
Returns **any** the siteConfig
Returns **[Object][6]** the siteConfig
## getSiteConfig
@@ -1018,7 +1018,7 @@ Returns **any** the siteConfig
**Notes**:
Returns **any** values in siteConfig.
Returns **any**
Returns **[Object][6]** the siteConfig
## setConfig
@@ -1067,6 +1067,14 @@ Note: modifies options in-place
- `options` the potential setConfig parameter
## addDirective
Pushes in a directive to the configuration
### Parameters
- `directive` **[Object][6]** The directive to push in
## reset
## reset
@@ -1185,3 +1193,5 @@ mermaidAPI.initialize({
[4]: 8.6.0_docs.md
[5]: #mermaidapi-configuration-defaults
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object