Skip to content

Commit 7a8e9da

Browse files
feat: adds new doc + converting logic
1 parent 09cd766 commit 7a8e9da

File tree

6 files changed

+1613
-35
lines changed

6 files changed

+1613
-35
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,16 @@ cdk-watch:
131131
sync-docs:
132132
./scripts/sync_docs.sh
133133

134+
convert-docs:
135+
poetry run python scripts/convert_docs_to_markdown.py
136+
137+
convert-docs-file:
138+
@if [ -z "$$FILE" ]; then \
139+
echo "usage: make convert-docs-file FILE=your_doc.pdf"; \
140+
exit 1; \
141+
fi
142+
poetry run python scripts/convert_docs_to_markdown.py --file "$$FILE"
143+
144+
134145
compile:
135146
echo "Does nothing currently"

poetry.lock

Lines changed: 1287 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/NHSDigital/eps-assist-me"
1010
package-mode = false
1111

1212
[tool.poetry.dependencies]
13-
python = "^3.13"
13+
python = "^3.14"
1414

1515
[tool.poetry.scripts]
1616

@@ -27,6 +27,7 @@ rich = "^14.1.0"
2727
pytest-mock = "^3.15.1"
2828
pytest-cov = "^7.0.0"
2929
moto = {extras = ["ssm"], version = "^5.1.17"}
30+
markitdown = {extras = ["pdf", "docx", "pptx", "xlsx"], version = "^0.0.2"}
3031

3132

3233
[tool.poetry.group.slackBotFunction.dependencies]
44.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)