Skip to content

Commit 9bcb9d3

Browse files
author
f@bi.an
committed
Aktualisiere das Dockerfile zur Optimierung der Nginx-Konfiguration und entferne nicht mehr benötigte Abhängigkeiten. Verbessere die Struktur für die Zertifikatverwaltung und passe die Benutzerzuweisungen an.
1 parent 8252e8e commit 9bcb9d3

File tree

5 files changed

+65
-0
lines changed

5 files changed

+65
-0
lines changed

.cursor/environment.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile",
4+
"context": "."
5+
},
6+
"terminals": []
7+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: "Rules and guidelines for creating and managing content (Markdown files) in the `docs/` directory."
3+
globs:
4+
- "docs/**/*.md"
5+
alwaysApply: false
6+
---
7+
8+
### Content Management (for `docs/**/*.md` files)
9+
10+
- New articles are created as `.md` files within the appropriate subdirectories of `docs/`.
11+
- When adding images, place them in the same directory as the article or a subdirectory. Reference them with relative paths.
12+
- The `image_optimizer.py` script will automatically process and optimize any new images during the build process.
13+
- Before committing, it's good practice to run `python check_media_paths.py` to find broken image or media links.

.cursor/rules/general.mdc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
description: "General context about this MkDocs project, including technology stack and local development commands."
3+
alwaysApply: true
4+
---
5+
6+
### General Project Context (MkDocs Blog)
7+
8+
- This is a personal blog built with the static site generator [MkDocs](https://www.mkdocs.org/) and the [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) theme.
9+
- The main configuration is in `mkdocs.yml`.
10+
- All content is located in the `docs/` directory as Markdown files.
11+
- Custom theme overrides are in the `overrides/` directory.
12+
- The project uses several Python scripts in the root for automation (building, image optimization, stats).
13+
14+
### Local Development Commands
15+
16+
- **To build the site:** Run `python build.py`. This script also optimizes images and generates stats.
17+
- **To serve the site locally:** Run `python serve.py`. The site will be available at `http://127.0.0.1:8000`. A quicker alternative is `python build.py --serve`.
18+
- **To do a quick build without optimization:** Run `python build.py --no-optimize`.

.cursor/rules/mkdocs-config.mdc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
description: "Instructions for editing the main `mkdocs.yml` configuration file."
3+
globs:
4+
- "mkdocs.yml"
5+
alwaysApply: false
6+
---
7+
8+
### MkDocs Configuration (`mkdocs.yml`)
9+
10+
- This is the central configuration file for the MkDocs site.
11+
- It defines the site name, theme, navigation, plugins, and markdown extensions.
12+
- When adding new plugins or changing the site structure, this file must be edited.

.cursor/rules/python-scripts.mdc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
description: "Overview of the Python helper scripts used in this project for automation."
3+
globs:
4+
- "*.py"
5+
alwaysApply: false
6+
---
7+
8+
### Python Scripts Overview
9+
10+
- `build.py`: Main script to build the entire site. It orchestrates other scripts like the image optimizer and stats generator.
11+
- `serve.py`: Starts a robust local development server with live reloading.
12+
- `image_optimizer.py`: Optimizes all images in the `docs` directory to reduce file size and improve website load times.
13+
- `generate_stats.py`: Creates various statistics about the site content.
14+
- `check_media_paths.py`: A utility script to validate that all media paths in Markdown files are correct.
15+
- `site_crawler.py` & `site_tester.py`: Scripts for testing the built site for broken links and other issues.

0 commit comments

Comments
 (0)