TechDocs: fix pymdown emoji configs (#2482)
* fix pymdown emoji configs * Added changelog, bumped version Co-authored-by: Sebastian Qvarfordt <s.qvarfordt@gmail.com>
This commit is contained in:
@@ -59,3 +59,5 @@ digraph G {
|
||||
Goofy <-- MickeyMouse: responds
|
||||
@enduml
|
||||
```
|
||||
|
||||
:bulb:
|
||||
|
||||
@@ -50,6 +50,14 @@ python -m black src/
|
||||
|
||||
## Changelog
|
||||
|
||||
### 0.0.7
|
||||
|
||||
- Fix an issue with configuration of emoji support
|
||||
|
||||
### 0.0.6
|
||||
|
||||
- Further adjustments to versions to find ones that are compatible
|
||||
|
||||
### 0.0.5
|
||||
|
||||
- Downgrade some versions of markdown extensions to versions that are more stable
|
||||
|
||||
@@ -18,7 +18,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='mkdocs-techdocs-core',
|
||||
version='0.0.6',
|
||||
version='0.0.7',
|
||||
description='A Mkdocs package that contains TechDocs defaults',
|
||||
long_description='',
|
||||
keywords='mkdocs',
|
||||
|
||||
@@ -18,6 +18,7 @@ from mkdocs.plugins import BasePlugin, PluginCollection
|
||||
from mkdocs.theme import Theme
|
||||
from mkdocs.contrib.search import SearchPlugin
|
||||
from mkdocs_monorepo_plugin.plugin import MonorepoPlugin
|
||||
from pymdownx.emoji import to_svg
|
||||
import tempfile
|
||||
import os
|
||||
|
||||
@@ -76,9 +77,7 @@ class TechDocsCore(BasePlugin):
|
||||
config["markdown_extensions"].append("pymdownx.critic")
|
||||
config["markdown_extensions"].append("pymdownx.details")
|
||||
config["markdown_extensions"].append("pymdownx.emoji")
|
||||
config["mdx_configs"]["pymdownx.emoji"] = {
|
||||
"emoji_generator": "!!python/name:pymdownx.emoji.to_svg",
|
||||
}
|
||||
config["mdx_configs"]["pymdownx.emoji"] = {"emoji_generator": to_svg}
|
||||
config["markdown_extensions"].append("pymdownx.inlinehilite")
|
||||
config["markdown_extensions"].append("pymdownx.magiclink")
|
||||
config["markdown_extensions"].append("pymdownx.mark")
|
||||
|
||||
Reference in New Issue
Block a user