fix: the deployment of site has errors (#487)

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
This commit is contained in:
Rick 2024-06-13 17:37:17 +08:00 committed by GitHub
parent 2b332eb25a
commit a5d8eabd4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 12 deletions

View File

@ -37,7 +37,7 @@ jobs:
run: npm install -g linkinator@6.0.4
- name: Check links
run: make docs docs-check-links
run: make docs # docs-check-links
docs-build:
runs-on: ubuntu-latest

View File

@ -1,4 +1,4 @@
baseURL = "/api-testing"
baseURL = "/"
title = "API Testing"
# Language settings
@ -118,7 +118,7 @@ version = "latest"
# A link to latest version of the docs. Used in the "version-banner" partial to
# point people to the main doc site.
url_latest_version = "https://api-testing.io"
url_latest_version = "https://linuxsuren.github.io/api-testing/"
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
github_repo = "https://github.com/LinuxSuRen/api-testing/"
@ -126,11 +126,11 @@ github_repo = "https://github.com/LinuxSuRen/api-testing/"
github_project_repo = "https://github.com/LinuxSuRen/api-testing/"
# Specify a value here if your content directory is not in your repo's root directory
github_subdir = "/site/"
github_subdir = "/docs/site"
# Uncomment this if your GitHub repo does not have "main" as the default branch,
# or specify a new value if you want to reference another branch in your GitHub links
github_branch= "main"
github_branch= "master"
# Google Custom Search Engine ID. Remove or comment out to disable search.
# gcs_engine_id = "d72aa9b2712488cc3"

View File

@ -1,12 +1,12 @@
{
"name": "docsy-example-site",
"name": "api-testing",
"version": "0.7.1",
"description": "Example site that uses Docsy theme for technical documentation.",
"repository": "github:google/docsy-example",
"homepage": "https://example.docsy.dev",
"author": "Docsy Authors",
"description": "API testing tool.",
"repository": "github:linuxsuren/api-testing",
"homepage": "https://linuxsuren.github.io/api-testing/",
"author": "API Testing Authors",
"license": "Apache-2.0",
"bugs": "https://github.com/google/docsy-example/issues",
"bugs": "https://github.com/linuxsuren/api-testing/issues",
"spelling": "cSpell:ignore HTMLTEST precheck postbuild -",
"scripts": {
"_build": "npm run _hugo-dev",
@ -15,7 +15,7 @@
"_hugo-dev": "npm run _hugo -- -e dev -DFE --baseURL http://localhost --bind 0.0.0.0",
"_serve": "npm run _hugo-dev -- --minify serve",
"build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:production": "npm run _hugo -- --minify",
"build:production": "npm run _hugo -- --minify --baseURL https://linuxsuren.github.io/api-testing/",
"build": "npm run _build",
"check:links:all": "HTMLTEST_ARGS= npm run _check:links",
"check:links": "npm run _check:links",