From 21bb05a4face1e27a53dd8ab2d3516e77f0e0ce3 Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Fri, 21 May 2021 17:27:05 -0400 Subject: [PATCH] Fix syntax error --- docs/frontend_architecture/HTML5_API.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/frontend_architecture/HTML5_API.rst b/docs/frontend_architecture/HTML5_API.rst index 144b1e9a57d..f686b7813f9 100644 --- a/docs/frontend_architecture/HTML5_API.rst +++ b/docs/frontend_architecture/HTML5_API.rst @@ -17,6 +17,7 @@ Access the API from within an HTML5 app by using ``window.kolibri.[function]`` Functions: .. code-block:: javascript + /** * Type definition for Language metadata * @typedef {Object} Language @@ -97,8 +98,8 @@ Functions: * Method to search for contentnodes on Kolibri and return * an array of matching metadata * @param {Object} options - The different options to search by - * @param {string=} options.keyword - search term for key word search - * @param {string=} options.under - id of topic to search under, or 'self' + * @param {string} [options.keyword] - search term for key word search + * @param {string} [options.under] - id of topic to search under, or 'self' * @return {Promise} - a Promise that resolves to an array of ContentNodes */ searchContent(options)