-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify docs around registering peripherals
- Loading branch information
Showing
13 changed files
with
270 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ plugins { | |
id("cc-tweaked.vanilla") | ||
} | ||
|
||
val mcVersion: String by extra | ||
|
||
java { | ||
withJavadocJar() | ||
} | ||
|
@@ -17,8 +19,36 @@ dependencies { | |
} | ||
|
||
tasks.javadoc { | ||
title = "CC: Tweaked $version Minecraft $mcVersion" | ||
include("dan200/computercraft/api/**/*.java") | ||
|
||
options { | ||
(this as StandardJavadocDocletOptions) | ||
|
||
groups = mapOf( | ||
"Common" to listOf( | ||
"dan200.computercraft.api", | ||
"dan200.computercraft.api.lua", | ||
"dan200.computercraft.api.peripheral", | ||
), | ||
"Upgrades" to listOf( | ||
"dan200.computercraft.api.client.turtle", | ||
"dan200.computercraft.api.pocket", | ||
"dan200.computercraft.api.turtle", | ||
"dan200.computercraft.api.upgrades", | ||
), | ||
) | ||
|
||
addBooleanOption("-allow-script-in-comments", true) | ||
bottom( | ||
""" | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script> | ||
<link href=" https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.min.css " rel="stylesheet"> | ||
""".trimIndent(), | ||
) | ||
} | ||
|
||
// Include the core-api in our javadoc export. This is wrong, but it means we can export a single javadoc dump. | ||
source(project(":core-api").sourceSets.main.map { it.allJava }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.