From 1959b914c0838be814d45f617517ac73fa33cd47 Mon Sep 17 00:00:00 2001 From: Martin Bonnin Date: Wed, 18 Nov 2020 12:48:03 +0100 Subject: Add matchingRegex (#598) * add matchingRegex as a simpler replacement for `prefix` * remove useless check * added a note about the order of the matchingRegex --- docs/src/doc/docs/user_guide/cli/usage.md | 2 +- docs/src/doc/docs/user_guide/gradle/usage.md | 5 +++-- docs/src/doc/docs/user_guide/maven/usage.md | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'docs/src') diff --git a/docs/src/doc/docs/user_guide/cli/usage.md b/docs/src/doc/docs/user_guide/cli/usage.md index 6f9ca84a..1f6b1124 100644 --- a/docs/src/doc/docs/user_guide/cli/usage.md +++ b/docs/src/doc/docs/user_guide/cli/usage.md @@ -31,7 +31,7 @@ Dokka supports the following command line arguments: * `-skipDeprecated` - if set, deprecated elements are not included in the generated documentation * `-reportUndocumented` - warn about undocumented members * `-skipEmptyPackages` - do not create index pages for empty packages - * `-packageOptions` - list of package options in format `prefix,-deprecated,-privateApi,+reportUndocumented;prefix, ...`, separated by `;` + * `-packageOptions` - list of package options in format `matchingRegex,-deprecated,-privateApi,+reportUndocumented;matchingRegex, ...`, separated by `;` * `-links` - list of external documentation links in format `url^packageListUrl^^url2...`, separated by `;` * `-srcLink` - mapping between a source directory and a Web site for browsing the code in format `=[#lineSuffix]` * `-noStdlibLink` - disable linking to online kotlin-stdlib documentation diff --git a/docs/src/doc/docs/user_guide/gradle/usage.md b/docs/src/doc/docs/user_guide/gradle/usage.md index 5ca0eb30..cea1f80e 100644 --- a/docs/src/doc/docs/user_guide/gradle/usage.md +++ b/docs/src/doc/docs/user_guide/gradle/usage.md @@ -169,8 +169,9 @@ dokkaHtml { // Allows to customize documentation generation options on a per-package basis // Repeat for multiple packageOptions + // If multiple packages match the same matchingRegex, the longuest matchingRegex will be used perPackageOption { - prefix.set("kotlin") // will match kotlin and all sub-packages of it + matchingRegex.set("kotlin($|\\.).*") // will match kotlin and all sub-packages of it // All options are optional, default values are below: skipDeprecated.set(false) reportUndocumented.set(true) // Emit warnings about not documented members @@ -178,7 +179,7 @@ dokkaHtml { } // Suppress a package perPackageOption { - prefix.set("kotlin.internal") // will match kotlin.internal and all sub-packages of it + matchingRegex.set(".*\.internal.*") // will match all .internal packages and sub-packages suppress.set(true) } } diff --git a/docs/src/doc/docs/user_guide/maven/usage.md b/docs/src/doc/docs/user_guide/maven/usage.md index 812737fa..feb53048 100644 --- a/docs/src/doc/docs/user_guide/maven/usage.md +++ b/docs/src/doc/docs/user_guide/maven/usage.md @@ -142,7 +142,7 @@ The available configuration options are shown below: - kotlin + kotlin($|\.).* false -- cgit