Skip to content

Commit

Permalink
remove css
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Jul 19, 2022
1 parent a51ab98 commit 82f817c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 75 deletions.
10 changes: 0 additions & 10 deletions ablog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from glob import glob
from pathlib import PurePath

from sphinx.util.fileutil import copy_asset

from .blog import CONFIG, Blog
from .post import (
CheckFrontMatter,
Expand All @@ -30,13 +28,6 @@
__all__ = ["setup"]


def copy_asset_files(app, exc):
asset_files = [os.path.join(PKGDIR, "static", "ablog.css")]
if exc is None: # build succeeded
for path in asset_files:
copy_asset(path, os.path.join(app.outdir, "_static"))


def anchor(post):
"""
Return anchor string for posts that arepage sections.
Expand Down Expand Up @@ -104,7 +95,6 @@ def setup(app):
latex=(lambda s, n: s.visit_admonition(n), lambda s, n: s.depart_admonition(n)),
)

app.connect("build-finished", copy_asset_files)
app.config.locale_dirs.append(os.path.join(PKGDIR, "locales"))

return {"version": __version__} # identifies the version of our extension
Expand Down
64 changes: 0 additions & 64 deletions ablog/static/ablog.css

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
message_extractors={
"ablog": [
("**.py", "python", None),
("templates/**.html", "jinja2", None),
("templates/ablog/**.html", "jinja2", None),
],
},
)

0 comments on commit 82f817c

Please sign in to comment.