Skip to content

Commit ffa714a

Browse files
authored
Finalized Version 2.4 (#179)
* Updated lock file * Updated a few more dependencies * Updating python versions * Updating python versions * Cleaning up docs * Update copyright footer * Walked back syntax issue * Updated lockfile * Added missing templates to docs * Fixed doc page formatting * Fixed docs to reference new Alert name * Updated docs dependencies * Added more docs describing the intent behind templates * Updated the version history * Finalized new version history doc
1 parent d1ac35b commit ffa714a

File tree

9 files changed

+524
-460
lines changed

9 files changed

+524
-460
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
matrix:
13-
python-version: ["3.9"]
13+
python-version: ["3.10"]
1414
poetry-version: ["2.1"]
1515
os: ["ubuntu-latest"]
1616

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
matrix:
13-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
13+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1414
poetry-version: ["2.1"]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616

docs/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = "SnakeMD"
21-
copyright = "2021-2023, The Renegade Coder"
21+
copyright = "2021-2025, The Renegade Coder"
2222
author = "The Renegade Coder"
2323

2424
# -- General configuration ---------------------------------------------------
@@ -71,8 +71,6 @@
7171

7272
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
7373

74-
html_theme_options = {"display_version": True}
75-
7674
# -- ReadTheDocs Configuration
7775

7876
# Set canonical URL from the Read the Docs Domain

docs/docs/template-api.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ a template system is slowly being developed for folks who
77
are looking for a bit more convenience. Ultimately, these
88
folks can expect support for typical document sections such
99
as tables of contents, footers, copyrights, and more.
10+
In addition, because the core element library is designed
11+
to adhere as closely to vanilla Markdown as possible,
12+
folks can also find extended markdown features here,
13+
such as checklists, alerts, and more.
1014

1115
Template Interface
1216
------------------
@@ -37,6 +41,22 @@ make use of any external dependencies. In the latter
3741
case, that restriction does not apply. With that said,
3842
the existing templates can be found below.
3943

44+
Alert
45+
^^^^^
46+
47+
.. autoclass:: snakemd.Alert
48+
:members:
49+
:undoc-members:
50+
:show-inheritance:
51+
52+
Checklist
53+
^^^^^^^^^
54+
55+
.. autoclass:: snakemd.Checklist
56+
:members:
57+
:undoc-members:
58+
:show-inheritance:
59+
4060
CSVTable
4161
^^^^^^^^
4262

docs/python-support.csv

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Python,3.13,3.12,3.11,3.10,3.9,3.8
2-
SnakeMD >= 2.2.1,Yes,Yes,Yes,Yes,Yes,
3-
SnakeMD 2.0 - 2.2.0,,,Yes,Yes,Yes,Yes
4-
SnakeMD 0.12 - 0.15,,,Yes,Yes,Yes,Yes
5-
SnakeMD < 0.12,,,,Yes,Yes,Yes
1+
Python,3.14,3.13,3.12,3.11,3.10,3.9,3.8
2+
SnakeMD >= 2.4.0,Yes,Yes,Yes,Yes,Yes
3+
SnakeMD 2.2.1 - 2.3,,Yes,Yes,Yes,Yes,Yes
4+
SnakeMD 2.0 - 2.2.0,,,,Yes,Yes,Yes,Yes
5+
SnakeMD 0.12 - 0.15,,,,Yes,Yes,Yes,Yes
6+
SnakeMD < 0.12,,,,,Yes,Yes,Yes

docs/version-history.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,22 @@ as follows:
1313
v2.x
1414
----
1515

16+
* v2.4.0 [:pr:`174`, :pr:`175`, :pr:`178`, :pr:`179`, :pr:`180`]
17+
18+
* Fixed an issue where quotes would crash when inline elements were provided as input
19+
* Added the alerts feature as a new template
20+
* Added the checklist feature to templates
21+
* Deprecated the :code:`checked` parameter in :code:`MDList`
22+
* Added a handful of convenience methods to the document API to expose the new templates
23+
* Dropped support for Python 3.9 due to deprecation
24+
* Added supported for Python 3.14
25+
* Added new templates to docs
26+
* Updated a variety of developmental dependencies
27+
1628
* v2.4.0b1 [:pr:`171`]
1729

1830
* Upgraded Poetry file format to 2.x
19-
* Added `breakline()` and `unbreakline()` methods
31+
* Added :code:`breakline()` and :code:`unbreakline()` methods
2032
* Fixed issue where inserting a link in a paragraph would strip styles
2133

2234
* v2.3.0 [:pr:`168`]

poetry.lock

Lines changed: 469 additions & 436 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
name = "SnakeMD"
33
description = "A markdown generation library for Python."
44
license = "MIT"
5-
version = "2.4.0b1"
5+
version = "2.4.0"
66
dynamic = ["classifiers"]
77
readme = "README.md"
88
authors = [{name = "Jeremy Grifski", email = "jeremy.grifski@therenegadecoder.com"}]
9-
requires-python = '>=3.9,<4.0'
9+
requires-python = '>=3.10,<4.0'
1010
dependencies = []
1111

1212
[project.urls]
@@ -21,35 +21,35 @@ Changelog = "https://www.snakemd.io/en/latest/version-history/"
2121
classifiers=[
2222
"Development Status :: 5 - Production/Stable",
2323
"License :: OSI Approved :: MIT License",
24-
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
2726
"Programming Language :: Python :: 3.12",
2827
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2929
"Operating System :: OS Independent",
3030
"Topic :: Documentation :: Sphinx",
3131
]
3232
requires-poetry = '>=2.0,<3.0'
3333

3434
[tool.poetry.group.test.dependencies]
35-
coverage = "^7.2"
36-
markdown = "^3.4"
37-
pytest = "^7.3"
35+
coverage = "^7.10"
36+
markdown = "^3.9"
37+
pytest = "^8.4"
3838

3939
[tool.poetry.group.docs.dependencies]
40-
sphinx = "^6.2"
41-
sphinx-issues = "^3.0"
42-
sphinx_rtd_theme = "^1.2"
40+
sphinx = "^7.4"
41+
sphinx-issues = "^5.0"
42+
sphinx_rtd_theme = "^3.0"
4343

4444
[tool.poetry.group.analysis.dependencies]
45-
black = "^23.3"
45+
black = "^25.9"
4646
isort = "^5.12"
4747
pydocstringformatter = "^v0.7"
4848
pylint = "^3.3"
4949

5050
# Pytest settings
5151
[tool.pytest.ini_options]
52-
minversion = "7.3"
52+
minversion = "8.4"
5353
testpaths = [
5454
"tests"
5555
]
@@ -71,7 +71,7 @@ fail_under = 95
7171
# Black formatting settings
7272
[tool.black]
7373
line-length = 88
74-
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
74+
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
7575

7676
# Pylint settings
7777
[tool.pylint.format]

snakemd/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __str__(self):
187187
output = []
188188
i = 1
189189
for item in self._items:
190-
if isinstance(item, (Checklist, MDList)):
190+
if isinstance(item, Checklist | MDList):
191191
item._space = self._space + " " * 2
192192
output.append(str(item))
193193
else:

0 commit comments

Comments
 (0)