Skip to content

Commit 0061b40

Browse files
authored
Merge pull request #33 from PSPDFKit/austin/match-ts-parity
fix: fix AI scripting for documentation
2 parents 862119c + affd2a7 commit 0061b40

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,4 @@ openapi_spec.yml
156156

157157
# Example output
158158
examples/output
159+
/examples/example_venv/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ src/
234234
│ ├── inputs.py # Input handling
235235
│ ├── workflow.py # Workflow factory
236236
│ └── __init__.py # Public exports
237-
├── scripts/ # CLI scripts for coding agents
237+
├── nutrient_dws_scripts/ # CLI scripts for coding agents
238238
└── tests/ # Test files
239239
```
240240

context7.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"$schema": "https://context7.com/schema/context7.json",
33
"projectTitle": "Nutrient DWS Python Client",
44
"description": "Python client library for Nutrient Document Web Services (DWS) API.\n",
5-
"excludeFolders": ["src", "docs", "example", ".github"],
6-
"excludeFiles": ["README.md"]
5+
"folders": ["src/nutrient_dws_scripts"]
76
}

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ where = ["src"]
1111
[tool.setuptools.package-data]
1212
nutrient_dws = [
1313
"py.typed",
14-
"../../docs/WORKFLOW.md",
15-
"../../docs/METHODS.md",
16-
"../../LLM_DOC.md",
14+
]
15+
nutrient_dws_scripts = [
16+
"LLM_DOC.md"
1717
]
1818

1919
[project]
@@ -65,11 +65,11 @@ Repository = "https://github.com/PSPDFKit/nutrient-dws-client-python"
6565
"Bug Tracker" = "https://github.com/PSPDFKit/nutrient-dws-client-python/issues"
6666

6767
[project.scripts]
68-
dws-add-claude-code-rule = "scripts.add_claude_code_rule:main"
69-
dws-add-cursor-rule = "scripts.add_cursor_rule:main"
70-
dws-add-github-copilot-rule = "scripts.add_github_copilot_rule:main"
71-
dws-add-junie-rule = "scripts.add_junie_rule:main"
72-
dws-add-windsurf-rule = "scripts.add_windsurf_rule:main"
68+
dws-add-claude-code-rule = "nutrient_dws_scripts.add_claude_code_rule:main"
69+
dws-add-cursor-rule = "nutrient_dws_scripts.add_cursor_rule:main"
70+
dws-add-github-copilot-rule = "nutrient_dws_scripts.add_github_copilot_rule:main"
71+
dws-add-junie-rule = "nutrient_dws_scripts.add_junie_rule:main"
72+
dws-add-windsurf-rule = "nutrient_dws_scripts.add_windsurf_rule:main"
7373

7474
[tool.ruff]
7575
target-version = "py310"
File renamed without changes.
File renamed without changes.

src/scripts/add_claude_code_rule.py renamed to src/nutrient_dws_scripts/add_claude_code_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
7-
doc_path = os.path.join(script_dir, "..", "..", "LLM_DOC.md")
7+
doc_path = os.path.join(script_dir, "LLM_DOC.md")
88

99
user_project_root = os.getcwd()
1010
output_file = os.path.join(user_project_root, "CLAUDE.md")

src/scripts/add_cursor_rule.py renamed to src/nutrient_dws_scripts/add_cursor_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
7-
doc_path = os.path.join(script_dir, "..", "..", "LLM_DOC.md")
7+
doc_path = os.path.join(script_dir, "LLM_DOC.md")
88
with open(doc_path, encoding="utf-8") as file:
99
documentation = file.read()
1010

src/scripts/add_github_copilot_rule.py renamed to src/nutrient_dws_scripts/add_github_copilot_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
7-
doc_path = os.path.join(script_dir, "..", "..", "LLM_DOC.md")
7+
doc_path = os.path.join(script_dir, "LLM_DOC.md")
88

99
user_project_root = os.getcwd()
1010
output_directory = os.path.join(user_project_root, ".github")

src/scripts/add_junie_rule.py renamed to src/nutrient_dws_scripts/add_junie_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
7-
doc_path = os.path.join(script_dir, "..", "..", "LLM_DOC.md")
7+
doc_path = os.path.join(script_dir, "LLM_DOC.md")
88

99
user_project_root = os.getcwd()
1010
output_directory = os.path.join(user_project_root, ".junie")

0 commit comments

Comments
 (0)