MultiDocumenter.jl icon indicating copy to clipboard operation
MultiDocumenter.jl copied to clipboard

Create an interface for column components other than MultiDocRef

Open asinghvi17 opened this issue 10 months ago • 1 comments

We wanted to add some custom components (external links https://github.com/SciML/SciMLDocs/pull/240, commercial support icons, etc.) but the current structure of MultiDocumenter constrains this to MultiDocRef.

This PR introduces an abstract supertype of MultiDocRef, DropdownComponent (name up for review) where the only interface requirement is that the subtype implements render(::Component, doc, page, prettyurls). This can be used to create arbitrary components that are rendered as arbitrary HTML, within the column environment.

asinghvi17 avatar Feb 20 '25 15:02 asinghvi17

Looks like Windows tests are failing because of an extra carriage return (\r). Might add a chomp to that just to normalize whitespace.

asinghvi17 avatar Feb 20 '25 16:02 asinghvi17

We can make Link look pretty in a separate PR - this is ready from my end now!

asinghvi17 avatar Feb 26 '25 21:02 asinghvi17