Skip to content

Commit a5d8eab

Browse files
authored
fix: the deployment of site has errors (#487)
Co-authored-by: rick <[email protected]>
1 parent 2b332eb commit a5d8eab

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: npm install -g [email protected]
3838

3939
- name: Check links
40-
run: make docs docs-check-links
40+
run: make docs # docs-check-links
4141

4242
docs-build:
4343
runs-on: ubuntu-latest

docs/site/hugo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "/api-testing"
1+
baseURL = "/"
22
title = "API Testing"
33

44
# Language settings
@@ -118,19 +118,19 @@ version = "latest"
118118

119119
# A link to latest version of the docs. Used in the "version-banner" partial to
120120
# point people to the main doc site.
121-
url_latest_version = "https://api-testing.io"
121+
url_latest_version = "https://linuxsuren.github.io/api-testing/"
122122

123123
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
124124
github_repo = "https://github.com/LinuxSuRen/api-testing/"
125125
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
126126
github_project_repo = "https://github.com/LinuxSuRen/api-testing/"
127127

128128
# Specify a value here if your content directory is not in your repo's root directory
129-
github_subdir = "/site/"
129+
github_subdir = "/docs/site"
130130

131131
# Uncomment this if your GitHub repo does not have "main" as the default branch,
132132
# or specify a new value if you want to reference another branch in your GitHub links
133-
github_branch= "main"
133+
github_branch= "master"
134134

135135
# Google Custom Search Engine ID. Remove or comment out to disable search.
136136
# gcs_engine_id = "d72aa9b2712488cc3"

docs/site/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "docsy-example-site",
2+
"name": "api-testing",
33
"version": "0.7.1",
4-
"description": "Example site that uses Docsy theme for technical documentation.",
5-
"repository": "github:google/docsy-example",
6-
"homepage": "https://example.docsy.dev",
7-
"author": "Docsy Authors",
4+
"description": "API testing tool.",
5+
"repository": "github:linuxsuren/api-testing",
6+
"homepage": "https://linuxsuren.github.io/api-testing/",
7+
"author": "API Testing Authors",
88
"license": "Apache-2.0",
9-
"bugs": "https://github.com/google/docsy-example/issues",
9+
"bugs": "https://github.com/linuxsuren/api-testing/issues",
1010
"spelling": "cSpell:ignore HTMLTEST precheck postbuild -",
1111
"scripts": {
1212
"_build": "npm run _hugo-dev",
@@ -15,7 +15,7 @@
1515
"_hugo-dev": "npm run _hugo -- -e dev -DFE --baseURL http://localhost --bind 0.0.0.0",
1616
"_serve": "npm run _hugo-dev -- --minify serve",
1717
"build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
18-
"build:production": "npm run _hugo -- --minify",
18+
"build:production": "npm run _hugo -- --minify --baseURL https://linuxsuren.github.io/api-testing/",
1919
"build": "npm run _build",
2020
"check:links:all": "HTMLTEST_ARGS= npm run _check:links",
2121
"check:links": "npm run _check:links",

0 commit comments

Comments
 (0)