Compare commits

...

2 Commits

Author SHA1 Message Date
Florestan Bredow
13c72b8066 Supprime commentaires intiles 2025-06-03 17:30:25 +02:00
Florestan Bredow
2725f4257c Supprime la classe Theme 2025-06-03 17:30:03 +02:00
3 changed files with 1 additions and 31 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

@@ -98,7 +98,3 @@ class Page:
self.md_content, extensions=["codehilite", "fenced_code"]
),
)
# from bs4 import BeautifulSoup as bs
# print(bs(html_string, 'html.parser').prettify())

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