mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 02:37:52 +02:00
docs: strip ansi and exclude outputs from search (#4460)
# Changes * Strip ANSI codes from outputs * Exclude outputs from search (relies on an insiders feature, so can't test locally) ## ANSI Changes Before  After 
This commit is contained in:
@@ -4,18 +4,21 @@
|
||||
```output
|
||||
{{ line.rstrip() | strip_ansi }}
|
||||
```
|
||||
{ mkdocs-exclude-search }
|
||||
{%- endblock traceback_line -%}
|
||||
|
||||
{%- block stream -%}
|
||||
```output
|
||||
{{ output.text.rstrip() }}
|
||||
{{ output.text.rstrip() | strip_ansi }}
|
||||
```
|
||||
{ mkdocs-exclude-search }
|
||||
{%- endblock stream -%}
|
||||
|
||||
{%- block data_text scoped -%}
|
||||
```output
|
||||
{{ output.data['text/plain'].rstrip() }}
|
||||
{{ output.data['text/plain'].rstrip() | strip_ansi }}
|
||||
```
|
||||
{ mkdocs-exclude-search }
|
||||
{%- endblock data_text -%}
|
||||
|
||||
{%- block data_html scoped -%}
|
||||
|
||||
Reference in New Issue
Block a user