instruction
stringlengths
0
1k
input
stringlengths
1
1k
output
stringlengths
10
6.51k
, } class SimpleTypesenseIndexer: """Simplified indexer using your existing logic.""" def __init__(self): self.client = typesense.Client(TYPESENSE_CONFIG) def smart_title_case(self, name: str) -> str: words = name.split(" ") title_cased_words = [] for word in words: ...
text = re.sub(r"`[^`]+`", "", text) text = re.sub(r"^#+\s*", "", text, flags=re.MULTILINE) text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def e...
text = re.sub(r"<div[\s\S]*?</div>", "", text, flags=re.IGNORECASE)
sting logic.""" def __init__(self): self.client = typesense.Client(TYPESENSE_CONFIG) def smart_title_case(self, name: str) -> str: words = name.split(" ") title_cased_words = [] for word in words: if word.upper() in ACRONYMS: title_cased_words.append...
text = re.sub(r"^#+\s*", "", text, flags=re.MULTILINE) text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[...
text = re.sub(r"`[^`]+`", "", text)
self.client = typesense.Client(TYPESENSE_CONFIG) def smart_title_case(self, name: str) -> str: words = name.split(" ") title_cased_words = [] for word in words: if word.upper() in ACRONYMS: title_cased_words.append(word.upper()) else: ...
text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" ...
text = re.sub(r"^#+\s*", "", text, flags=re.MULTILINE)
smart_title_case(self, name: str) -> str: words = name.split(" ") title_cased_words = [] for word in words: if word.upper() in ACRONYMS: title_cased_words.append(word.upper()) else: title_cased_words.append(word.capitalize()) return...
text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") ...
text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text)
e.split(" ") title_cased_words = [] for word in words: if word.upper() in ACRONYMS: title_cased_words.append(word.upper()) else: title_cased_words.append(word.capitalize()) return " ".join(title_cased_words) def clean_name(self, name: ...
text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") for line in lines: line = line.strip() ...
text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL)
words: if word.upper() in ACRONYMS: title_cased_words.append(word.upper()) else: title_cased_words.append(word.capitalize()) return " ".join(title_cased_words) def clean_name(self, name: str) -> str: if name.lower().endswith(".md"): ...
return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") for line in lines: line = line.strip() if line.startswith("#"): headin...
text = re.sub(r"\n\s*\n+", "\n\n", text)
d_words.append(word.upper()) else: title_cased_words.append(word.capitalize()) return " ".join(title_cased_words) def clean_name(self, name: str) -> str: if name.lower().endswith(".md"): name = name[:-3] name = name.replace("_", " ").replace("-", " ")...
def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = cleaned.splitlines() ...
def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", lin...
turn " ".join(title_cased_words) def clean_name(self, name: str) -> str: if name.lower().endswith(".md"): name = name[:-3] name = name.replace("_", " ").replace("-", " ").strip() return self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = r...
lines = content.split("\n") for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: head...
headings = []
sed_words) def clean_name(self, name: str) -> str: if name.lower().endswith(".md"): name = name[:-3] name = name.replace("_", " ").replace("-", " ").strip() return self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = re.sub(r"^---[\s\S]*?--...
for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) ...
lines = content.split("\n")
name: str) -> str: if name.lower().endswith(".md"): name = name[:-3] name = name.replace("_", " ").replace("-", " ").strip() return self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = re.sub(r"^---[\s\S]*?---\s*", "", text, flags=re.MULTILINE) ...
return headings def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = clea...
for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip())
ame.lower().endswith(".md"): name = name[:-3] name = name.replace("_", " ").replace("-", " ").strip() return self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = re.sub(r"^---[\s\S]*?---\s*", "", text, flags=re.MULTILINE) text = re.sub(r"```[\s\...
if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) return headings def summarize_markdown(self, md_...
line = line.strip()
name = name[:-3] name = name.replace("_", " ").replace("-", " ").strip() return self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = re.sub(r"^---[\s\S]*?---\s*", "", text, flags=re.MULTILINE) text = re.sub(r"```[\s\S]*?```", "", text) text...
return headings def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = clea...
if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip())
name.replace("_", " ").replace("-", " ").strip() return self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = re.sub(r"^---[\s\S]*?---\s*", "", text, flags=re.MULTILINE) text = re.sub(r"```[\s\S]*?```", "", text) text = re.sub(r"```.*?```", "", text, flags=r...
heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) return headings def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplifie...
heading_text = re.sub(r"^#+\s*", "", line)
turn self.smart_title_case(name) def clean_markdown(self, text: str) -> str: text = re.sub(r"^---[\s\S]*?---\s*", "", text, flags=re.MULTILINE) text = re.sub(r"```[\s\S]*?```", "", text) text = re.sub(r"```.*?```", "", text, flags=re.DOTALL) text = re.sub(r"<div[\s\S]*?</div>", "", ...
if heading_text: headings.append(heading_text.strip()) return headings def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: ...
heading_text = re.sub(r"\{[^}]*\}", "", heading_text)
tr) -> str: text = re.sub(r"^---[\s\S]*?---\s*", "", text, flags=re.MULTILINE) text = re.sub(r"```[\s\S]*?```", "", text) text = re.sub(r"```.*?```", "", text, flags=re.DOTALL) text = re.sub(r"<div[\s\S]*?</div>", "", text, flags=re.IGNORECASE) text = re.sub(r"`[^`]+`", "", text)...
return headings def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = clea...
if heading_text: headings.append(heading_text.strip())
sub(r"```[\s\S]*?```", "", text) text = re.sub(r"```.*?```", "", text, flags=re.DOTALL) text = re.sub(r"<div[\s\S]*?</div>", "", text, flags=re.IGNORECASE) text = re.sub(r"`[^`]+`", "", text) text = re.sub(r"^#+\s*", "", text, flags=re.MULTILINE) text = re.sub(r"\[([^\]]+)\]\([^)...
def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.sm...
def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = cleaned.splitlines() trunca...
`", "", text) text = re.sub(r"^#+\s*", "", text, flags=re.MULTILINE) text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: ...
cleaned = self.clean_markdown(content) lines = cleaned.splitlines() truncated_lines = lines[:max_lines] truncated_text = "\n".join(truncated_lines).strip() if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_...
content = f.read()
re.sub(r"^#+\s*", "", text, flags=re.MULTILINE) text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: "...
lines = cleaned.splitlines() truncated_lines = lines[:max_lines] truncated_text = "\n".join(truncated_lines).strip() if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: str) -> str: parts = url....
cleaned = self.clean_markdown(content)
]\([^)]+\)", r"\1", text) text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = c...
truncated_text = "\n".join(truncated_lines).strip() if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:...
truncated_lines = lines[:max_lines]
sub(r"<!--.*?-->", "", text, flags=re.DOTALL) text = re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") for line in line...
if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts...
truncated_text = "\n".join(truncated_lines).strip()
re.sub(r"\n\s*\n+", "\n\n", text) return text.strip() def extract_headings(self, content: str) -> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") for line in lines: line = line.strip() if line.starts...
return truncated_text def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part i...
if len(truncated_lines) < max_lines: return truncated_text
-> List[str]: """Extract headings from markdown content.""" headings = [] lines = content.split("\n") for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub...
def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patterns = [ r"(?:rx|reflex)\.([A-Z][a-zA-Z0-9_]*)", r"\b([A-Z][a-z]...
def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_ti...
rkdown content.""" headings = [] lines = content.split("\n") for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) i...
if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: ...
parts = url.strip("/").split("/")
lines = content.split("\n") for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headin...
if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content....
if parts[0] == "docs": parts = parts[1:]
for line in lines: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) ...
if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content....
parts = parts[1:]
: line = line.strip() if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) return headings ...
readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: con...
if parts and parts[-1] == "low": parts[-1] = "low-level"
if line.startswith("#"): heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) return headings def summarize_markdown(self, md_path: str, m...
readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: con...
parts[-1] = "low-level"
heading_text = re.sub(r"^#+\s*", "", line) heading_text = re.sub(r"\{[^}]*\}", "", heading_text) if heading_text: headings.append(heading_text.strip()) return headings def summarize_markdown(self, md_path: str, max_lines: int = 100) -> str: ...
return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patterns = [ r"(?:rx|reflex)\.([A...
readable = " ".join(part.replace("-", " ") for part in parts)
-> str: """Your existing summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = cleaned.splitlines() truncated_lines = lines[:max_lines] truncated_text = "\n".join...
patterns = [ r"(?:rx|reflex)\.([A-Z][a-zA-Z0-9_]*)", r"\b([A-Z][a-z]+(?:[A-Z][a-z]*)*Component?)\b", ] components = set() for pattern in patterns: matches = re.findall(pattern, content) components.update(matches) return list(compo...
content = f.read()
sting summarize function - simplified.""" with open(md_path, "r", encoding="utf-8") as f: content = f.read() cleaned = self.clean_markdown(content) lines = cleaned.splitlines() truncated_lines = lines[:max_lines] truncated_text = "\n".join(truncated_lines).strip() ...
components = set() for pattern in patterns: matches = re.findall(pattern, content) components.update(matches) return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function a...
patterns = [ r"(?:rx|reflex)\.([A-Z][a-zA-Z0-9_]*)", r"\b([A-Z][a-z]+(?:[A-Z][a-z]*)*Component?)\b", ]
ed = self.clean_markdown(content) lines = cleaned.splitlines() truncated_lines = lines[:max_lines] truncated_text = "\n".join(truncated_lines).strip() if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: ...
for pattern in patterns: matches = re.findall(pattern, content) components.update(matches) return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" ...
components = set()
ntent) lines = cleaned.splitlines() truncated_lines = lines[:max_lines] truncated_text = "\n".join(truncated_lines).strip() if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: str) -> str: parts ...
return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib...
for pattern in patterns: matches = re.findall(pattern, content) components.update(matches)
ines() truncated_lines = lines[:max_lines] truncated_text = "\n".join(truncated_lines).strip() if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") i...
components.update(matches) return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_p...
matches = re.findall(pattern, content)
if len(truncated_lines) < max_lines: return truncated_text return truncated_text def name_from_url(self, url: str) -> str: parts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] ...
def _index_programmatic_docs(self) -> List[dict]: logger.info("Processing programmatic docs...") documents = [] # Process API reference pages for module in modules: if isinstance(module, tuple): module, *extra_modules = module extra_fiel...
def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(rel_path).parts filenam...
ts = url.strip("/").split("/") if parts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, ...
rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(rel_path).parts filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lo...
file_path = os.path.join(root, file)
ts[0] == "docs": parts = parts[1:] if parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extr...
parts = pathlib.Path(rel_path).parts filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.ap...
rel_path = os.path.relpath(file_path, docs_path)
parts and parts[-1] == "low": parts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" ...
filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: ...
parts = pathlib.Path(rel_path).parts
ts[-1] = "low-level" readable = " ".join(part.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") a...
parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(...
filename_no_ext = file.rsplit(".", 1)[0]
art.replace("-", " ") for part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patte...
for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext)) ...
parts_clean = []
part in parts) return self.smart_title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patterns = [ r"(?:...
url_parts = [p.replace("_", "-").rsplit(".", 1)[0] for p in parts] if url_parts and url_parts[-1].endswith("-ll"): url_parts[-1] = url_parts[-1].replace("-ll", "/low") url = "/" + "/".join(url_parts) name = " ".join(parts_clean) full_content = self.summarize_markd...
for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext)) else:...
title_case(readable) def extract_components(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patterns = [ r"(?:rx|reflex)\.([A-Z][a-zA-Z0-9_]*)", ...
if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext)) else: parts_clean.append(self.clean_name(p)) url_pa...
is_last = i == len(parts) - 1
onents(self, file_path: str) -> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patterns = [ r"(?:rx|reflex)\.([A-Z][a-zA-Z0-9_]*)", r"\b([A-Z][a-z]+(?:[A-Z][a-z]*)*Compo...
url_parts = [p.replace("_", "-").rsplit(".", 1)[0] for p in parts] if url_parts and url_parts[-1].endswith("-ll"): url_parts[-1] = url_parts[-1].replace("-ll", "/low") url = "/" + "/".join(url_parts) name = " ".join(parts_clean) full_content = self.summarize_markd...
if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext)) else: parts_clean.append(self.clean_name(p))
-> List[str]: """Extract components from raw markdown file content.""" with open(file_path, "r", encoding="utf-8") as f: content = f.read() patterns = [ r"(?:rx|reflex)\.([A-Z][a-zA-Z0-9_]*)", r"\b([A-Z][a-z]+(?:[A-Z][a-z]*)*Component?)\b", ] ...
else: parts_clean.append(self.clean_name(p)) url_parts = [p.replace("_", "-").rsplit(".", 1)[0] for p in parts] if url_parts and url_parts[-1].endswith("-ll"): url_parts[-1] = url_parts[-1].replace("-ll", "/low") url = "/" + "/".join(url_parts) ...
if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext))
:[A-Z][a-z]*)*Component?)\b", ] components = set() for pattern in patterns: matches = re.findall(pattern, content) components.update(matches) return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: "...
if url_parts and url_parts[-1].endswith("-ll"): url_parts[-1] = url_parts[-1].replace("-ll", "/low") url = "/" + "/".join(url_parts) name = " ".join(parts_clean) full_content = self.summarize_markdown(file_path, max_lines=100) components = self.extract_components(f...
url_parts = [p.replace("_", "-").rsplit(".", 1)[0] for p in parts]
for pattern in patterns: matches = re.findall(pattern, content) components.update(matches) return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" fil...
url = "/" + "/".join(url_parts) name = " ".join(parts_clean) full_content = self.summarize_markdown(file_path, max_lines=100) components = self.extract_components(file_path) headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts...
if url_parts and url_parts[-1].endswith("-ll"): url_parts[-1] = url_parts[-1].replace("-ll", "/low")
return list(components) def process_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(re...
name = " ".join(parts_clean) full_content = self.summarize_markdown(file_path, max_lines=100) components = self.extract_components(file_path) headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "U...
url = "/" + "/".join(url_parts)
s_doc_file(self, docs_path: str, file: str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(rel_path).parts filename_no_ext =...
full_content = self.summarize_markdown(file_path, max_lines=100) components = self.extract_components(file_path) headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_nam...
name = " ".join(parts_clean)
str, root: str) -> Optional[dict]: """Your existing process_file function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(rel_path).parts filename_no_ext = file.rsplit(".", 1)[0] parts...
components = self.extract_components(file_path) headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: ...
full_content = self.summarize_markdown(file_path, max_lines=100)
function adapted for Typesense.""" file_path = os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(rel_path).parts filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i...
headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name b...
components = self.extract_components(file_path)
os.path.join(root, file) rel_path = os.path.relpath(file_path, docs_path) parts = pathlib.Path(rel_path).parts filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: ...
parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": str(rel_path), "title": name, ...
headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read())
parts = pathlib.Path(rel_path).parts filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Lo...
cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": str(rel_path), "title": name, "content": full_content, ...
parent = parts[0] if parts else ""
filename_no_ext = file.rsplit(".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: ...
for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": str(rel_path), "title": name, "content": full_content, "components": components, ...
cluster = "Uncategorized"
".", 1)[0] parts_clean = [] for i, p in enumerate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.c...
return { "id": str(rel_path), "title": name, "content": full_content, "components": components, "headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, "subsection": parts[1...
for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break
ate(parts): is_last = i == len(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext)) else: p...
return { "id": str(rel_path), "title": name, "content": full_content, "components": components, "headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, "subsection": parts[1...
if parent in folder_list: cluster = cluster_name break
(parts) - 1 if is_last: if filename_no_ext.lower().endswith("-ll"): parts_clean.append("Low Level") else: parts_clean.append(self.clean_name(filename_no_ext)) else: parts_clean.append(self.clean_name(p)) ...
break return { "id": str(rel_path), "title": name, "content": full_content, "components": components, "headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, ...
cluster = cluster_name
.summarize_markdown(file_path, max_lines=100) components = self.extract_components(file_path) headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.it...
# Process API reference pages for module in modules: if isinstance(module, tuple): module, *extra_modules = module extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module) ...
documents = []
ath) headings = self.extract_headings(open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name ...
s = Source(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview: content_parts.append(overview) ...
if isinstance(module, tuple): module, *extra_modules = module extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_extra.get_fields()) else: ext...
open(file_path, "r", encoding="utf-8").read()) parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": s...
extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_extra.get_fields()) else: extra_fields = None s = Source(module=module) name = mod...
module, *extra_modules = module
parent = parts[0] if parts else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": str(rel_path), "title": name, ...
for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_extra.get_fields()) else: extra_fields = None s = Source(module=module) name = module.__name__.lower() ...
extra_fields = []
else "" cluster = "Uncategorized" for cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": str(rel_path), "title": name, "content": full_content, ...
else: extra_fields = None s = Source(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview...
for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_extra.get_fields())
cluster_name, folder_list in CLUSTERS.items(): if parent in folder_list: cluster = cluster_name break return { "id": str(rel_path), "title": name, "content": full_content, "components": components, "headings...
extra_fields.extend(s_extra.get_fields()) else: extra_fields = None s = Source(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] ...
s_extra = Source(module=extra_module)
break return { "id": str(rel_path), "title": name, "content": full_content, "components": components, "headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, "subsectio...
s = Source(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview: content_parts.append(overview) ...
extra_fields = None
"id": str(rel_path), "title": name, "content": full_content, "components": components, "headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, "subsection": parts[1] if len(parts) > 1 e...
name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview: content_parts.append(overview) class_fields = s.get_class_fie...
s = Source(module=module)
"title": name, "content": full_content, "components": components, "headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, "subsection": parts[1] if len(parts) > 1 else None, "cluster": clust...
# Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: ...
name = module.__name__.lower()
"headings": headings, "path": str(rel_path), "url": f"docs{url}", "section": parent, "subsection": parts[1] if len(parts) > 1 else None, "cluster": cluster, "is_blog": False, "parts": parts_clean, } def _index_programmatic...
headings = [] overview = s.get_overview() if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fie...
content_parts = []
"path": str(rel_path), "url": f"docs{url}", "section": parent, "subsection": parts[1] if len(parts) > 1 else None, "cluster": cluster, "is_blog": False, "parts": parts_clean, } def _index_programmatic_docs(self) -> List[dict]: ...
overview = s.get_overview() if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for ...
headings = []
"url": f"docs{url}", "section": parent, "subsection": parts[1] if len(parts) > 1 else None, "cluster": cluster, "is_blog": False, "parts": parts_clean, } def _index_programmatic_docs(self) -> List[dict]: logger.info("Processing...
if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: ...
overview = s.get_overview()
"section": parent, "subsection": parts[1] if len(parts) > 1 else None, "cluster": cluster, "is_blog": False, "parts": parts_clean, } def _index_programmatic_docs(self) -> List[dict]: logger.info("Processing programmatic docs...") document...
class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: prop = field.get("prop") if not prop: ...
if overview: content_parts.append(overview)
> 1 else None, "cluster": cluster, "is_blog": False, "parts": parts_clean, } def _index_programmatic_docs(self) -> List[dict]: logger.info("Processing programmatic docs...") documents = [] # Process API reference pages for module in modul...
if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: prop = field.get("prop") if not prop: continue prop_nam...
class_fields = s.get_class_fields()
"is_blog": False, "parts": parts_clean, } def _index_programmatic_docs(self) -> List[dict]: logger.info("Processing programmatic docs...") documents = [] # Process API reference pages for module in modules: if isinstance(module, tuple): ...
fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields: content_parts.append("\n## Fields\n") headings.append("Fields") for field in fields: prop = field.get("prop") ...
if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: prop = field.get("prop") if not prop: continue prop_name = getattr(p...
r.info("Processing programmatic docs...") documents = [] # Process API reference pages for module in modules: if isinstance(module, tuple): module, *extra_modules = module extra_fields = [] for extra_module in extra_modules: ...
fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields: content_parts.append("\n## Fields\n") headings.append("Fields") for field in fields: prop = field.get("prop") ...
for field in class_fields: prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{...
documents = [] # Process API reference pages for module in modules: if isinstance(module, tuple): module, *extra_modules = module extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module)...
if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) ...
prop = field.get("prop")
rence pages for module in modules: if isinstance(module, tuple): module, *extra_modules = module extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_ex...
prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) fields = s.get_fields() if extra_fields: ...
if not prop: continue
ce(module, tuple): module, *extra_modules = module extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_extra.get_fields()) else: extra_fields =...
description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields...
prop_name = getattr(prop, "name", "")
= module extra_fields = [] for extra_module in extra_modules: s_extra = Source(module=extra_module) extra_fields.extend(s_extra.get_fields()) else: extra_fields = None s = Source(module=module) na...
content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields: content_parts.append("\n## Fields\n") ...
description = field.get("description", "")
lds.extend(s_extra.get_fields()) else: extra_fields = None s = Source(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_ov...
if extra_fields: fields.extend(extra_fields) if fields: content_parts.append("\n## Fields\n") headings.append("Fields") for field in fields: prop = field.get("prop") if not prop: ...
fields = s.get_fields()
else: extra_fields = None s = Source(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview: ...
if fields: content_parts.append("\n## Fields\n") headings.append("Fields") for field in fields: prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name"...
if extra_fields: fields.extend(extra_fields)
(module=module) name = module.__name__.lower() # Get the content from the source object directly content_parts = [] headings = [] overview = s.get_overview() if overview: content_parts.append(overview) class_fields = ...
methods = s.get_methods() if methods: content_parts.append("\n## Methods\n") headings.append("Methods") for method in methods: method_name = method.get("name", "") signature = method.get("signature", "") ...
if fields: content_parts.append("\n## Fields\n") headings.append("Fields") for field in fields: prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") ...
content_parts = [] headings = [] overview = s.get_overview() if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") ...
methods = s.get_methods() if methods: content_parts.append("\n## Methods\n") headings.append("Methods") for method in methods: method_name = method.get("name", "") signature = method.get("signature", "") ...
for field in fields: prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{descri...
headings = [] overview = s.get_overview() if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") ...
if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) ...
prop = field.get("prop")
overview() if overview: content_parts.append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: ...
prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) methods = s.get_methods() if methods: ...
if not prop: continue
append(overview) class_fields = s.get_class_fields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: prop = field.get("prop") if not pr...
description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) methods = s.get_methods() if methods: content_parts.append("\n## Methods\n") ...
prop_name = getattr(prop, "name", "")
ields() if class_fields: content_parts.append("\n## Class Fields\n") headings.append("Class Fields") for field in class_fields: prop = field.get("prop") if not prop: continue p...
content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) methods = s.get_methods() if methods: content_parts.append("\n## Methods\n") headings.append("Methods") for method in met...
description = field.get("description", "")
ields: prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") ...
if methods: content_parts.append("\n## Methods\n") headings.append("Methods") for method in methods: method_name = method.get("name", "") signature = method.get("signature", "") description = method....
methods = s.get_methods()
d.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_...
content = "\n".join(content_parts) url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title": title, ...
if methods: content_parts.append("\n## Methods\n") headings.append("Methods") for method in methods: method_name = method.get("name", "") signature = method.get("signature", "") description = method.get("descript...
"name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) fields = s.get_fields() if extra_fields: fields.extend(extra_fields) ...
content = "\n".join(content_parts) url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title": title, ...
for method in methods: method_name = method.get("name", "") signature = method.get("signature", "") description = method.get("description", "") content_parts.append( f"### {method_name}{signature}\n{description}\n" ...
= field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields: content_parts....
signature = method.get("signature", "") description = method.get("description", "") content_parts.append( f"### {method_name}{signature}\n{description}\n" ) headings.append(f"{method_name}{signat...
method_name = method.get("name", "")
nt_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields: content_parts.append("\n## Fields\n") headings.append("...
description = method.get("description", "") content_parts.append( f"### {method_name}{signature}\n{description}\n" ) headings.append(f"{method_name}{signature}") content = "\n".join(content_parts) ...
signature = method.get("signature", "")
headings.append(prop_name) fields = s.get_fields() if extra_fields: fields.extend(extra_fields) if fields: content_parts.append("\n## Fields\n") headings.append("Fields") for field in fields: ...
content_parts.append( f"### {method_name}{signature}\n{description}\n" ) headings.append(f"{method_name}{signature}") content = "\n".join(content_parts) url_path = f"/api-reference/{name}" title = ...
description = method.get("description", "")
"Fields") for field in fields: prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(...
url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title": title, "content": self.clean_markdown(c...
content = "\n".join(content_parts)
prop = field.get("prop") if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") ...
title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title": title, "content": self.clean_markdown(content), "headings": headings...
url_path = f"/api-reference/{name}"
if not prop: continue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) ...
path = f"api-reference/{name}" documents.append( { "id": path, "title": title, "content": self.clean_markdown(content), "headings": headings, "path": path, "u...
title = self.name_from_url(f"docs{url_path}")
nue prop_name = getattr(prop, "name", "") description = field.get("description", "") content_parts.append(f"### {prop_name}\n{description}\n") headings.append(prop_name) methods = s.get_methods() if methods: ...
documents.append( { "id": path, "title": title, "content": self.clean_markdown(content), "headings": headings, "path": path, "url": f"docs{url_path}", ...
path = f"api-reference/{name}"
f"### {method_name}{signature}\n{description}\n" ) headings.append(f"{method_name}{signature}") content = "\n".join(content_parts) url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path...
env_var_title = self.name_from_url(f"docs{env_var_url_path}") env_var_path = "api-reference/environment-variables" all_vars = EnvVarDocs.get_all_env_vars() content_parts = [ "Reflex provides a number of environment variables that can be used to configure the behavior of you...
env_var_url_path = "/api-reference/environment-variables"
) headings.append(f"{method_name}{signature}") content = "\n".join(content_parts) url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( ...
env_var_path = "api-reference/environment-variables" all_vars = EnvVarDocs.get_all_env_vars() content_parts = [ "Reflex provides a number of environment variables that can be used to configure the behavior of your application. These environment variables can be set in your shell en...
env_var_title = self.name_from_url(f"docs{env_var_url_path}")
signature}") content = "\n".join(content_parts) url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title":...
all_vars = EnvVarDocs.get_all_env_vars() content_parts = [ "Reflex provides a number of environment variables that can be used to configure the behavior of your application. These environment variables can be set in your shell environment or in a .env file. This page documents all availabl...
env_var_path = "api-reference/environment-variables"
url_path = f"/api-reference/{name}" title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title": title, "content": self.clean_markdown(con...
content_parts = [ "Reflex provides a number of environment variables that can be used to configure the behavior of your application. These environment variables can be set in your shell environment or in a .env file. This page documents all available environment variables in Reflex." ] ...
all_vars = EnvVarDocs.get_all_env_vars()
title = self.name_from_url(f"docs{url_path}") path = f"api-reference/{name}" documents.append( { "id": path, "title": title, "content": self.clean_markdown(content), "headings": headings, ...
headings = ["Environment Variables"] for name, var in all_vars: if not getattr(var, "internal", False): docstring = EnvVarDocs.get_env_var_docstring(name) or "" var_type = ( var.type_.__name__ if hasattr(var.type_, "__n...
content_parts = [ "Reflex provides a number of environment variables that can be used to configure the behavior of your application. These environment variables can be set in your shell environment or in a .env file. This page documents all available environment variables in Reflex." ]
ngs, "path": path, "url": f"docs{url_path}", "section": "API Reference", "subsection": name, "cluster": "API Reference", "is_blog": False, "parts": ["API Reference", title], ...
for name, var in all_vars: if not getattr(var, "internal", False): docstring = EnvVarDocs.get_env_var_docstring(name) or "" var_type = ( var.type_.__name__ if hasattr(var.type_, "__name__") else str(var.type...
headings = ["Environment Variables"]
"url": f"docs{url_path}", "section": "API Reference", "subsection": name, "cluster": "API Reference", "is_blog": False, "parts": ["API Reference", title], "components": [], ...
content = "\n".join(content_parts) documents.append( { "id": env_var_path, "title": env_var_title, "content": self.clean_markdown(content), "headings": headings, "path": env_var_path, "url": f"...
for name, var in all_vars: if not getattr(var, "internal", False): docstring = EnvVarDocs.get_env_var_docstring(name) or "" var_type = ( var.type_.__name__ if hasattr(var.type_, "__name__") else str(var.type_) ...