Skip to content

autodoc: LazyPath links go to FileSource, other deprecations affected #16728

@abhinav

Description

@abhinav

Zig Version

0.12.0-dev.1+a327d8b99

Steps to Reproduce and Observed Behavior

The same exists for:

Expected Behavior

LazyPath links should go to https://ziglang.org/documentation/master/std/#A;std:Build.LazyPath
and Step.Compile to https://ziglang.org/documentation/master/std/#A;std:Build.Step.Compile.
Build links should go back to std.Build.


This is likely caused by declaration positions:

Note that other deprecations where the new entity is defined before the deprecated do not suffer from this. For example, other types nested inside Step defined after it do not have this problem:

zig/lib/std/Build.zig

Lines 32 to 35 in ac95cfe

/// deprecated: use `Step.CheckFile`.
pub const CheckFileStep = @import("Build/Step/CheckFile.zig");
/// deprecated: use `Step.CheckObject`.
pub const CheckObjectStep = @import("Build/Step/CheckObject.zig");

Step.CheckFile links go to the right link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autodocThe web application for interactive documentation and generation of its assets.bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions