You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of how to use [jsdoc](http://usejsdoc.org/) in MarkLogic project
4
+
5
+
This project uses the [JSDoc Gradle Plugin](https://github.com/liferay/liferay-portal/tree/master/modules/sdk/gradle-plugins-jsdoc) to run the jsdoc task
6
+
7
+
8
+
## Usage
9
+
10
+
All of the configuration is captured in the __build.gradle__ file and the __jsdoc.json__ file. To test this, clone this repoitory and execute the command below in this directory
11
+
12
+
```
13
+
gradle generateJsDoc
14
+
```
15
+
16
+
This will generate jsdoc for the code in __src/main/ml-modules/lib__
17
+
18
+
The html documentation will be generated in __build/docs/jsdoc__
19
+
20
+
## Customize
21
+
22
+
To customise the jsdoc output, you can modify the __jsdoc.json__ file. Refer to the http://usejsdoc.org/about-configuring-jsdoc.html site for details on how to configure this.
23
+
24
+
To customise the jsdoc task generator, please customize the __generateJsDoc__ task in the __build.gradle__ file. Refer to the [JSDoc Gradle Plugin](https://github.com/liferay/liferay-portal/tree/master/modules/sdk/gradle-plugins-jsdoc) site for details on how to configure this.
Copy file name to clipboardExpand all lines: src/main/groovy/com/marklogic/gradle/MarkLogicPlugin.groovy
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,7 @@ class MarkLogicPlugin implements Plugin<Project> {
135
135
project.task("mlClearSchemasDatabase", type: ClearSchemasDatabaseTask, group: dbGroup, description: "Deletes all documents in the schemas database. "+
136
136
"Note that this includes those created via the deployment of resources such as temporal collections and view schemas. You may want to use mlDeleteUserSchemas instead.")
137
137
project.task("mlClearTriggersDatabase", type: ClearTriggersDatabaseTask, group: dbGroup, description: "Deletes all documents in the triggers database")
138
+
project.task("mlDeleteDatabase", type: DeleteDatabaseTask, group: dbGroup, description: "Delete a database along with all of its forests and any replicas; requires -Pconfirm=true to be set so this isn't accidentally executed")
138
139
project.task("mlDeployDatabases", type: DeployDatabasesTask, group: dbGroup, dependsOn: "mlPrepareRestApiDependencies", description: "Deploy each database, updating it if it exists, in the configuration directory")
139
140
project.task("mlMergeContentDatabase", type: MergeContentDatabaseTask, group: dbGroup, description: "Merge the database named by mlAppConfig.contentDatabaseName")
140
141
project.task("mlMergeDatabase", type: MergeDatabaseTask, group: dbGroup, description: "Merge the database named by the project property dbName; e.g. gradle mlMergeDatabase -PdbName=my-database")
@@ -344,8 +345,17 @@ class MarkLogicPlugin implements Plugin<Project> {
0 commit comments