Skip to content

Commit 4563336

Browse files
Docs baseUrl config change.
1 parent cbf3df7 commit 4563336

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

docs/docusaurus.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ const config = {
1212
tagline: 'High-performance spatial processing library for Databricks',
1313
favicon: 'img/favicon.ico',
1414

15-
// Production URL: public → https://databrickslabs.github.io/geobrix/ ; set DOCS_PRIVATE_PAGES=1 for legacy private Pages URL
16-
// GitHub Actions deploy sets DOCS_PUBLIC_PAGES=1 so baseUrl is always /geobrix/ for Pages.
15+
// GitHub Pages project site: https://databrickslabs.github.io/geobrix/
16+
// Set DOCS_STATIC_ZIP=1 for relative paths (static zip). Set DOCS_PRIVATE_PAGES=1 for legacy private Pages URL.
1717
url: process.env.DOCS_PRIVATE_PAGES === '1' ? 'https://friendly-fiesta-2eo74ww.pages.github.io' : 'https://databrickslabs.github.io',
18-
// baseUrl: './' for static zip; '/' for legacy private Pages; '/geobrix/' for public project site (default; also when DOCS_PUBLIC_PAGES=1)
19-
baseUrl: process.env.DOCS_STATIC_ZIP === '1' ? './' : (process.env.DOCS_PUBLIC_PAGES === '1' || process.env.DOCS_PRIVATE_PAGES !== '1' ? '/geobrix/' : '/'),
18+
baseUrl: process.env.DOCS_STATIC_ZIP === '1' ? './' : (process.env.DOCS_PRIVATE_PAGES === '1' ? '/' : '/geobrix/'),
2019
// Hash router for static zip so file:// opens work (pathname is then in hash, e.g. #/)
2120
...(process.env.DOCS_STATIC_ZIP === '1' ? { future: { experimental_router: 'hash' } } : {}),
2221

0 commit comments

Comments
 (0)