-
-
Notifications
You must be signed in to change notification settings - Fork 49
Add a commercial support dropdown #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7d70d87
Clone locally and ignore that directory, for speed when building locally
asinghvi17 b269e49
Add commercial support and products used components
asinghvi17 d504b07
Simplify the products-used component to remove images
asinghvi17 152cb37
Change link to full JuliaHub Hubspot form
asinghvi17 4b42e89
Improve formatting and fix typo
asinghvi17 44e14b1
set warnonly=true, see if docs build
asinghvi17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.jl.cov | ||
*.jl.mem | ||
/docs/build/ | ||
/docs/cloned/ | ||
/docs/src/modules | ||
Manifest.toml | ||
*.swp | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
struct JuliaHubCommercialSupportComponent <: MultiDocumenter.DropdownComponent | ||
link::String | ||
end | ||
|
||
function MultiDocumenter.render(c::JuliaHubCommercialSupportComponent, doc, thispage, prettyurls) | ||
|
||
return MultiDocumenter.@htl """ | ||
<div> | ||
<a href="$(c.link)" class="nav-link nav-item"> | ||
<img src="https://info.juliahub.com/hubfs/Julia-Hub-Navigation-Logo-JuliaHub.svg" alt="JuliaHub logo - contact sales today!" style = "padding: 10px;"/> | ||
</a> | ||
<p></p> | ||
<a href="$(c.link)" class="nav-link nav-item">JuliaHub offers commercial support for ModelingToolkit and the SciML ecosystem. Contact us today to discuss your needs!</a> | ||
</div> | ||
""" | ||
|
||
end | ||
|
||
struct ProductsUsedComponent <: MultiDocumenter.DropdownComponent end | ||
|
||
PRODUCTNAME_IMAGE_LINK = [ | ||
(; product = "JuliaSim", logo = "https://juliahub.com/ui/juliasim-logo.notext.svg", link = "https://juliahub.com/products/juliasim"), | ||
(; product = "Pumas", logo = "https://juliahub.com/ui/Pumas%20Logomark.svg", link = "https://pumas.ai/"), | ||
(; product = "Cedar EDA", logo = "https://juliahub.com/ui/cedar_eda.svg", link = "https://juliahub.com/products/cedar-eda"), | ||
(; product = "Neuroblox", logo = "https://juliahub.com/ui/Neuroblox-logo-400-300-dark.png", link = "https://www.neuroblox.org/"), | ||
(; product = "Planting Space", logo = "https://planting.space/img/logo_big.svg", link = "https://planting.space/"), | ||
] | ||
|
||
function MultiDocumenter.render(c::ProductsUsedComponent, doc, thispage, prettyurls) | ||
strings = [MultiDocumenter.@htl """ | ||
<li> | ||
<a href=$(product.link) class="nav-link nav-item"> | ||
$(product.product) | ||
</a> | ||
</li> | ||
""" for product in PRODUCTNAME_IMAGE_LINK] | ||
|
||
return MultiDocumenter.@htl """ | ||
<table> | ||
$strings | ||
</table> | ||
""" | ||
end | ||
|
||
|
||
struct Link <: MultiDocumenter.DropdownComponent | ||
text::String | ||
link::String | ||
end | ||
|
||
function MultiDocumenter.render(c::Link, doc, thispage, prettyurls) | ||
return MultiDocumenter.@htl """ | ||
<a href=$(c.link) class="nav-link nav-item">$(c.text)</a> | ||
""" | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes repeated builds on a local machine significantly faster, and avoids cluttering the temp directory with 14 GB of files :D