Skip to content

Commit ef39dcf

Browse files
committed
pulled doc requirements out of package
1 parent c12ce31 commit ef39dcf

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
install:
33
npm install
44

5+
.PHONY: install-docs
6+
install-docs:
7+
pip install -r requirements.txt
8+
59
.PHONY: format
610
format:
711
npm run format
@@ -20,8 +24,8 @@ build:
2024

2125
.PHONY: build-docs
2226
build-docs:
23-
npm run docs:build
27+
mkdocs build
2428

2529
.PHONY: serve-docs
2630
serve-docs:
27-
npm run docs:serve
31+
mkdocs serve

mkdocs.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
site_name: OpenAI Guardrails TypeScript
2-
site_dir: ../frontend/public/docs
2+
site_dir: .vercel/output/static
33
theme:
44
name: material
55
features:
6-
# Allows copying code blocks
76
- content.code.copy
8-
# Allows selecting code blocks
97
- content.code.select
10-
# Shows the current path in the sidebar
118
- navigation.path
12-
# Shows sections in the sidebar
139
- navigation.sections
14-
# Shows sections expanded by default
1510
- navigation.expand
16-
# Enables annotations in code blocks
1711
- content.code.annotate
1812
palette:
1913
primary: black
@@ -36,17 +30,11 @@ plugins:
3630
selection:
3731
docstring_style: google
3832
options:
39-
# Shows links to other members in signatures
4033
signature_crossrefs: true
41-
# Orders members by source order, rather than alphabetical
4234
members_order: source
43-
# Puts the signature on a separate line from the member name
4435
separate_signature: true
45-
# Shows type annotations in signatures
4636
show_signature_annotations: true
47-
# Makes the font sizes nicer
4837
heading_level: 3
49-
# Show inherited members
5038
inherited_members: true
5139
- i18n:
5240
docs_structure: folder
@@ -75,8 +63,8 @@ plugins:
7563
- API Reference:
7664
- Types: ref/types-typescript.md
7765
- Exceptions: ref/exceptions-typescript.md
66+
7867
extra:
79-
# Remove material generation message in footer
8068
generator: false
8169
language: en
8270

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"cli": "node dist/cli.js",
2525
"eval": "node dist/cli.js eval",
2626
"eval:example": "node dist/examples/run-eval.js",
27-
"docs:build": "mkdocs build",
28-
"docs:serve": "mkdocs serve"
2927
},
3028
"keywords": [
3129
"guardrails",
@@ -55,9 +53,6 @@
5553
"@typescript-eslint/eslint-plugin": "^6.0.0",
5654
"@typescript-eslint/parser": "^6.0.0",
5755
"eslint": "^8.0.0",
58-
"mkdocs": "^1.5.3",
59-
"mkdocs-material": "^9.5.3",
60-
"mkdocs-mkdocstrings": "^0.24.0",
6156
"prettier": "^3.0.0",
6257
"rimraf": "^5.0.0",
6358
"typescript": "^5.0.0",

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mkdocs==1.5.3
2+
mkdocs-material==9.5.3
3+
mkdocs-mkdocstrings==0.24.0

vercel.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"buildCommand": "pip install -r requirements.txt && mkdocs build",
3+
"outputDirectory": ".vercel/output/static",
4+
"framework": "other",
5+
"installCommand": "echo 'Skipping npm install'",
6+
"routes": [
7+
{
8+
"src": "/(.*)",
9+
"dest": "/$1",
10+
"continue": true
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)