Supprime la classe Theme

This commit is contained in:
Florestan Bredow
2025-06-03 17:30:03 +02:00
parent 25c0d2545c
commit 2725f4257c
2 changed files with 1 additions and 27 deletions

View File

@@ -3,7 +3,6 @@ import shutil
from pathlib import Path
from blog.page import Page
from blog.config import Config
from blog.theme import Theme
from jinja2 import Environment, FileSystemLoader, Template
@@ -32,9 +31,9 @@ class Blog:
page_template = env.get_template("page.html.j2")
index_template = env.get_template("index.html.j2")
self._copy_css()
self._build_all_pages(page_template)
self._build_index(index_template)
self._copy_css()
def _build_all_pages(self, template: Template):
"""Convertit les pages markdown dans conf.inbox en html dans conf.outbox"""
@@ -65,12 +64,4 @@ class Blog:
for css_file in css_path.glob('*.css'):
dest_file = dest_path / css_file.name
shutil.copy(css_file, dest_file)
# dest = Path(str(dest_path) + '/' + Path(css_file).stem() + '.css')
# dest.write_text(Path(css_file).read_text)

View File

@@ -1,17 +0,0 @@
import glob
from pathlib import Path
from blog.page import Page
from blog.config import Config
from jinja2 import Environment, FileSystemLoader, Template
class Theme:
def __init__(self, path: Path):
""" """
self.path = path
def _list_css(self)
""" """
pass