Skip to content

Commit 697600c

Browse files
[Website] Minor edits (#3609)
1 parent d1fd238 commit 697600c

6 files changed

Lines changed: 36 additions & 31 deletions

File tree

docs/assets/stylesheets/extra.css

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,37 +1272,30 @@ html .md-footer-meta.md-typeset a:is(:focus,:hover) {
12721272
padding-right: 22px;
12731273
}
12741274

1275-
.md-tabs__item:nth-child(1) {
1275+
.md-tabs__item:nth-child(1), .md-tabs__item:nth-child(4) {
12761276
display: none;
12771277
}
12781278

1279-
/* .md-tabs__item:nth-child(5):after {
1280-
content: url('data:image/svg+xml,<svg fill="black" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 16 16"><polygon points="5 4.31 5 5.69 9.33 5.69 2.51 12.51 3.49 13.49 10.31 6.67 10.31 11 11.69 11 11.69 4.31 5 4.31" data-v-e1bdab2c=""></polygon></svg>');
1281-
line-height: 14px;
1282-
margin-left: 4px;
1283-
position: relative;
1284-
top: 16px;
1285-
margin-right: -7px;
1286-
} */
12871279

1288-
/*.md-tabs__item:nth-child(6) {
1280+
1281+
.md-tabs__item:nth-child(7) {
12891282
margin-left: auto;
1290-
padding-right: 0.8rem;
1283+
padding-right: 0.5rem;
12911284
}
12921285

1293-
.md-tabs__item:nth-child(n+6) .md-tabs__link {
1286+
.md-tabs__item:nth-child(n+7) .md-tabs__link {
12941287
visibility: hidden;
12951288
width: 35px;
12961289
display: inline-block;
1297-
margin-top: 10px;
1290+
margin-top: 12px;
12981291
}
12991292

1300-
.md-tabs__item:nth-child(n+6) .md-tabs__link:before {
1293+
.md-tabs__item:nth-child(n+7) .md-tabs__link:before {
13011294
width: 38px;
13021295
height: 38px;
13031296
margin-top: 4px;
13041297
visibility: visible;
1305-
}*/
1298+
}
13061299

13071300
/* .twemoji.external {
13081301
position: relative;
@@ -1320,27 +1313,28 @@ html .md-footer-meta.md-typeset a:is(:focus,:hover) {
13201313
margin-right: -7px;
13211314
} */
13221315

1323-
/*.md-tabs__item:nth-child(6) .md-tabs__link:before {
1316+
.md-tabs__item:nth-child(7) .md-tabs__link:before {
13241317
position: relative;
13251318
content: '';
1326-
width: 37px;
1327-
height: 31px;
1319+
width: 34px;
1320+
height: 28px;
13281321
display: inline-block;
13291322
-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241"></path></svg>') no-repeat 50% 50%;
13301323
mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241"></path></svg>') no-repeat 50% 50%;
13311324
-webkit-mask-size: cover;
13321325
mask-size: cover;
1333-
background: -webkit-linear-gradient(45deg, #0048ff, #ce00ff);
1326+
background-color: rgba(0,0,0,0.87);
1327+
/* background: -webkit-linear-gradient(45deg, #0048ff, #ce00ff); */
13341328
margin-top: 1px;
1335-
}*/
1329+
}
13361330

13371331
.md-tabs__link {
13381332
display: flex;
13391333
align-items: center;
13401334
}
13411335

13421336
.md-tabs__link {
1343-
font-size: 0.85rem;
1337+
font-size: 0.88rem;
13441338
font-weight: 500;
13451339
color: rgba(0,0,0,0.87);
13461340
/*letter-spacing: -0.5px;*/

docs/assets/stylesheets/landing.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@
11351135
}
11361136

11371137
@media screen and (max-width: 44.984375em) {
1138-
.md-header__buttons .md-button:before, .md-header__buttons .md-button:after {
1138+
.md-header__buttons .md-button:not(.github):before, .md-header__buttons .md-button:not(.github):after {
11391139
display: none !important;
11401140
}
11411141

docs/overrides/header-2.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,19 @@
6161
{% endif %}-->
6262

6363
<div class="md-header__buttons">
64-
<a href="https://github.com/dstackai/dstack" target="_blank" class="md-button md-button--primary github">GitHub</a>
65-
<a href="https://sky.dstack.ai" target="_blank" class="md-button md-button--primary sky">dstack Sky</a>
64+
<a id="gh-star-link" href="https://github.com/dstackai/dstack" target="_blank" class="md-button md-button--primary github external-skip">GitHub</a>
65+
<script>
66+
fetch("https://api.github.com/repos/dstackai/dstack")
67+
.then(r => r.json())
68+
.then(data => {
69+
if (data.stargazers_count) {
70+
document.getElementById("gh-star-link").textContent =
71+
data.stargazers_count.toLocaleString("en-US");
72+
}
73+
})
74+
.catch(() => {});
75+
</script>
76+
<a href="https://sky.dstack.ai" target="_blank" class="md-button md-button--primary sky external-skip">dstack Sky</a>
6677
</div>
6778
</nav>
6879
{% if "navigation.tabs.sticky" in features %}

docs/overrides/home.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ <h1 class="glitch" data-text="Open-source GPU-native orchestration">Open-source
6464
<a href="/docs/installation" target="_blank"
6565
class="md-button md-button--primary"
6666
style="min-width: 225px; margin-right: 10px">
67-
<span>Get started</span>
68-
<span class="icon"><svg viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg"><path d="M12.823 4.164L8.954.182a.592.592 0 0 0-.854 0 .635.635 0 0 0 0 .88l2.836 2.92H.604A.614.614 0 0 0 0 4.604c0 .344.27.622.604.622h10.332L8.1 8.146a.635.635 0 0 0 0 .88.594.594 0 0 0 .854 0l3.869-3.982a.635.635 0 0 0 0-.88z" fill-rule="nonzero" fill="currentColor" class="fill-main"></path></svg></span>
67+
<span>Install open-source</span>
68+
<!-- <span class="icon"><svg viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg"><path d="M12.823 4.164L8.954.182a.592.592 0 0 0-.854 0 .635.635 0 0 0 0 .88l2.836 2.92H.604A.614.614 0 0 0 0 4.604c0 .344.27.622.604.622h10.332L8.1 8.146a.635.635 0 0 0 0 .88.594.594 0 0 0 .854 0l3.869-3.982a.635.635 0 0 0 0-.88z" fill-rule="nonzero" fill="currentColor" class="fill-main"></path></svg></span> -->
6969
</a>
7070

7171
<a href="/docs/" target="_blank"
@@ -585,7 +585,7 @@ <h2>Get started in minutes</h2>
585585
class="md-button md-button--primary"
586586
style="margin-right: 10px">
587587
<span>Quickstart</span>
588-
<span class="icon"><svg viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg"><path d="M12.823 4.164L8.954.182a.592.592 0 0 0-.854 0 .635.635 0 0 0 0 .88l2.836 2.92H.604A.614.614 0 0 0 0 4.604c0 .344.27.622.604.622h10.332L8.1 8.146a.635.635 0 0 0 0 .88.594.594 0 0 0 .854 0l3.869-3.982a.635.635 0 0 0 0-.88z" fill-rule="nonzero" fill="currentColor" class="fill-main"></path></svg></span>
588+
<!-- <span class="icon"><svg viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg"><path d="M12.823 4.164L8.954.182a.592.592 0 0 0-.854 0 .635.635 0 0 0 0 .88l2.836 2.92H.604A.614.614 0 0 0 0 4.604c0 .344.27.622.604.622h10.332L8.1 8.146a.635.635 0 0 0 0 .88.594.594 0 0 0 .854 0l3.869-3.982a.635.635 0 0 0 0-.88z" fill-rule="nonzero" fill="currentColor" class="fill-main"></path></svg></span> -->
589589
</a>
590590

591591
<a href="/docs/installation" target="_blank"

docs/overrides/main.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@
112112
{% endblock %}
113113

114114
{% block announce %}
115-
Support dstack with a ⭐ on
116-
<a href="https://github.com/dstackai/dstack" target="_blank">GitHub</a>
115+
Services now support native <a href="https://dstack.ai/blog/pd-disaggregation/" target="_blank">Prefill-Decode disaggregation</a>
117116
{% endblock %}
118117

119118
{% block footer %}
@@ -154,7 +153,7 @@
154153

155154
<div class="tx-footer__section">
156155
<div class="tx-footer__section-title">Community</div>
157-
<a href="https://discord.gg/u8SmfwPpMd" target="_blank" class="tx-footer__section-link external">Discord</a>
156+
<a href="https://discord.gg/u8SmfwPpMd" target="_blank" class="tx-footer__section-link external">Join Discord</a>
158157
<a href="https://github.com/dstackai/dstack" target="_blank" class="tx-footer__section-link external">GitHub</a>
159158
</div>
160159

@@ -164,6 +163,7 @@
164163
<!-- <a href="/partners" class="tx-footer__section-link">Partners</a> -->
165164
<a href="/terms" class="tx-footer__section-link">Terms</a>
166165
<a href="/privacy" class="tx-footer__section-link">Privacy</a>
166+
<a href="/blog" class="tx-footer__section-link">Blog</a>
167167
<!--<a href="https://dstackai.notion.site/Jobs-at-dstack-ff01a450c3174904b70c36124f2d8f4b" target="_blank" class="tx-footer__section-link external">Careers</a>-->
168168
</div>
169169
</div>

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ nav:
315315
- blog/index.md
316316
- Case studies: blog/case-studies.md
317317
- Benchmarks: blog/benchmarks.md
318-
# - Discord: https://discord.gg/u8SmfwPpMd" target="_blank
318+
- Discord: https://discord.gg/u8SmfwPpMd" target="_blank
319319
# - Changelog: https://github.com/dstackai/dstack/releases" target="_blank
320320
# - GitHub: https://github.com/dstackai/dstack" target="_blank
321321
# - Sign in: https://sky.dstack.ai" target="_blank

0 commit comments

Comments
 (0)