Skip to content

Commit

Permalink
Bump version 0.40.0 → 0.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Sep 28, 2023
1 parent 1760603 commit e1193ee
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 32 deletions.
2 changes: 1 addition & 1 deletion mknodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@
"MkPipDepTree",
]

__version__ = "0.40.0"
__version__ = "0.41.0"
2 changes: 0 additions & 2 deletions mknodes/basenodes/mkannotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class MkAnnotation(mkcontainer.MkContainer):
"""Represents a single annotation. It gets managed by an MkAnnotations node."""

REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
requirements.Extension("pymdownx.superfences"),
]
Expand Down Expand Up @@ -52,7 +51,6 @@ class MkAnnotations(mkcontainer.MkContainer):

items: list[MkAnnotation]
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
requirements.Extension("pymdownx.superfences"),
]
Expand Down
3 changes: 1 addition & 2 deletions mknodes/basenodes/mkclickdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Any

from mknodes.basenodes import mknode
from mknodes.utils import clihelpers, log, reprhelpers, requirements
from mknodes.utils import clihelpers, log, reprhelpers


logger = log.get_logger(__name__)
Expand All @@ -12,7 +12,6 @@
class MkClickDoc(mknode.MkNode):
"""Documentation for click / typer CLI apps."""

REQUIRED_EXTENSIONS = [requirements.Extension("attr_list")]
ICON = "material/api"

def __init__(
Expand Down
10 changes: 2 additions & 8 deletions mknodes/basenodes/mkgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ class MkGridCard(mkcontainer.MkContainer):

ICON = "material/square-medium"
STATUS = "new"
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
]
REQUIRED_EXTENSIONS = [requirements.Extension("md_in_html")]

def __init__(
self,
Expand All @@ -36,10 +33,7 @@ class MkGrid(mkcontainer.MkContainer):
"""Node for showing a grid."""

ICON = "material/view-grid"
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
]
REQUIRED_EXTENSIONS = [requirements.Extension("md_in_html")]
items: list[MkGridCard]

def __init__(
Expand Down
5 changes: 1 addition & 4 deletions mknodes/basenodes/mkimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ class MkImage(mknode.MkNode):
"""Image including optional caption."""

ICON = "material/image"
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
]
REQUIRED_EXTENSIONS = [requirements.Extension("md_in_html")]

def __init__(
self,
Expand Down
4 changes: 0 additions & 4 deletions mknodes/basenodes/mkimagecompare.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ class MkImageCompare(mknode.MkNode):
"""Node to show an Image comparison (using a slider)."""

ICON = "material/image-off"
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
]
JS_FILES = [requirements.JSLink(JS_URL, defer=True)]
CSS = [requirements.CSSLink(CSS_URL)]

Expand Down
4 changes: 0 additions & 4 deletions mknodes/basenodes/mkimageslideshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class MkImageSlideshow(mknode.MkNode):
"""Node to show an Image comparison (using a slider)."""

ICON = "material/image-multiple"
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
]
JS_FILES = [requirements.JSLink(JS_URL)]

def __init__(
Expand Down
3 changes: 1 addition & 2 deletions mknodes/basenodes/mklink.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import TYPE_CHECKING, Any

from mknodes.basenodes import mknode
from mknodes.utils import log, reprhelpers, requirements
from mknodes.utils import log, reprhelpers


if TYPE_CHECKING:
Expand All @@ -22,7 +22,6 @@ class MkLink(mknode.MkNode):
"""

ICON = "octicons/link-24"
REQUIRED_EXTENSIONS = [requirements.Extension("attr_list")] # for buttons

def __init__(
self,
Expand Down
4 changes: 3 additions & 1 deletion mknodes/basenodes/mknode.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def get_requirements(self) -> requirements.Requirements:
logger.debug("Collecting requirements from tree...")
nodes = [*list(self.descendants), self]
extensions: dict[str, dict] = {
"attr_list": {},
"md_in_html": {},
"pymdownx.emoji": {},
"pymdownx.magiclink": dict(
repo_url_shorthand=True,
Expand Down Expand Up @@ -341,7 +343,7 @@ def to_html(self) -> str:
md = self.to_markdown()
reqs = self.get_requirements()
configs = reqs.markdown_extensions
exts = [*list(configs.keys()), "attr_list", "md_in_html"]
exts = list(configs.keys())
return markdown.Markdown(extensions=exts, extension_configs=configs).convert(md)


Expand Down
5 changes: 1 addition & 4 deletions mknodes/basenodes/mktimeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ class MkTimeline(mkcontainer.MkContainer):
"""Node to show an Image comparison (using a slider)."""

ICON = "material/timeline"
REQUIRED_EXTENSIONS = [
requirements.Extension("attr_list"),
requirements.Extension("md_in_html"),
]
REQUIRED_EXTENSIONS = [requirements.Extension("md_in_html")]
JS_FILES = [
requirements.JSLink(JQUERY_LINK),
requirements.JSLink(SCROLLREVEAL_LINK),
Expand Down

0 comments on commit e1193ee

Please sign in to comment.