From 9860699d5f72bfacd70053b36fa0da0d48fd7643 Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Wed, 3 Apr 2019 17:06:42 +0200 Subject: [PATCH] Introduces import snippets for static functions Adds snippets for import of modules and their exported functions to the API documentation. --- config/jsdoc/api/template/tmpl/container.tmpl | 18 ++++++++++++++++-- config/jsdoc/api/template/tmpl/method.tmpl | 4 ++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/config/jsdoc/api/template/tmpl/container.tmpl b/config/jsdoc/api/template/tmpl/container.tmpl index 39568170b8..baca743283 100644 --- a/config/jsdoc/api/template/tmpl/container.tmpl +++ b/config/jsdoc/api/template/tmpl/container.tmpl @@ -18,7 +18,7 @@
- a.replace(/>\./g, '>').replace(/\. -
import  from '';
+ + +
import * as ol from '';
+ +
import  from '';
+
@@ -143,6 +156,7 @@

Methods

+
diff --git a/config/jsdoc/api/template/tmpl/method.tmpl b/config/jsdoc/api/template/tmpl/method.tmpl index 8db940d7ed..a5ddc77f5d 100644 --- a/config/jsdoc/api/template/tmpl/method.tmpl +++ b/config/jsdoc/api/template/tmpl/method.tmpl @@ -27,6 +27,10 @@ var self = this;
+ +
import {} from '';
+ +