From 54a6bad7b748dcb1aeb411f28b27ec1ae7f8cfdf Mon Sep 17 00:00:00 2001 From: g_it Date: Wed, 18 Feb 2026 14:13:44 +0100 Subject: [PATCH] Add doc-detective test and remove sitemap from build. --- .checks/.doc-detective.json | 5 +++++ .checks/tests/resume-test.json | 24 ++++++++++++++++++++++++ .vale.ini | 9 +++++---- Dockerfile | 1 + 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100755 .checks/.doc-detective.json create mode 100755 .checks/tests/resume-test.json diff --git a/.checks/.doc-detective.json b/.checks/.doc-detective.json new file mode 100755 index 0000000..f478813 --- /dev/null +++ b/.checks/.doc-detective.json @@ -0,0 +1,5 @@ +{ + "telemetry": { + "send": false + } +} diff --git a/.checks/tests/resume-test.json b/.checks/tests/resume-test.json new file mode 100755 index 0000000..9f0e35c --- /dev/null +++ b/.checks/tests/resume-test.json @@ -0,0 +1,24 @@ +{ + "tests": [ + { + "steps": [ + { + "description": "Go to the specified URL", + "goTo": "https://gugulet.hu/resume.html" + }, + { + "description": "Verify the presence of the main heading", + "find": "Gugulethu Hlekwayo" + }, + { + "description": "Verify that the 'Learn more' link is present and working", + "click": "See the documentation set" + }, + { + "description": "Capture a screenshot of the resulting page", + "screenshot": "resume-top.png" + } + ] + } + ] +} diff --git a/.vale.ini b/.vale.ini index aebb6d4..2ca41b9 100755 --- a/.vale.ini +++ b/.vale.ini @@ -1,8 +1,9 @@ StylesPath = vale MinAlertLevel = suggestion -Packages = Google, write-good +Packages = write-good, Google [*.md] -BasedOnStyles = Vale, Google, write-good, extend-spell -Vale.Spelling = NO - \ No newline at end of file +BasedOnStyles = Vale, Google, write-good + +[Google.WordList] +level = off diff --git a/Dockerfile b/Dockerfile index c1b284a..78ea862 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ WORKDIR /app COPY . . RUN pip install --no-cache-dir -r ./requirements.txt RUN zensical build +RUN rm ./deploy/sitemap.xml FROM caddy:alpine COPY --from=builder /app/deploy /usr/share/caddy