aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrystianUjma <kujma@virtuslab.com>2019-03-19 11:34:38 +0100
committerKrystianUjma <kujma@virtuslab.com>2019-03-19 15:56:01 +0100
commit2e94ac4098d9e2582223485b981114fa462e5757 (patch)
treeed1b772bce9d790c473b346bcce435e893b29be7
parentb566f8852e94f9a17be86bf845aeff6c36bd8378 (diff)
parenta9c91cb7dc54c1554be5cf8de90516c929c0c1cb (diff)
downloaddokka-2e94ac4098d9e2582223485b981114fa462e5757.tar.gz
dokka-2e94ac4098d9e2582223485b981114fa462e5757.tar.bz2
dokka-2e94ac4098d9e2582223485b981114fa462e5757.zip
Merge branch 'kotlin-website-jonnyzzz' into multiplatform-support
-rw-r--r--.gitattributes2
-rw-r--r--.gitignore3
-rw-r--r--.idea/.name1
-rw-r--r--.idea/artifacts/dokka_jar.xml9
-rw-r--r--.idea/artifacts/dokka_zip.xml27
-rw-r--r--.idea/artifacts/javadoc_jar.xml8
-rw-r--r--.idea/codeStyles/Project.xml24
-rw-r--r--.idea/codeStyles/codeStyleConfig.xml5
-rw-r--r--.idea/compiler.xml45
-rw-r--r--.idea/copyright/profiles_settings.xml4
-rw-r--r--.idea/encodings.xml6
-rw-r--r--.idea/inspectionProfiles/Project_Default.xml7
-rw-r--r--.idea/inspectionProfiles/profiles_settings.xml8
-rw-r--r--.idea/kotlinc.xml11
-rw-r--r--.idea/misc.xml31
-rw-r--r--.idea/modules.xml39
-rw-r--r--.idea/runConfigurations/All_tests.xml7
-rw-r--r--.idea/runConfigurations/Core_tests.xml21
-rw-r--r--.idea/runConfigurations/Dokka.xml23
-rw-r--r--.idea/runConfigurations/Gradle_integration_tests.xml21
-rw-r--r--.idea/runConfigurations/Playground.xml9
-rw-r--r--.idea/runConfigurations/Stdlib.xml23
-rw-r--r--.idea/runConfigurations/Stdlib_Javadoc.xml15
-rw-r--r--.idea/scopes/scope_settings.xml5
-rw-r--r--build.gradle33
-rw-r--r--buildSrc/build.gradle4
-rw-r--r--buildSrc/src/main/groovy/org/jetbrains/CorrectShadowPublishing.groovy9
-rw-r--r--core/build.gradle2
-rw-r--r--core/src/main/kotlin/Analysis/AnalysisEnvironment.kt223
-rw-r--r--core/src/main/kotlin/Analysis/DokkaAnalyzerFacades.kt163
-rw-r--r--core/src/main/kotlin/DokkaBootstrapImpl.kt32
-rw-r--r--core/src/main/kotlin/Formats/FormatDescriptor.kt1
-rw-r--r--core/src/main/kotlin/Formats/KotlinWebsiteFormatService.kt10
-rw-r--r--core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt130
-rw-r--r--core/src/main/kotlin/Formats/PackageListService.kt11
-rw-r--r--core/src/main/kotlin/Formats/StructuredFormatService.kt691
-rw-r--r--core/src/main/kotlin/Formats/YamlOutlineService.kt2
-rw-r--r--core/src/main/kotlin/Generation/DocumentationMerger.kt217
-rw-r--r--core/src/main/kotlin/Generation/DokkaGenerator.kt93
-rw-r--r--core/src/main/kotlin/Generation/FileGenerator.kt87
-rw-r--r--core/src/main/kotlin/Generation/configurationImpl.kt78
-rw-r--r--core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt25
-rw-r--r--core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt4
-rw-r--r--core/src/main/kotlin/Kotlin/DescriptorDocumentationParser.kt2
-rw-r--r--core/src/main/kotlin/Kotlin/DocumentationBuilder.kt172
-rw-r--r--core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt115
-rw-r--r--core/src/main/kotlin/Kotlin/KotlinAsJavaDocumentationBuilder.kt2
-rw-r--r--core/src/main/kotlin/Kotlin/KotlinLanguageService.kt2
-rw-r--r--core/src/main/kotlin/Locations/Location.kt19
-rw-r--r--core/src/main/kotlin/Model/Content.kt6
-rw-r--r--core/src/main/kotlin/Model/DocumentationNode.kt31
-rw-r--r--core/src/main/kotlin/Model/DocumentationReference.kt65
-rw-r--r--core/src/main/kotlin/Samples/DefaultSampleProcessingService.kt2
-rw-r--r--core/src/main/kotlin/Samples/KotlinWebsiteSampleProcessingService.kt86
-rw-r--r--core/src/main/kotlin/Utilities/DokkaModules.kt29
-rw-r--r--core/src/main/kotlin/Utilities/ServiceLocator.kt2
-rw-r--r--core/src/main/kotlin/javadoc/dokka-adapters.kt9
-rw-r--r--core/src/test/kotlin/TestAPI.kt238
-rw-r--r--core/src/test/kotlin/format/GFMFormatTest.kt18
-rw-r--r--core/src/test/kotlin/format/HtmlFormatTest.kt161
-rw-r--r--core/src/test/kotlin/format/KotlinWebSiteFormatTest.kt40
-rw-r--r--core/src/test/kotlin/format/KotlinWebSiteHtmlFormatTest.kt68
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt443
-rw-r--r--core/src/test/kotlin/issues/IssuesTest.kt16
-rw-r--r--core/src/test/kotlin/javadoc/JavadocTest.kt77
-rw-r--r--core/src/test/kotlin/model/ClassTest.kt123
-rw-r--r--core/src/test/kotlin/model/CommentTest.kt36
-rw-r--r--core/src/test/kotlin/model/FunctionTest.kt67
-rw-r--r--core/src/test/kotlin/model/JavaTest.kt34
-rw-r--r--core/src/test/kotlin/model/KotlinAsJavaTest.kt15
-rw-r--r--core/src/test/kotlin/model/LinkTest.kt22
-rw-r--r--core/src/test/kotlin/model/PackageTest.kt57
-rw-r--r--core/src/test/kotlin/model/PropertyTest.kt66
-rw-r--r--core/src/test/kotlin/model/SourceLinksErrorTest.kt5
-rw-r--r--core/src/test/kotlin/model/SourceLinksTest.kt5
-rw-r--r--core/src/test/kotlin/model/TypeAliasTest.kt18
-rw-r--r--core/testdata/format/website-html/sampleWithAsserts.html2
-rw-r--r--core/testdata/format/website-html/sampleWithAsserts.kt2
-rw-r--r--gradle.properties6
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin54708 -> 56172 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties2
-rw-r--r--gradlew.bat168
-rw-r--r--integration/src/main/kotlin/org/jetbrains/dokka/configuration.kt96
-rw-r--r--runners/ant/src/main/kotlin/ant/dokka.kt221
-rw-r--r--runners/cli/build.gradle6
-rw-r--r--runners/cli/src/main/kotlin/cli/DokkaArgumentsParser.kt185
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt308
-rw-r--r--runners/gradle-plugin/src/main/kotlin/main.kt9
-rw-r--r--runners/maven-plugin/src/main/kotlin/DokkaMojo.kt50
-rw-r--r--settings.gradle15
90 files changed, 3373 insertions, 1917 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..1c119d95
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+gradlew binary
+gradlew.bat binary \ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 59243df5..925991dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+.idea/
+*.ipr
+*.iml
doc
### Maven template
diff --git a/.idea/.name b/.idea/.name
deleted file mode 100644
index c8bb43f2..00000000
--- a/.idea/.name
+++ /dev/null
@@ -1 +0,0 @@
-dokka \ No newline at end of file
diff --git a/.idea/artifacts/dokka_jar.xml b/.idea/artifacts/dokka_jar.xml
deleted file mode 100644
index 5998df7b..00000000
--- a/.idea/artifacts/dokka_jar.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<component name="ArtifactManager">
- <artifact type="jar" name="dokka:jar">
- <output-path>$PROJECT_DIR$/out/artifacts/</output-path>
- <root id="archive" name="dokka.jar">
- <element id="module-output" name="dokka" />
- <element id="module-output" name="ant" />
- </root>
- </artifact>
-</component> \ No newline at end of file
diff --git a/.idea/artifacts/dokka_zip.xml b/.idea/artifacts/dokka_zip.xml
deleted file mode 100644
index b636e097..00000000
--- a/.idea/artifacts/dokka_zip.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<component name="ArtifactManager">
- <artifact name="dokka:zip">
- <output-path>$PROJECT_DIR$/out/artifacts</output-path>
- <root id="root">
- <element id="archive" name="dokka.zip">
- <element id="directory" name="lib">
- <element id="artifact" artifact-name="dokka:jar" />
- <element id="library" level="project" name="trove4j" />
- <element id="library" level="project" name="jps-model" />
- <element id="library" level="project" name="asm" />
- <element id="library" level="project" name="protobuf" />
- <element id="library" level="project" name="picocontainer" />
- <element id="library" level="project" name="intellij-core-analysis" />
- <element id="library" level="project" name="markdown" />
- <element id="library" level="project" name="kotlin-for-upsource" />
- <element id="library" level="project" name="jsoup" />
- <element id="library" level="project" name="jdom" />
- <element id="library" level="project" name="ant-1.9.4" />
- <element id="library" level="project" name="cli-parser" />
- <element id="library" level="project" name="guava" />
- <element id="library" level="project" name="com.google.inject:guice:4.0" />
- <element id="artifact" artifact-name="javadoc:jar" />
- </element>
- </element>
- </root>
- </artifact>
-</component> \ No newline at end of file
diff --git a/.idea/artifacts/javadoc_jar.xml b/.idea/artifacts/javadoc_jar.xml
deleted file mode 100644
index 0f0eee5b..00000000
--- a/.idea/artifacts/javadoc_jar.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<component name="ArtifactManager">
- <artifact type="jar" name="javadoc:jar">
- <output-path>$PROJECT_DIR$/out/artifacts/javadoc_jar</output-path>
- <root id="archive" name="javadoc.jar">
- <element id="module-output" name="javadoc" />
- </root>
- </artifact>
-</component> \ No newline at end of file
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
deleted file mode 100644
index ba49a93e..00000000
--- a/.idea/codeStyles/Project.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<component name="ProjectCodeStyleConfiguration">
- <code_scheme name="Project" version="173">
- <JetCodeStyleSettings>
- <option name="CONTINUATION_INDENT_IN_PARAMETER_LISTS" value="false" />
- <option name="CONTINUATION_INDENT_IN_ARGUMENT_LISTS" value="false" />
- <option name="CONTINUATION_INDENT_FOR_EXPRESSION_BODIES" value="false" />
- <option name="CONTINUATION_INDENT_FOR_CHAINED_CALLS" value="false" />
- <option name="CONTINUATION_INDENT_IN_SUPERTYPE_LISTS" value="false" />
- <option name="CONTINUATION_INDENT_IN_IF_CONDITIONS" value="false" />
- <option name="WRAP_EXPRESSION_BODY_FUNCTIONS" value="1" />
- </JetCodeStyleSettings>
- <codeStyleSettings language="kotlin">
- <option name="CALL_PARAMETERS_WRAP" value="5" />
- <option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
- <option name="CALL_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
- <option name="METHOD_PARAMETERS_WRAP" value="5" />
- <option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
- <option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
- <option name="EXTENDS_LIST_WRAP" value="1" />
- <option name="METHOD_CALL_CHAIN_WRAP" value="1" />
- <option name="ASSIGNMENT_WRAP" value="1" />
- </codeStyleSettings>
- </code_scheme>
-</component> \ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
deleted file mode 100644
index 79ee123c..00000000
--- a/.idea/codeStyles/codeStyleConfig.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<component name="ProjectCodeStyleConfiguration">
- <state>
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
- </state>
-</component> \ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
deleted file mode 100644
index 9700d3cc..00000000
--- a/.idea/compiler.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="CompilerConfiguration">
- <wildcardResourcePatterns>
- <entry name="!?*.java" />
- <entry name="!?*.form" />
- <entry name="!?*.class" />
- <entry name="!?*.groovy" />
- <entry name="!?*.scala" />
- <entry name="!?*.flex" />
- <entry name="!?*.kt" />
- <entry name="!?*.clj" />
- </wildcardResourcePatterns>
- <annotationProcessing>
- <profile name="Maven default annotation processors profile" enabled="true">
- <sourceOutputDir name="target/generated-sources/annotations" />
- <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
- <outputRelativeToContentRoot value="true" />
- <module name="dokka-maven-plugin" />
- </profile>
- </annotationProcessing>
- <bytecodeTargetLevel>
- <module name="android-gradle-plugin_main" target="1.8" />
- <module name="android-gradle-plugin_test" target="1.8" />
- <module name="ant_main" target="1.8" />
- <module name="ant_test" target="1.8" />
- <module name="buildSrc_main" target="1.8" />
- <module name="buildSrc_test" target="1.8" />
- <module name="cli_main" target="1.8" />
- <module name="cli_test" target="1.8" />
- <module name="core_main" target="1.8" />
- <module name="core_test" target="1.8" />
- <module name="fatjar_main" target="1.8" />
- <module name="fatjar_test" target="1.8" />
- <module name="gradle-integration-tests_main" target="1.8" />
- <module name="gradle-integration-tests_test" target="1.8" />
- <module name="gradle-plugin_main" target="1.8" />
- <module name="gradle-plugin_test" target="1.8" />
- <module name="integration_main" target="1.8" />
- <module name="integration_test" target="1.8" />
- <module name="maven-plugin_main" target="1.8" />
- <module name="maven-plugin_test" target="1.8" />
- </bytecodeTargetLevel>
- </component>
-</project> \ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
deleted file mode 100644
index f4aa08e3..00000000
--- a/.idea/copyright/profiles_settings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component name="CopyrightManager">
- <settings default="" />
-</component> \ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
deleted file mode 100644
index f7589596..00000000
--- a/.idea/encodings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false">
- <file url="PROJECT" charset="UTF-8" />
- </component>
-</project> \ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index 06bda8c9..00000000
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<component name="InspectionProjectProfileManager">
- <profile version="1.0">
- <option name="myName" value="Project Default" />
- <inspection_tool class="MemberVisibilityCanPrivate" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
- <inspection_tool class="PackageDirectoryMismatch" enabled="false" level="WARNING" enabled_by_default="false" />
- </profile>
-</component> \ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
deleted file mode 100644
index 8c1e55e8..00000000
--- a/.idea/inspectionProfiles/profiles_settings.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component name="InspectionProjectProfileManager">
- <settings>
- <option name="PROJECT_PROFILE" value="Project Default" />
- <option name="USE_PROJECT_PROFILE" value="true" />
- <version value="1.0" />
- </settings>
-</component> \ No newline at end of file
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
deleted file mode 100644
index b072dc00..00000000
--- a/.idea/kotlinc.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="Kotlin2JsCompilerArguments">
- <option name="sourceMapEmbedSources" />
- <option name="sourceMapPrefix" />
- </component>
- <component name="KotlinCommonCompilerArguments">
- <option name="apiVersion" value="1.1" />
- <option name="languageVersion" value="1.1" />
- </component>
-</project> \ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 537aa8e4..00000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ASMPluginConfiguration">
- <asm skipDebug="false" skipFrames="false" skipCode="false" expandFrames="false" />
- <groovy codeStyle="LEGACY" />
- </component>
- <component name="EntryPointsManager">
- <list size="5">
- <item index="0" class="java.lang.String" itemvalue="org.apache.maven.plugins.annotations.Mojo" />
- <item index="1" class="java.lang.String" itemvalue="org.gradle.api.tasks.InputFiles" />
- <item index="2" class="java.lang.String" itemvalue="org.gradle.api.tasks.OutputDirectory" />
- <item index="3" class="java.lang.String" itemvalue="org.gradle.api.tasks.TaskAction" />
- <item index="4" class="java.lang.String" itemvalue="org.junit.BeforeClass" />
- </list>
- </component>
- <component name="FrameworkDetectionExcludesConfiguration">
- <file type="web" url="file://$PROJECT_DIR$/dokka-fatjar" />
- <file type="web" url="file://$PROJECT_DIR$/g