-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've no motivation for modding right now, but always got time for build system busywork! CC:T (and CC before that) has always published its API docs. However, they're not always the most helpful — they're useful if you know what you're looking for, but aren't a good getting-started guide. Part of the issue here is there's no examples, and everything is described pretty abstractly. I have occasionally tried to improve this (e.g. the peripheral docs in bdffabc), but it's a long road. This commit adds a new example mod, which registers peripherals, an API and a turtle upgrade. While the mod itself isn't exported as part of the docs, we reference blocks of it using Java's new {@snippet} tag. - Switch the Forge project to use NeoForge's new Legacy MDG plugin. We don't *need* to do this, but it means the build logic for Forge and NeoForge is more closely aligned. - Add a new SnippetTaglet, which is a partial backport of Java 18+'s {@snippet}. - Add an example mod. This is a working multi-loader mod, complete with datagen (albeit with no good multi-loader abstractions). - Move our existing <pre>{@code ...}</pre> blocks into the example mod, replacing them with {@snippet}s. - Add a new overview page to the docs, providing some getting-started information. We had this already in the dan200.computercraft.api package docs, but it's not especially visible there.
- Loading branch information
Showing
57 changed files
with
1,084 additions
and
611 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ SPDX-PackageSupplier = "Jonathan Coates <[email protected]>" | |
SPDX-PackageDownloadLocation = "https://github.com/cc-tweaked/cc-tweaked" | ||
|
||
[[annotations]] | ||
# Generated/data files are CC0. | ||
SPDX-FileCopyrightText = "The CC: Tweaked Developers" | ||
SPDX-License-Identifier = "CC0-1.0" | ||
path = [ | ||
# Generated/data files are CC0. | ||
"gradle/gradle-daemon-jvm.properties", | ||
"projects/common/src/main/resources/assets/computercraft/sounds.json", | ||
"projects/common/src/main/resources/assets/computercraft/sounds/empty.ogg", | ||
|
@@ -20,6 +20,11 @@ path = [ | |
"projects/**/src/generated/**", | ||
"projects/web/src/htmlTransform/export/index.json", | ||
"projects/web/src/htmlTransform/export/items/minecraft/**", | ||
# GitHub build scripts are CC0. While we could add a header to each file, | ||
# it's unclear if it will break actions or issue templates in some way. | ||
".github/**", | ||
# Example mod is CC0. | ||
"projects/**/src/examples/**" | ||
] | ||
|
||
[[annotations]] | ||
|
@@ -46,7 +51,6 @@ path = [ | |
"projects/fabric/src/main/resources/fabric.mod.json", | ||
"projects/fabric/src/testMod/resources/computercraft-gametest.fabric.mixins.json", | ||
"projects/fabric/src/testMod/resources/fabric.mod.json", | ||
"projects/forge/src/client/resources/computercraft-client.forge.mixins.json", | ||
"projects/web/src/frontend/mount/.settings", | ||
"projects/web/src/frontend/mount/example.nfp", | ||
"projects/web/src/frontend/mount/example.nft", | ||
|
@@ -73,7 +77,7 @@ path = [ | |
] | ||
|
||
[[annotations]] | ||
# Community-contributed license files | ||
# Community-contributed language files | ||
SPDX-FileCopyrightText = "2017 The CC: Tweaked Developers" | ||
SPDX-License-Identifier = "LicenseRef-CCPL" | ||
path = [ | ||
|
@@ -87,18 +91,11 @@ path = [ | |
] | ||
|
||
[[annotations]] | ||
# Community-contributed license files | ||
# Community-contributed language files | ||
SPDX-FileCopyrightText = "2017 The CC: Tweaked Developers" | ||
SPDX-License-Identifier = "MPL-2.0" | ||
path = "projects/common/src/main/resources/assets/computercraft/lang/**" | ||
|
||
[[annotations]] | ||
# GitHub build scripts are CC0. While we could add a header to each file, | ||
# it's unclear if it will break actions or issue templates in some way. | ||
SPDX-FileCopyrightText = "Jonathan Coates <[email protected]>" | ||
SPDX-License-Identifier = "CC0-1.0" | ||
path = ".github/**" | ||
|
||
[[annotations]] | ||
path = ["gradle/wrapper/**"] | ||
SPDX-FileCopyrightText = "Gradle Inc" | ||
|
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
26 changes: 0 additions & 26 deletions
26
buildSrc/src/main/kotlin/cc/tweaked/gradle/ForgeExtensions.kt
This file was deleted.
Oops, something went wrong.
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.