Skip to content

Commit 1aae2c9

Browse files
authored
Use TD_BUILD_CTX for doc-rooted builds (#2564)
1 parent 601fd46 commit 1aae2c9

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

docsy.dev/config/_default/params.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# status: archived # Then fetch include
88

99
version: &docsyVersion 0.14.3-dev
10-
tdBuildId: 008-over-main-8a63d915
10+
tdBuildId: 009-over-main-601fd46d
1111
versionLatest: &versionLatest v0.14.2
1212
version_menu: *docsyVersion
1313
version_menu_pagelinks: true

docsy.dev/netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ HUGO_THEME = "repo"
1414
[context.production]
1515
command = "scripts/_install.sh && npm run build:production"
1616

17+
[context.doc-rooted.environment]
18+
TD_BUILD_CTX = "doc-rooted"
19+
1720
# Redirects for slug swap: /docs/adding-content/ → /docs/content/
1821
[[redirects]]
1922
from = "/docs/adding-content/content"

docsy.dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"_check:links": "make --keep-going check-links",
1010
"_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"",
1111
"_hugo-dev-test": "npm run _hugo-dev -- --templateMetrics --templateMetricsHints",
12-
"_hugo-dev": "cross-env npm run _hugo -- -e \"${HUGO_ENVIRONMENT:-development}\" -DFE",
12+
"_hugo-dev": "cross-env npm run _hugo -- -e \"${TD_BUILD_CTX:-dev}\" -DFE",
1313
"_hugo": "hugo --cleanDestinationDir --logLevel info --themesDir ../..",
1414
"_postbuild": "npm run _check:links--warn",
1515
"_serve": "npm run _hugo-dev -- serve --disableFastRender --renderToMemory",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsy",
3-
"version": "0.14.3-dev+008-over-main-8a63d915",
3+
"version": "0.14.3-dev+009-over-main-601fd46d",
44
"repository": "github:google/docsy",
55
"homepage": "https://www.docsy.dev",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)