Skip to content

Incremental engine for long horizon agents 🌟 Star if you like it!

5.2 KB
Raw Blame
// Legacy v0 (Docusaurus) β†’ v1 (Astro) URL map, consumed by astro.config.mjs.
// v1 reorganized the namespace (sources/ + targets/ β†’ connectors/, core/ β†’
// programming_guide/, custom_ops/ β†’ advanced_topics/, ai/ β†’ ops/, tutorials/
// dropped, examples renamed), so every old inbound link / bookmark / search
// result below would 404 without a redirect.
//
// Mechanics (verified against astro 6.1.8): Astro prepends `base` (`/docs`)
// to the SOURCE keys only; DESTINATIONS are emitted verbatim, so they must be
// absolute `/docs/...` paths with the trailing slash (trailingSlash:
// 'always'). Pages with no v1 equivalent point at the nearest section
// overview rather than 404.
export const redirects: Record<string, string> = {
  // sources/* β†’ connectors/*
  '/sources': '/docs/connectors/',
  '/sources/localfile': '/docs/connectors/localfs/',
  '/sources/amazons3': '/docs/connectors/amazon_s3/',
  '/sources/googledrive': '/docs/connectors/google_drive/',
  '/sources/postgres': '/docs/connectors/postgres/',
  '/sources/azureblob': '/docs/connectors/', // no Azure Blob connector in v1

  // targets/* β†’ connectors/*
  '/targets': '/docs/connectors/',
  '/targets/postgres': '/docs/connectors/postgres/',
  '/targets/qdrant': '/docs/connectors/qdrant/',
  '/targets/lancedb': '/docs/connectors/lancedb/',
  '/targets/neo4j': '/docs/connectors/neo4j/',
  '/targets/doris': '/docs/connectors/doris/',
  '/targets/chromadb': '/docs/connectors/', // dropped in v1
  '/targets/pinecone': '/docs/connectors/', // dropped in v1
  '/targets/kuzu': '/docs/connectors/',     // dropped in v1
  '/targets/ladybug': '/docs/connectors/',  // dropped in v1

  // core/* β†’ programming_guide / common_resources / cli
  '/core/basics': '/docs/programming_guide/core_concepts/',
  '/core/flow_def': '/docs/programming_guide/core_concepts/',
  '/core/flow_methods': '/docs/programming_guide/app/',
  '/core/settings': '/docs/advanced_topics/multiple_environments/',
  '/core/data_types': '/docs/common_resources/data_types/',
  '/core/cli': '/docs/cli/',

  // custom_ops/* β†’ programming_guide / advanced_topics
  '/custom_ops/custom_functions': '/docs/programming_guide/function/',
  '/custom_ops/custom_targets': '/docs/advanced_topics/custom_target_connector/',
  '/custom_ops/custom_sources': '/docs/advanced_topics/live_component/', // closest: custom live component

  // ai/* β†’ ops/*
  '/ai/llm': '/docs/ops/litellm/',

  // ops/functions (one monolithic page) β†’ ops overview (now split per op)
  '/ops/functions': '/docs/ops/',

  // contributing
  '/contributing/new_built_in_target': '/docs/advanced_topics/custom_target_connector/',

  // tutorials/* (section dropped) β†’ nearest concept page
  '/tutorials/live_updates': '/docs/programming_guide/live_mode/',
  '/tutorials/docker_pgvector_setup': '/docs/connectors/postgres/',
  '/tutorials/control_flow': '/docs/programming_guide/',
  '/tutorials/manage_flow_dynamically': '/docs/programming_guide/app/',

  // no v1 equivalent β†’ land on the closest section / docs entry
  '/query': '/docs/getting_started/overview/',
  '/cocoinsight_access': '/docs/getting_started/overview/',

  // examples/* β€” v1 renamed every walkthrough slug (only
  // hackernews-trending-topics survived). Direct successor where one exists,
  // the examples listing otherwise.
  '/examples/academic_papers_index': '/docs/examples/paper-metadata/',
  '/examples/code_index': '/docs/examples/index-codebase/',
  '/examples/custom_source_hackernews': '/docs/examples/hackernews-trending-topics/',
  '/examples/custom_targets': '/docs/advanced_topics/custom_target_connector/',
  '/examples/document_ai': '/docs/examples/',
  '/examples/image_search': '/docs/examples/image-search-colpali/', // v0 image_search was the ColPali app
  '/examples/image_search_clip': '/docs/examples/image-search/',
  '/examples/knowledge-graph-for-docs': '/docs/examples/docs-to-knowledge-graph/',
  '/examples/manual_extraction': '/docs/examples/manuals-llm-extraction/',
  '/examples/meeting_notes_graph': '/docs/examples/meeting-notes-to-knowledge-graph/',
  '/examples/multi_format_index': '/docs/examples/multi-format-indexing/',
  '/examples/patient_form_extraction': '/docs/examples/patient-intake-baml/',
  '/examples/patient_form_extraction_baml': '/docs/examples/patient-intake-baml/',
  '/examples/patient_form_extraction_dspy': '/docs/examples/patient-intake-dspy/',
  '/examples/pdf_elements': '/docs/examples/pdf-to-markdown/',
  '/examples/photo_search': '/docs/examples/face-recognition/',
  '/examples/postgres_source': '/docs/examples/postgres-source/',
  '/examples/product_recommendation': '/docs/examples/product-recommendation/',
  '/examples/simple_vector_index': '/docs/examples/text-embedding/',
  '/examples/google_drive': '/docs/examples/google-drive-embedding/',
  '/examples/s3_sqs_pipeline': '/docs/examples/amazon-s3-embedding/',

  // The Rust tree (/docs/rust/, see src/lib/lang.ts). Its home is the Rust
  // overview until it has a landing page of its own; the two pages that were
  // Rust-only before the split moved to their Rust slots.
  '/rust': '/docs/rust/getting_started/overview/',
  '/getting_started/rust_quickstart': '/docs/rust/getting_started/quickstart/',
  '/cli_rust': '/docs/rust/cli/',
  // An unused, outdated copy of the CLI subcommand reference.
  '/cli_commands': '/docs/cli/',
};