Skip to content

Commit d63f851

Browse files
authored
Added Claude based docs validator. (#2967)
1 parent 3dbbb1e commit d63f851

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/hydrogen/check-docs.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Get the absolute path to the src directory.
5+
SRC_DIR="$(git rev-parse --show-toplevel)/packages/hydrogen/src/"
6+
7+
# Get claude to check the docs.
8+
claude --print "In the directory $SRC_DIR, there are .doc.ts files which match up with similarly named files that end with .ts or .tsx.\
9+
Those .doc.ts files describe a series of examples with a description and have file paths which point to example files.\
10+
Check that the original code referred to matches up with the examples and their description.\
11+
Please output a list of the files, pairing their filenames with the issues found.\
12+
Don't output anything about successes or files without any problems.\
13+
If no issues have been found, please output 'No issues found'."

0 commit comments

Comments
 (0)