MCPcopy Create free account
hub / github.com/DevCloudNinjas/DevOps-Projects / frontmatter

Function frontmatter

tools/build_starlight_content.py:390–399  ·  view source on GitHub ↗
(
    title: str, order: int | None = None, description: str | None = None
)

Source from the content-addressed store, hash-verified

388
389
390def frontmatter(
391 title: str, order: int | None = None, description: str | None = None
392) -> str:
393 lines = ["---", f"title: {json.dumps(title)}"]
394 if description:
395 lines.append(f"description: {json.dumps(description)}")
396 if order is not None:
397 lines.extend(["sidebar:", f" order: {order}"])
398 lines.append("---")
399 return "\n".join(lines) + "\n\n"
400
401
402def rewrite_site_links(

Callers 6

write_project_indexFunction · 0.85
write_start_here_pageFunction · 0.85
write_tag_pagesFunction · 0.85
write_project_pagesFunction · 0.85
copy_existing_docsFunction · 0.85
write_catalog_overridesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected