Skip to content

Commit 57e93be

Browse files
author
abrulic
committed
check
1 parent 652352d commit 57e93be

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ jobs:
6969
run: pnpm install --prefer-offline --frozen-lockfile
7070

7171
- name: Generate docs
72-
working-directory: docs
72+
#FIXME uncomment this if you use inside another repo
73+
# working-directory: docs
7374
env:
7475
APP_ENV: production
7576
run: pnpm run generate:docs
@@ -131,4 +132,4 @@ jobs:
131132
APP_ENV=production
132133
GITHUB_OWNER=${{ github.repository_owner }}
133134
GITHUB_REPO=${{ github.event.repository.name }}
134-
GITHUB_REPO_URL=https://github.com/${{ github.repository }}
135+
GITHUB_REPO_URL=https://github.com/${{ github.repository }}

scripts/generate-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const outputDir = "generated-docs"
3636
const APP_ENV = getServerEnv().APP_ENV
3737
// Auto-detect a docs workspace: prefer CWD if it contains `content/`, otherwise try ./docs
3838
function findDocsWorkspace(start: string) {
39-
const candidates = [start]
39+
const candidates = [start, resolve(start, "docs")]
4040
// biome-ignore lint/suspicious/noConsole: TODO REMOE THIS
4141
console.log("Candidates for docs workspace:", candidates)
4242
for (const dir of candidates) {

0 commit comments

Comments
 (0)