From 51d53fe1ded0032ae11195816068adceafe5b2bc Mon Sep 17 00:00:00 2001 From: SPGoding Date: Fri, 3 Jan 2025 21:10:10 -0600 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=9D=20Fix=20links=20in=20API=20doc?= =?UTF-8?q?umentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/developer/api.adoc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/developer/api.adoc b/docs/developer/api.adoc index a2a3042b3..9fbd5a4e5 100644 --- a/docs/developer/api.adoc +++ b/docs/developer/api.adoc @@ -7,8 +7,8 @@ == Introduction The Spyglass API provides access to various information that is helpful for data pack/resource pack -toolings. It uses https://github.com/misode/mcmeta:[misode/mcmeta] and -https://github.com/SpyglassMC/vanilla-mcdoc:[SpyglassMC/vanilla-mcdoc] under the hood and provides a +toolings. It uses https://github.com/misode/mcmeta[misode/mcmeta] and +https://github.com/SpyglassMC/vanilla-mcdoc[SpyglassMC/vanilla-mcdoc] under the hood and provides a few advantages over using the GitHub API directly: * Accessible within mainland China. @@ -60,21 +60,21 @@ before trying again. == Endpoints -=== `GET` https://api.spyglassmc.com/mcje/versions:[`/mcje/versions`] +=== `GET` https://api.spyglassmc.com/mcje/versions[`/mcje/versions`] -=== `GET` https://api.spyglassmc.com/mcje/versions/:version/block_states:[`/mcje/versions/:version/block_states`] +=== `GET` https://api.spyglassmc.com/mcje/versions/:version/block_states[`/mcje/versions/:version/block_states`] -=== `GET` https://api.spyglassmc.com/mcje/versions/:version/commands:[`/mcje/versions/:version/commands`] +=== `GET` https://api.spyglassmc.com/mcje/versions/:version/commands[`/mcje/versions/:version/commands`] -=== `GET` https://api.spyglassmc.com/mcje/versions/:version/registries:[`/mcje/versions/:version/registries`] +=== `GET` https://api.spyglassmc.com/mcje/versions/:version/registries[`/mcje/versions/:version/registries`] -=== `GET` https://api.spyglassmc.com/mcje/versions/:version/vanilla-assets-tiny/tarball:[`/mcje/versions/:version/vanilla-assets-tiny/tarball`] +=== `GET` https://api.spyglassmc.com/mcje/versions/:version/vanilla-assets-tiny/tarball[`/mcje/versions/:version/vanilla-assets-tiny/tarball`] -=== `GET` https://api.spyglassmc.com/mcje/versions/:version/vanilla-data/tarball:[`/mcje/versions/:version/vanilla-data/tarball`] +=== `GET` https://api.spyglassmc.com/mcje/versions/:version/vanilla-data/tarball[`/mcje/versions/:version/vanilla-data/tarball`] -=== `GET` https://api.spyglassmc.com/vanilla-mcdoc/symbols:[`/vanilla-mcdoc/symbols`] +=== `GET` https://api.spyglassmc.com/vanilla-mcdoc/symbols[`/vanilla-mcdoc/symbols`] -=== `GET` https://api.spyglassmc.com/vanilla-mcdoc/tarball:[`/vanilla-mcdoc/tarball`] +=== `GET` https://api.spyglassmc.com/vanilla-mcdoc/tarball[`/vanilla-mcdoc/tarball`] === `POST` `/hooks/github` From dd8bb1c71fb162e1060da3879b4274da3eb858b6 Mon Sep 17 00:00:00 2001 From: SPGoding Date: Fri, 3 Jan 2025 21:10:35 -0600 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A7=B1=20Fix=20type=20in=20playbook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/api-server/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/api-server/tasks/main.yml b/ansible/roles/api-server/tasks/main.yml index fa8f30a33..d8d6c9a13 100644 --- a/ansible/roles/api-server/tasks/main.yml +++ b/ansible/roles/api-server/tasks/main.yml @@ -48,7 +48,7 @@ - name: Create nginx reverse proxy become: true ansible.builtin.template: - src: weblate.conf + src: api-server.conf dest: /etc/nginx/conf.d/api-server.conf mode: '644' notify: Reload nginx From 90b73e66505829c078e89e9cd01164261763b6fb Mon Sep 17 00:00:00 2001 From: SPGoding Date: Fri, 3 Jan 2025 21:10:52 -0600 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9B=20Fix=20unable=20to=20clone=20?= =?UTF-8?q?repos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/web-api-server/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-api-server/src/utils.ts b/packages/web-api-server/src/utils.ts index bb71de727..1937de16b 100644 --- a/packages/web-api-server/src/utils.ts +++ b/packages/web-api-server/src/utils.ts @@ -68,7 +68,7 @@ export async function initGitRepos(rootDir: string) { `https://github.com/${owner}/${repo}.git`, path.join(rootDir, repoDirName), singleBranch - ? ['--single-branch', `--branch ${singleBranch}`, '--progress'] + ? ['--single-branch', `--branch=${singleBranch}`, '--progress'] : ['--progress'], ) console.info(chalk.green(`Repo ${owner}/${repoDirName} cloned.`))