Replies: 3 comments 6 replies
-
Thanks for this @wigging. Can you show me how this looks when you build the documentation for the web rather than for Xcode? We don't change the CSS of the DocC renderer at all, we only insert a header/footer and very carefully style that in a way that should not affect the DocC content at all. I checked the styling we're rendering and I can see the If you could build HTML documentation locally and pop a screenshot in if it looks different, that would be really useful. It would be useful in figuring out if this is related to SPI or might be a bug in the DocC renderer. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the screenshot and additional information, @wigging, I didn't realise that the links themselves were missing. I thought this was a styling issue from your first message. I'm taking a quick look at this in more detail now. |
Beta Was this translation helpful? Give feedback.
-
So I built the documentation locally without using any of our tools and the documentation renders exactly the same as we show them on the hosted version. However, I know why this is not working as you expect. Those symbols in that list are not defined in the target that's having its documentation generated and so it doesn't know what to link to at that time. Do we have a workaround for this, @finestructure? |
Beta Was this translation helpful? Give feedback.
-
I’m using DocC for a Swift package. Unfortunately, the documentation generated on Swift Package Index screws up the code links as seen in Level 1 BLAS section on this page. These links work fine when I build the documentation with Xcode but not on Swift Package Index. Here is the markdown file in the GitHub repository that is used for the documentation page. Since this works in Xcode docs but not on SPI docs then I guess it is a bug or maybe there is a different way I should define the link. Any suggestions on how to get these links to work in Xcode and Swift Package Index or is it a bug with SPI?
Below is a screenshot of how the documentation page looks when building the docs with Xcode. Notice the links in the Level 1 BLAS section correctly render in the Xcode version of the docs. Clicking each link takes you to the correct documentation page for that method or function.
Beta Was this translation helpful? Give feedback.
All reactions