Skip to content

Commit 02149fb

Browse files
author
Вадим Козыревский
committed
Add robots.txt file
1 parent 49c3949 commit 02149fb

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ jobs:
2626
restore-keys: |
2727
mkdocs-material-
2828
- run: pip install -r requirements.txt
29+
- name: Patch site_url for GitHub Pages
30+
run: sed -i 's|https://python-cqrs.dev/|https://vadikko2.github.io/python-cqrs-mkdocs/|g' mkdocs.yml
2931
- run: mkdocs gh-deploy --force

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Этап сборки (Builder)
2+
FROM python:3.11-slim as builder
3+
4+
WORKDIR /app
5+
6+
# Копируем и устанавливаем зависимости
7+
COPY requirements.txt .
8+
RUN pip install --no-cache-dir -r requirements.txt
9+
10+
# Копируем код и собираем статику
11+
COPY . .
12+
RUN mkdocs build
13+
14+
# Этап запуска (Nginx)
15+
FROM nginx:alpine
16+
17+
# Копируем собранный сайт в папку nginx
18+
COPY --from=builder /app/site /usr/share/nginx/html
19+
20+
# Порт 80 стандартный для веб-сервера
21+
EXPOSE 80
22+
23+
CMD ["nginx", "-g", "daemon off;"]

docs/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
Allow: /
3+
Sitemap: https://python-cqrs.dev/sitemap.xml

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
site_name: python-cqrs
2-
site_url: https://vadikko2.github.io/python-cqrs-mkdocs/
2+
site_url: https://python-cqrs.dev/
3+
site_description: Документация по библиотеке python-cqrs. Паттерны CQRS, Saga, Mediator и Event Driven на Python.
4+
site_author: Vadim Kozyrevskii
35
repo_url: https://github.com/vadikko2/python-cqrs
46
repo_name: vadikko2/python-cqrs
57
dev_addr: 127.0.0.1:8000

0 commit comments

Comments
 (0)