Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions context7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://context7.com/schema/context7.json",
"projectTitle": "ReScript",
"description": "ReScript is a statically typed language for web development that compiles to clean, readable JavaScript, with sound types, fast builds, and seamless JS interop.",
"folders": ["docs", "packages/@rescript/runtime", "tools"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we somehow need to specifically state that the docs are found e.g. in

/@rescript/runtime/lib/ocaml/Stdlib_Bool.resi

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the folders just tells it where to scan. The rules are for anyone accessing the library from context7, not for instructions on how it should parse things. From what I can tell it does a decent job of figuring things out.

"excludeFolders": [
"analysis",
"cli",
"compiler",
"lib_dev",
"node_modules",
"rewatch",
"scripts",
"tests",
"docs/changelog",
"docs/docson",
"tools/bin",
"packages/@rescript/*/bin"
],
"excludeFiles": [
"AGENTS.md",
"CLAUDE.md",
"CHANGELOG.md",
"CHANGELOG_BS.md",
"CONTRIBUTING.md",
"COPYING",
"COPYING.LESSER",
"CREDITS.md",
"DCO.md",
"LICENSE",
"LICENSE.MIT",
"build-schema.json",
"dune",
"main.ml",
"migrate.ml",
"migrate.mli",
"package.json",
"reactive_reanalyze_design.md",
"rescript.json",
"tools.ml",
"transforms.ml",
"version.ml"
],
"rules": [
"Use this context for ReScript language APIs, the standard library, and the rescript-tools CLI.",
"For the full language manual, syntax guide, React docs, ecosystem docs, and website-hosted material outside this repository, also consult https://rescript-lang.org/llms.txt."
]
}
Loading