GithubHelp home page GithubHelp logo

Comments (4)

d-ronnqvist avatar d-ronnqvist commented on June 3, 2024 1

Feel free to reopen this issue and add more examples if there are cases where this doesn't work with the latest main or 5.9 builds of DocC.

from swift-docc.

Kyle-Ye avatar Kyle-Ye commented on June 3, 2024

Reproduced.

Using the sample code below, and reference these property in DocC's Topics.

A/id and C/description are fine. B/id and C/id are complaining -> "Topic reference 'B/id' couldn't be resolved to known documentation"

public struct A {
    public var id: String
}

public struct B: Identifiable {
    public var id: String
}

public struct C: CustomStringConvertible, Identifiable {
    public var id: String
    public var description: String
}

I'm investigating the code to find what's wrong.

from swift-docc.

JeneaVranceanu avatar JeneaVranceanu commented on June 3, 2024

Xcode Version 13.3 (13E113)

Probably related:

Topic reference 'Web3/Utils/erc20ABI' couldn't be resolved. No local documentation matches this reference.

Breakdown

erc20ABI is a public static var declared in an extension of Web3.Utils which is a struct.
The Web3.Utils is declared in an extension.

public struct Web3 {
}

extension Web3 {
    public struct Utils {
    }
}

extension Web3.Utils {
    /// Note that this variable does have a documentation comment, but it's not resolved.
    public static var erc20Abi = "some value here"
}

But at the same time, this variable is resolved by Xcode and by Cmd+Click can navigate to the declaration source.

Screenshot 2022-07-15 at 12 20 44

from swift-docc.

d-ronnqvist avatar d-ronnqvist commented on June 3, 2024

All 3 examples in this thread work for me in the latest main and 5.9 builds of DocC.

from swift-docc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.