Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions themes/default/layouts/partials/icons/caret-right.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.5 15L12.5 10L7.5 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

17 changes: 17 additions & 0 deletions themes/default/layouts/partials/icons/neo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M19.4776 13.2633C19.6124 13.4278 19.8064 13.7575 19.9855 14.1021C20.1653 14.4484 20.3363 14.8226 20.4224 15.0808C20.7162 15.962 20.5079 16.8899 19.8672 17.5336C19.1818 18.222 18.135 18.3854 16.921 18.0343C16.8681 18.019 16.8377 18.0128 16.8141 18.0127C16.795 18.0127 16.7744 18.0169 16.7431 18.0343C16.7086 18.0535 16.6634 18.0876 16.5971 18.1463C16.5313 18.2046 16.449 18.2836 16.3401 18.3889C15.5577 19.146 14.8264 19.5702 13.8411 19.8374C13.4755 19.9364 12.8186 19.9902 12.1633 19.9988C11.5073 20.0073 10.8334 19.971 10.4332 19.8826C9.27584 19.6268 8.54122 19.2471 7.75731 18.4958L7.28442 18.0425L6.72004 18.1504C5.63512 18.356 4.79185 18.1602 4.16442 17.5275C3.71627 17.0753 3.49023 16.5762 3.50032 15.9834C3.51036 15.3969 3.75084 14.7297 4.20657 13.9366C4.32307 13.7339 4.43215 13.546 4.51394 13.4072C4.55471 13.338 4.58966 13.2808 4.61468 13.2396C4.62711 13.2192 4.63754 13.2018 4.64552 13.1893C4.64765 13.1859 4.64877 13.1821 4.65066 13.179L5.5584 13.8595C5.54315 13.8906 5.52311 13.9319 5.49774 13.9788C5.44578 14.0747 5.3744 14.2007 5.29625 14.3334C5.12707 14.6207 4.9718 14.9466 4.86038 15.2371C4.74734 15.5318 4.68486 15.7762 4.68562 15.9083C4.68671 16.0702 4.73944 16.2535 4.83057 16.4213C4.92155 16.5889 5.04672 16.734 5.18317 16.8253C5.39669 16.9679 5.5973 17.0384 5.86988 17.0402C6.14937 17.0419 6.50874 16.9723 7.03873 16.8243C8.84738 16.3193 10.1835 16.1377 12.0893 16.1386C13.8354 16.1394 15.0853 16.3065 16.9539 16.7883C17.9664 17.0494 18.4156 17.056 18.7745 16.8706C18.9293 16.7905 19.036 16.7053 19.1178 16.5951C19.2005 16.4834 19.2633 16.3388 19.3183 16.1314C19.416 15.7629 19.2979 15.332 18.7899 14.4373C18.6811 14.2456 18.5852 14.067 18.5185 13.9335C18.5066 13.9098 18.4967 13.8868 18.4866 13.8657L19.4057 13.1759L19.4776 13.2633ZM13.6283 17.4072C12.2378 17.273 10.3719 17.3491 9.04232 17.5932L8.62597 17.6693L8.77503 17.8019C9.16777 18.1534 9.92924 18.5171 10.6326 18.6819C10.9839 18.7642 11.5486 18.8033 12.1119 18.7981C12.676 18.7928 13.2232 18.743 13.5409 18.6552C13.9616 18.5388 14.4777 18.2909 14.8588 18.0528C15.0494 17.9336 15.2002 17.8207 15.2875 17.732C15.3139 17.7051 15.3301 17.6822 15.3409 17.6662C15.3363 17.6646 15.331 17.6629 15.3255 17.6611C15.295 17.6513 15.254 17.6408 15.2042 17.6292C15.1044 17.606 14.9712 17.5798 14.8125 17.5542C14.4952 17.5029 14.0787 17.4507 13.6283 17.4072Z"
fill="#673eac" />
<path
d="M10.7714 13.3003C10.8991 13.206 11.0498 13.1733 11.1919 13.2499C11.3872 13.3555 11.4428 13.5847 11.418 13.803C11.3927 14.0265 11.2828 14.2741 11.0994 14.4722C10.9851 14.5955 10.8742 14.6864 10.756 14.7107C10.6234 14.7378 10.514 14.6772 10.4209 14.5832C10.3253 14.4867 10.2796 14.3692 10.2872 14.2255C10.2945 14.0896 10.3488 13.9321 10.4384 13.7454C10.5336 13.547 10.6473 13.3922 10.7714 13.3003Z"
fill="#673eac" />
<path
d="M12.7565 13.3178C12.8483 13.2309 12.9876 13.1627 13.1256 13.2067C13.1618 13.2183 13.1963 13.2421 13.2243 13.2643C13.2542 13.2882 13.2856 13.3187 13.3168 13.3517C13.3793 13.4177 13.446 13.5013 13.5018 13.5881C13.6271 13.7831 13.699 13.9981 13.7105 14.1844C13.7215 14.3631 13.6764 14.5544 13.5183 14.6398C13.4779 14.6616 13.4388 14.6827 13.4052 14.6963C13.368 14.7113 13.3247 14.7225 13.2757 14.7138C13.2304 14.7057 13.1914 14.6828 13.1574 14.6593C13.1231 14.6356 13.0814 14.6019 13.032 14.5627C12.9128 14.468 12.8035 14.3154 12.7246 14.1597C12.6462 14.0047 12.5889 13.8299 12.5889 13.6848C12.589 13.5413 12.6624 13.4071 12.7565 13.3178Z"
fill="#673eac" />
<path
d="M12.9354 8.34529C15.4777 8.3468 17.7693 8.42956 18.7179 8.59612C19.0001 8.64569 19.2237 8.7306 19.3882 8.86649C19.5553 9.0047 19.6518 9.18893 19.6945 9.41853C19.7108 9.50643 19.7153 9.69141 19.711 9.90786C19.7066 10.1291 19.6927 10.3961 19.6719 10.6552C19.6284 11.1984 19.5674 11.5891 19.455 11.9053C19.3412 12.2252 19.1771 12.4648 18.9359 12.7082C18.4533 13.1949 17.6901 13.4883 16.887 13.5758C16.0828 13.6633 15.221 13.5466 14.5319 13.1944C13.994 12.9194 13.6585 12.5752 13.1286 11.7799C12.844 11.3526 12.6637 11.1163 12.4985 10.9832C12.3432 10.8582 12.1974 10.8211 11.9619 10.8176C11.7278 10.8143 11.5885 10.8439 11.4643 10.9338C11.3331 11.0289 11.2066 11.2001 11.0223 11.5136C10.4026 12.5673 9.50499 13.3127 8.58382 13.5131C8.08142 13.6222 7.44401 13.6576 7.00891 13.5984C6.07056 13.4706 5.34537 13.0951 4.8501 12.4666C4.48369 12.0014 4.38958 11.5471 4.35151 10.2779C4.33494 9.7251 4.32677 9.43096 4.34432 9.25405C4.35339 9.16291 4.36985 9.09395 4.39983 9.03302C4.42917 8.97352 4.46892 8.92769 4.5088 8.88191C4.54853 8.83629 4.58897 8.79382 4.64038 8.75855C4.6931 8.72252 4.75302 8.69679 4.82851 8.67733C4.97337 8.64006 5.19725 8.61959 5.5841 8.5879C7.57768 8.42459 10.3891 8.34378 12.9354 8.34529Z"
fill="#673eac" />
<path
d="M6.0724 6.96056C8.60619 3.37283 14.1943 2.97551 17.3147 6.1546C17.6483 6.49456 17.997 6.94229 18.2409 7.31522C18.3625 7.50115 18.4611 7.67233 18.5185 7.80455C18.5418 7.8584 18.5575 7.91162 18.5668 7.95875C18.0636 7.85223 17.5492 7.7632 17.0279 7.69044L17.0238 7.68325C16.656 7.14537 15.9305 6.46038 15.3358 6.09086C13.3041 4.82861 10.2662 4.93255 8.32271 6.33142C8.09824 6.49305 7.78331 6.77966 7.49825 7.07056C7.22189 7.35259 6.98461 7.62887 6.8835 7.79222C6.37979 7.85924 5.92247 7.93033 5.52242 7.99988C5.52157 7.98464 5.52178 7.97044 5.52344 7.95875C5.52768 7.92902 5.53721 7.8958 5.54914 7.86315C5.57352 7.79653 5.61432 7.71169 5.66428 7.61746C5.76481 7.4279 5.91145 7.1885 6.0724 6.96056Z"
fill="#673eac" />
</svg>
30 changes: 20 additions & 10 deletions themes/default/layouts/partials/registry/package/pulumi-ai.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{{/*
To regenerate get-started-with-pulumi.svg:
1. npm install opentype.js
2. node text-to-path.js ./public/fonts/gilroy-medium.woff "Get Started" 20 50 29
3. Wrap output path in SVG with: width="180" height="46" viewBox="0 0 180 46"
4. Include Pulumi logo elements and background: fill="#2B2B2C"
*/}}
{{ $title_tag := .Scratch.Get "title_tag" }}
{{ $prompt := printf "Explain resource %s, its top scenarios, and create a example usage for me." $title_tag }}
<a class="pulumi-ai-badge" target="_blank" href="https://app.pulumi.com/neo?prompt={{ $prompt | urlquery }}&prefer_signup=true">
<img src="/images/docs/icons/get-started-with-pulumi.svg" alt="Get Started">
</a>
{{ $firstLetter := substr $title_tag 0 1 | lower }}
{{ $article := "a" }}
{{ if or (eq $firstLetter "a") (eq $firstLetter "e") (eq $firstLetter "i") (eq $firstLetter "o") (eq $firstLetter "u")
}}
{{ $article = "an" }}
{{ end }}
{{ $cta := printf "Explain and create %s %s resource" $article $title_tag }}

<a class="pulumi-ai-badge mb-4" target="_blank"
href="https://app.pulumi.com/neo?prompt={{ $prompt | urlquery }}&prefer_signup=true">
<div class="container flex flex-row items-center text-white rounded-lg p-6 gap-4 text-display transition-colors">
<div class="flex items-center justify-center bg-white rounded-full p-0.5">{{ partial "icon" (dict "icon" "neo") }}
</div>
<div class="flex flex-col">
<div class="text-base font-semibold pb-0.5">Start a Neo task</div>
<div class="text-sm">{{ $cta }}</div>
</div>
<div class="ml-auto">{{ partial "icon" (dict "icon" "caret-right") }}</div>
</div>
</a>
32 changes: 4 additions & 28 deletions themes/default/theme/src/scss/docs/_registry.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
a.pulumi-ai-badge {
display: inline-block;

div {
width: fit-content;
margin-top: 4px;
margin-bottom: 24px;
border-color: #a6adec;
border-width: 2px;
border-left-width: 12px;
border-radius: 6px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;

&:hover {
border-color: #828ce4;
cursor: pointer;
}
.container {
background-color: #673eac;

p {
margin: 4px 14px 4px 16px;
font-size: 14px;

i {
margin-left: 12px;
font-size: 14px;
position:relative;
top:-1px;
color: transparent;
-webkit-text-stroke-width: 1.5px;
-webkit-text-stroke-color: #2f3032;
}
&:hover {
background-color: #481a96;
}
}
}
Loading