Skip to content

Commit 0f00066

Browse files
authored
Fix doc deployment / PR 4
Fix doc deployment
2 parents e296840 + e2f86e1 commit 0f00066

File tree

5 files changed

+708
-46
lines changed

5 files changed

+708
-46
lines changed

Makefile

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

5-
.PHONY: install-docs
6-
install-docs:
7-
pip install -r requirements.txt
8-
95
.PHONY: format
106
format:
117
npm run format
@@ -28,7 +24,7 @@ sync:
2824

2925
.PHONY: build-docs
3026
build-docs:
31-
uv run mkdocs build
27+
uv run mkdocs build --site-dir site
3228

3329
.PHONY: serve-docs
3430
serve-docs:

mkdocs.yml

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,46 +24,32 @@ markdown_extensions:
2424

2525
plugins:
2626
- search
27-
- mkdocstrings:
28-
handlers:
29-
python:
30-
paths: ["src"]
31-
selection:
32-
docstring_style: google
33-
options:
34-
signature_crossrefs: true
35-
members_order: source
36-
separate_signature: true
37-
show_signature_annotations: true
38-
heading_level: 3
39-
inherited_members: true
4027
- i18n:
41-
docs_structure: folder
28+
default_language: en
4229
languages:
43-
- locale: en
44-
default: true
30+
en:
4531
name: English
4632
build: true
47-
nav:
48-
- Intro: index.md
49-
- Examples: examples.md
50-
- Documentation:
51-
- Quickstart: quickstart.md
52-
- "Streaming vs Blocking": streaming_output.md
53-
- Tripwires: tripwires.md
54-
- Checks:
55-
- Prompt Injection Detection: ref/checks/prompt_injection_detection.md
56-
- Contains PII: ref/checks/pii.md
57-
- Custom Prompt Check: ref/checks/custom_prompt_check.md
58-
- Hallucination Detection: ref/checks/hallucination_detection.md
59-
- Jailbreak Detection: ref/checks/jailbreak.md
60-
- Moderation: ref/checks/moderation.md
61-
- Off Topic Prompts: ref/checks/off_topic_prompts.md
62-
- URL Filter: ref/checks/urls.md
63-
- Evaluation Tool: evals.md
64-
- API Reference:
65-
- Types: ref/types-typescript.md
66-
- Exceptions: ref/exceptions-typescript.md
33+
nav:
34+
- Intro: index.md
35+
- Examples: examples.md
36+
- Documentation:
37+
- Quickstart: quickstart.md
38+
- "Streaming vs Blocking": streaming_output.md
39+
- Tripwires: tripwires.md
40+
- Checks:
41+
- Prompt Injection Detection: ref/checks/prompt_injection_detection.md
42+
- Contains PII: ref/checks/pii.md
43+
- Custom Prompt Check: ref/checks/custom_prompt_check.md
44+
- Hallucination Detection: ref/checks/hallucination_detection.md
45+
- Jailbreak Detection: ref/checks/jailbreak.md
46+
- Moderation: ref/checks/moderation.md
47+
- Off Topic Prompts: ref/checks/off_topic_prompts.md
48+
- URL Filter: ref/checks/urls.md
49+
- Evaluation Tool: evals.md
50+
- API Reference:
51+
- Types: ref/types-typescript.md
52+
- Exceptions: ref/exceptions-typescript.md
6753

6854
extra:
6955
generator: false

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[project]
2+
name = "openai-guardrails-js-docs"
3+
version = "0.1.0"
4+
description = "Documentation for OpenAI Guardrails JS"
5+
requires-python = ">=3.9"
6+
dependencies = [
7+
"mkdocs>=1.6.1",
8+
"mkdocs-material>=9.6.14",
9+
"pymdown-extensions>=10.0.0",
10+
"mkdocs-i18n>=0.4.3",
11+
]
12+
13+
[project.optional-dependencies]
14+
dev = [
15+
"mkdocs>=1.6.1",
16+
"mkdocs-material>=9.6.14",
17+
"pymdown-extensions>=10.0.0",
18+
"mkdocs-i18n>=0.4.3",
19+
]

requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)