ragas / rules
explodinggradients/ragas/.cursor/rules/docs-structure.mdc
Follow these conventions when creating or editing documentation: 1. Docs live in docs/ โข Use Markdown (.md) files. โข Images and other assets go in docs/_static/. 2. Section Folders mirror MkDocs navigation (see mkdocs.yml): โข ๐ Get Started โ docs/getstarted/ โข ๐ Core Concepts โ docs/concepts/ โข ๐งช Experimental โ docs/experimental/ โข ๐ ๏ธ How-to Guides โ docs/howtos/ โข ๐ References โ docs/references/ โข Community โ docs/community/ Place new pages in the appropriate folder and update mkdocs.yml nav: so the pageโฆ
What's in it
- Documentation Structure & Workflow
- Formatting Guidelines
--- globs: docs/** --- # Documentation Structure & Workflow Follow these conventions when creating or editing documentation: 1. **Docs live in [docs/](mdc:docs/)** โข Use Markdown (`.md`) files. โข Images and other assets go in [docs/_static/](mdc:docs/_static/). 2. **Section Folders mirror MkDocs navigation** (see [mkdocs.yml](mdc:mkdocs.yml)): โข ๐ Get Started โ [docs/getstarted/](mdc:docs/getstarted/) โข ๐ Core Concepts โ [docs/concepts/](mdc:docs/concepts/) โข ๐งช Experimental โ [docs/experimental/](mdc:docs/experimental/) โข ๐ ๏ธ How-to Guides โ [docs/howtos/](mdc:docs/howtos/) โข ๐ References โ [docs/references/](mdc:docs/references/) โข Community โ [docs/community/](mdc:docs/community/) Place new pages in the appropriate folder **and** update `mkdocs.yml` `nav:` so the page appears in navigation. 3. **Notebook-to-Markdown** โข Convert notebooks to Markdown with [docs/ipynb_to_md.py](mdc:docs/ipynb_to_md.py). โข Commit the generated `.md`; notebooks themselves should not live in `docs/`. 4. **Local preview / build** โข Run `make build-docs` to build HTML, `make serve-docs` to preview locally (defined in [DEVELOPMENT.md](mdc:DEVELOPMENT.md)). 5. **Style & Assets** โข Use relative links (`../`) within docs. โข Reference images via `_static/โฆ` paths so they work in both dev and hosted docs. โข Custom templates/CSS live in [docs/extra/](mdc:docs/extra/) โ avoid editing `material` theme defaults directly. 6. **API References (mkdocstrings)** โข Always use public API paths in `[ClassName][ragas.module.ClassName]` references. โข Check what's exported in `__init__.py` โ if a class isn't in `__all__`, mkdocstrings can't link to it. โข Example: Use `[BasePrompt][ragas.prompt.BasePrompt]` not `[BasePrompt][ragas.prompt.base.BasePrompt]` or internal module paths. 7. **Do not modify generated or third-party files** in `_static/`, `extra/overrides/`, or `extra/components/` without good reason. --- # Formatting Guidelines - When introducing a list with text ending in a colon (e.g., "This will:"), always add a blank line before the first list item. - In a numbered list, do not add any new line between the items.
More agent context in explodinggradients/ragas
5 other files this repository gives its agents.
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

