PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
refactor(engine): keep the moved docs' intra-doc links resolving
alehelc4dc7e912685
diff --git a/crates/engine/src/edit.rs b/crates/engine/src/edit.rsindex a29e4a870..faf471207 100644--- a/crates/engine/src/edit.rs+++ b/crates/engine/src/edit.rs@@ -364,7 +364,7 @@ pub enum Edit {activity: String,},/// Scan & OCR ▸ Recognize text: put recognised words on `page` as invisible text over the- /// image (from [`ocr::OcrJob::run`]).+ /// image (from [`ocr::OcrJob::run`](crate::ocr::OcrJob::run)).AddOcrText {page: usize,words: Vec<pdfcraft_ocr::PlacedWord>,@@ -409,7 +409,7 @@ pub enum Edit {earlier: bool,},/// Set the calculation order: these calculated fields first, in this order, then the others- /// in their current order (see [`Document::calculation_order`]). The form recalculates.+ /// in their current order (see [`Document::calculation_order`](crate::Document::calculation_order)). The form recalculates.SetCalculationOrder {names: Vec<String>,},@@ -469,7 +469,7 @@ pub enum Edit {},/// Edit ▸ Paste: an added item copied in this document or another, as it was: text with its/// style, an image in its box (display space) with its turns, flips and crop. An image's- /// picture is `file` (from [`Document::added_image_file`]): the copied image object is reused+ /// picture is `file` (from [`Document::added_image_file`](crate::Document::added_image_file)): the copied image object is reused/// while it is still that picture in this document, else one an added image here already draws/// it from, else the file is embedded.PasteContent {diff --git a/crates/engine/src/history.rs b/crates/engine/src/history.rsindex 086d98a6a..fafa65b4c 100644--- a/crates/engine/src/history.rs+++ b/crates/engine/src/history.rs@@ -169,7 +169,7 @@ impl Editor {/// the two cannot drift apart.#[derive(Clone, Debug, PartialEq)]pub struct Label {- /// The wording, with one named hole (`{name}`) where `value` goes. Listed in [`EDIT_LABELS`].+ /// The wording, with one named hole (`{name}`) where `value` goes. Listed in [`EDIT_LABELS`](crate::EDIT_LABELS).pub wording: &'static str,/// What the document supplies, when the wording has a hole for it.pub value: Option<String>,