Skip to content

Commit c9ff3d6

Browse files
committed
docs(wiki): fix tags data
1 parent 054fc9e commit c9ff3d6

67 files changed

Lines changed: 16 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,22 @@ tasks.register("copyDataToWiki", Copy) {
385385
from("src/generated/resources/.wiki_data")
386386
into(outputFolder)
387387

388-
// from("src/generated/resources/.wiki_content")
389-
// into(file("docs/.content"))
388+
//transform tags folder structure to 1.21 format
389+
def renameMap = [
390+
'tags/items/' : 'tags/item/',
391+
'tags/blocks/' : 'tags/block/',
392+
'tags/entity_types/': 'tags/entity_type/',
393+
'tags/fluids/' : 'tags/fluid/',
394+
'tags/game_events/' : 'tags/game_event/'
395+
]
396+
397+
eachFile { file ->
398+
renameMap.each { oldPathPart, newPathPart ->
399+
if (file.path.contains(oldPathPart)) {
400+
file.path = file.path.replaceFirst(oldPathPart, newPathPart)
401+
}
402+
}
403+
}
390404
}
391405

392406
tasks.named("runData") {

docs/.data/alexscaves/tags/entity_types/resists_acid.json renamed to docs/.data/alexscaves/tags/entity_type/resists_acid.json

File renamed without changes.

docs/.data/biomancy/tags/blocks/acid_destructible.json renamed to docs/.data/biomancy/tags/block/acid_destructible.json

File renamed without changes.

docs/.data/biomancy/tags/blocks/allow_gas_to_pass_through.json renamed to docs/.data/biomancy/tags/block/allow_gas_to_pass_through.json

File renamed without changes.

docs/.data/biomancy/tags/blocks/allow_veins_to_attach.json renamed to docs/.data/biomancy/tags/block/allow_veins_to_attach.json

File renamed without changes.

docs/.data/biomancy/tags/blocks/decay_destructible.json renamed to docs/.data/biomancy/tags/block/decay_destructible.json

File renamed without changes.

docs/.data/biomancy/tags/blocks/disallow_veins_to_attach.json renamed to docs/.data/biomancy/tags/block/disallow_veins_to_attach.json

File renamed without changes.

docs/.data/biomancy/tags/blocks/flesh_replaceable.json renamed to docs/.data/biomancy/tags/block/flesh_replaceable.json

File renamed without changes.
File renamed without changes.

docs/.data/biomancy/tags/blocks/lava_destructible.json renamed to docs/.data/biomancy/tags/block/lava_destructible.json

File renamed without changes.

0 commit comments

Comments
 (0)