Skip to content

Commit a128912

Browse files
committed
cloudflare config
1 parent c02cafd commit a128912

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.cfignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Files for Cloudflare Pages to ignore
2+
node_modules/
3+
packages/
4+
bin/
5+
.git/
6+
.github/
7+
tmp/
8+
temp/
9+
coverage/
10+
11+
# Only include the docs files
12+
!mkdocs.yml
13+
!docs/
14+
!docs-requirements.txt
15+
!_redirects

cloudflare-pages.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Configuration for Cloudflare Pages
2+
[build]
3+
command = "pip install -r requirements.txt && mkdocs build"
4+
publish = "site"
5+
# Skip installing node modules completely
6+
node_bundler = "none"
7+
8+
[build.environment]
9+
PYTHON_VERSION = "3.11"
10+
# Disable all Node.js-related actions
11+
NODE_VERSION = "none"
12+
NPM_FLAGS = "--prefix=/dev/null"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"format:check": "prettier --check \"packages/*/src/**/*.ts\"",
3939
"validate": "yarn typecheck && yarn lint && yarn test && yarn format:check",
4040
"docs:serve": "mkdocs serve",
41-
"docs:build": "mkdocs build",
41+
"docs:build": "pip install -r requirements.txt && mkdocs build",
4242
"docs:deploy": "mkdocs gh-deploy --force"
4343
},
4444
"keywords": [
@@ -67,4 +67,4 @@
6767
"prettier": "^3.2.5",
6868
"typescript": "^5.8.2"
6969
}
70-
}
70+
}

0 commit comments

Comments
 (0)