-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📜Update guides and latest API changes (#127)
* Start work for issue #126 * config: set next version and enabled by default * docs: update to latest version of API v1.0.0-preview.30 * docs: update rendering text guide * docs: update rendering textures guide * docs: update rendering atlas textures guide * docs: update sound guide * docs: remove duplicate load content section and improve it * ide: improve markdown snippets * docs: make additional improvements to rendering text guide * docs: make additional improvements to rendering text guide ide: create task to create docs version ide: create launch config to create docs version config: create npm script to clean node modules directory ci,config: create script to generation new version of docs ide: add labels to all launch configs docs: create version 1.0.0-preview.30 of docs
- Loading branch information
1 parent
8fe5d70
commit b886bf6
Showing
165 changed files
with
17,936 additions
and
954 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Input } from "cliffy/prompt/input.ts"; | ||
|
||
console.clear(); | ||
|
||
const nodeJSDirPath = (Deno.env.get("PATH")?.split(";") | ||
.find((path) => path.includes("nodejs")) ?? "").replace(/\\/g, "/"); | ||
|
||
const version = await Input.prompt({ | ||
message: "Enter the name of the version you want to generate.", | ||
hint: "Example: 1.2.3 or 1.2.3-preview.4", | ||
minLength: 100, | ||
validate: (input: string) => { | ||
input = input.trim(); | ||
return /^(|v)[0-9]+\.[0-9]+\.[0-9]+(|-preview\.[0-9]+)$/.test(input); | ||
}, | ||
transform: (input: string) => { | ||
input = input.trim(); | ||
|
||
return input.startsWith("v") ? input.substring(1) : input; | ||
} | ||
}); | ||
|
||
console.log(`Chosen Version: ${version}`); | ||
|
||
const isWindows = Deno.build.os === "windows"; | ||
const fullNPMPath = isWindows ? `${nodeJSDirPath}npm.cmd` : `${nodeJSDirPath}npm`; | ||
|
||
console.log(`OS NPM Path: ${fullNPMPath}`); | ||
|
||
const args = ["run", "docusaurus", "docs:version", version]; | ||
|
||
console.log(`Executing the command: ${args.join(" ")}`); | ||
console.log(`Create API Docs Version '${version}'...`); | ||
|
||
const command = new Deno.Command(fullNPMPath, { | ||
args: args, | ||
}); | ||
|
||
const { code, stdout, stderr } = command.outputSync(); | ||
console.assert(code === 0); | ||
console.log(new TextDecoder().decode(stdout)); | ||
console.log(new TextDecoder().decode(stderr)); | ||
|
||
console.log(`API Docs Version '${version}' Created Successfully!`); |
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.