Skip to content

Commit de4a929

Browse files
authored
Preparing the Build for the First Beta of v2.2 (#149)
* Setting up 2.2.0b1 * Added version history for beta * Changed the phrasing in the docs * Added further docs about extending the template library * Rephrased redundant grammar * Added all pull request links to version history * Update __init__.py
1 parent d264f88 commit de4a929

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

docs/docs/template-api.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ Templates
2626

2727
The template library is humble but growing. Feel free
2828
to share your ideas for templates on the project page
29-
or `Discord <https://discord.gg/Jhmtj7Z>`_. Otherwise,
29+
or `Discord <https://discord.gg/Jhmtj7Z>`_. If you'd
30+
like to help create templates, the interface is
31+
available for subclassing. Your templates can either
32+
be included directly in snakemd, or you're free
33+
to create your own template library by importing
34+
snakemd. In the former case, the template should
35+
make use of the Python standard library only and not
36+
make use of any external dependencies. In the latter
37+
case, that restriction does not apply. With that said,
3038
the existing templates can be found below.
3139

3240
TableOfContents

docs/version-history.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ as follows:
1313
v2.x
1414
----
1515

16+
* v2.2.0b1 [:pr:`#140`, :pr:`#142`, :pr:`#143`, :pr:`#144`, :pr:`#145`, :pr:`#146`, :pr:`#149`]
17+
18+
* Expanded the Element requirements to include :code:`__repr__()` for developer friendly strings
19+
* Reworked logging system to take advantage of lazy loading and new :code:`__repr__()` methods
20+
* Expanded testing to verify the :code:`__repr__()` strings can be used as Python code
21+
* Added a handful of getter methods to dissuade folks from using protected members of classes
22+
* Fixed jQuery issues in documentation
23+
* Incorporated linting (specifically pylint) in development workflow
24+
* Updated changelog string for consistency on PyPI
25+
* Introduced concept of lazy loading for templates to allow for processing of document contents at render time
26+
* Broke existing behavior of a handful of utilities:
27+
28+
* Changed the :code:`dir` parameter to :code:`directory` for :code:`dump()` method of :code:`Document` to eliminate shadowing of built-in :code:`dir`
29+
* Removed :code:`doc` parameter of :code:`TableOfContents` constructor in preference of new lazy loading system of templates
30+
1631
* v2.1.0 [:pr:`136`]
1732

1833
* Migrated build system from setup.py to poetry

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[tool.poetry]
33
name = "SnakeMD"
44
description = "A markdown generation library for Python."
5-
version = "2.1.0"
5+
version = "2.2.0b1"
66
license = "MIT"
77

88
authors = [

snakemd/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
The SnakeMD module is the root module of the snakemd
33
system. It imports all classes to be used directly
44
through snakemd, so users don't need to know
5-
the underlying directory structure. Likewise,
5+
the underlying directory structure. Likewise,
66
directory structure can be changed in future iterations
7-
of the project without affecting users.
7+
of the project without affecting users.
88
"""
99

1010
from .document import *

snakemd/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def load(self, elements: list[Element]) -> None:
5252

5353
class TableOfContents(Template):
5454
"""
55-
A Table of Contents is an block containing an ordered list
55+
A Table of Contents is an element containing an ordered list
5656
of all the `<h2>` headings in the document by default. A range can be
5757
specified to customize which headings (e.g., `<h3>`) are included in
5858
the table of contents. This element can be placed anywhere in the document.

0 commit comments

Comments
 (0)