From cfd5f6db4c53c57769ef9aeabf14fa56cd72b735 Mon Sep 17 00:00:00 2001 From: Yevheniia Sorokina Date: Mon, 12 Oct 2026 12:02:55 +0100 Subject: [PATCH] Redirect the removed C API examples pages to the Linux samples The C API reference under /stable/c_api/ and /7.6/c_api/ no longer has its examples index or its sample pages, and old links to them still arrive, in both file-name spellings. All of them now go to /sdks/linux/samples/. Co-Authored-By: Claude Opus 5.5 (1M context) --- docusaurus.config.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index e3c379db9b..f4a86e713f 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1161,6 +1161,21 @@ const config: Config = { from: `/data-capture-sdk/${framework}/id-capture/intro.html`, }, ]), + // The C API reference (still live under /stable/c_api/ and /7.6/c_api/) + // no longer has its examples index or sample pages. Old links to them + // still reach readers, in both spellings. + { + to: '/sdks/linux/samples', + from: ['/stable/c_api', '/7.6/c_api'].flatMap((reference) => [ + `${reference}/examples.html`, + `${reference}/CommandLineBarcodeScannerCameraSample_8c-example.html`, + `${reference}/_command_line_barcode_scanner_camera_sample_8c-example.html`, + `${reference}/CommandLineBarcodeScannerImageProcessingSample_8c-example.html`, + `${reference}/_command_line_barcode_scanner_image_processing_sample_8c-example.html`, + `${reference}/CommandLineMatrixScanCameraSample_8c-example.html`, + `${reference}/_command_line_matrix_scan_camera_sample_8c-example.html`, + ]), + }, { to: 'system-requirements', from: [