diff --git a/projects/typed-peripheral-digitalitems/documentation/generate-docs.mjs b/projects/typed-peripheral-digitalitems/documentation/generate-docs.mjs index 455963a..d48e576 100644 --- a/projects/typed-peripheral-digitalitems/documentation/generate-docs.mjs +++ b/projects/typed-peripheral-digitalitems/documentation/generate-docs.mjs @@ -96,17 +96,6 @@ function escapeCell(value) { return value.replaceAll("|", "\\|").replaceAll("\n", " "); } -async function renderBlock(textureRoot, block) { - const texture = async (face) => (await readFile(resolve(textureRoot, `${block}_${face}.png`))).toString("base64"); - const [side, front, top] = await Promise.all([texture("side"), texture("front_on"), texture("top")]); - return `\n`; -} - export function renderPeripheral(peripheral, revision = "") { const lines = [ "## Peripheral methods", @@ -159,7 +148,7 @@ export async function buildDocs(args = []) { await mkdir(resolve(buildRoot, "assets/peripherals"), { recursive: true }); const textureRoot = resolve(projectRoot, "../core/src/main/resources/assets/digitalitems/textures/block"); for (const block of ["digitizer", "advanced_digitizer"]) { - await writeFile(resolve(buildRoot, "assets/peripherals", `${block}.svg`), await renderBlock(textureRoot, block)); + await cp(resolve(textureRoot, `${block}_front_on.png`), resolve(buildRoot, "assets/peripherals", `${block}.png`)); } await mkdir(resolve(buildRoot, "assets/stylesheets"), { recursive: true }); await mkdir(resolve(buildRoot, "assets/javascripts"), { recursive: true }); diff --git a/projects/typed-peripheral-digitalitems/documentation/guides/advanced-items.md b/projects/typed-peripheral-digitalitems/documentation/guides/advanced-items.md index 58cecc4..00d5cd1 100644 --- a/projects/typed-peripheral-digitalitems/documentation/guides/advanced-items.md +++ b/projects/typed-peripheral-digitalitems/documentation/guides/advanced-items.md @@ -5,7 +5,7 @@ peripheralInterface: AdvancedDigitizer # Advanced Digitizer

The advanced digitizer moves items, fluids, and energy between attached storage and durable digital identifiers.
{{ peripheralType }}
The basic digitizer turns physical item stacks into portable digital identifiers and restores them through its internal inventory.
{{ peripheralType }}