Skip to content

Commit 5c487e0

Browse files
author
Вадим Козыревский
committed
Update documentation
1 parent 5e9c60a commit 5c487e0

3 files changed

Lines changed: 17 additions & 13 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ WORKDIR /app
77
COPY requirements.txt .
88
RUN pip install --no-cache-dir -r requirements.txt
99

10-
# Копируем код и собираем статику
10+
# Копируем код
1111
COPY . .
12-
RUN mkdocs build
12+
# При сборке можно передать SITE_URL: docker build --build-arg SITE_URL=https://mkdocs.python-cqrs.dev/ .
13+
ARG SITE_URL=https://mkdocs.python-cqrs.dev/
14+
RUN sed -i "s|^site_url:.*|site_url: ${SITE_URL}|" mkdocs.yml && mkdocs build
1315

1416
# Этап запуска (Nginx)
1517
FROM nginx:alpine

docs/javascripts/star-link.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
function randomizeStars(starLink) {
20-
const delays = shuffle([0, 0.08, 0.16, 0.24, 0.32]);
20+
const delays = shuffle([0, 0.05, 0.1, 0.15, 0.2]);
2121
starLink.style.setProperty('--delay-star', delays[0] + 's');
2222
starLink.style.setProperty('--delay-sparkle-1', delays[1] + 's');
2323
starLink.style.setProperty('--delay-sparkle-2', delays[2] + 's');
@@ -37,6 +37,8 @@
3737
const starLink = document.querySelector('.star-link');
3838
if (!starLink) return;
3939

40+
randomizeStars(starLink);
41+
4042
starLink.addEventListener('mouseenter', function() {
4143
randomizeStars(starLink);
4244
});

docs/stylesheets/extra.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,16 +1038,16 @@ footer nav {
10381038
transform: translateX(-50%);
10391039
}
10401040

1041-
.star-link:hover .star-link-icon-star {
1042-
animation: starFlyFromBottom 1.4s ease-out var(--delay-star, 0s) infinite;
1041+
.star-link .star-link-icon-star {
1042+
animation: starFlyFromBottom 1.85s ease-out var(--delay-star, 0s) infinite;
10431043
}
10441044

1045-
.star-link:hover .star-link-icon-sparkle:nth-child(4) {
1046-
animation: starFlyFromBottom 1.4s ease-out var(--delay-sparkle-1, 0.25s) infinite;
1045+
.star-link .star-link-icon-sparkle:nth-child(4) {
1046+
animation: starFlyFromBottom 1.85s ease-out var(--delay-sparkle-1, 0.25s) infinite;
10471047
}
10481048

1049-
.star-link:hover .star-link-icon-sparkle:nth-child(5) {
1050-
animation: starFlyFromBottom 1.4s ease-out var(--delay-sparkle-2, 0.5s) infinite;
1049+
.star-link .star-link-icon-sparkle:nth-child(5) {
1050+
animation: starFlyFromBottom 1.85s ease-out var(--delay-sparkle-2, 0.5s) infinite;
10511051
}
10521052

10531053
.star-link::before,
@@ -1071,13 +1071,13 @@ footer nav {
10711071
margin-left: -0.5em;
10721072
}
10731073

1074-
.star-link:hover::before {
1075-
animation: starFlyFromBottomSide 1.4s ease-out var(--delay-before, 0.1s) infinite;
1074+
.star-link::before {
1075+
animation: starFlyFromBottomSide 1.85s ease-out var(--delay-before, 0.1s) infinite;
10761076
opacity: 1;
10771077
}
10781078

1079-
.star-link:hover::after {
1080-
animation: starFlyFromBottomSide 1.4s ease-out var(--delay-after, 0.35s) infinite;
1079+
.star-link::after {
1080+
animation: starFlyFromBottomSide 1.85s ease-out var(--delay-after, 0.35s) infinite;
10811081
opacity: 1;
10821082
}
10831083

0 commit comments

Comments
 (0)