Skip to content

Commit

Permalink
Verison 1.3.0 has been tested and confirmed working after two bugs we…
Browse files Browse the repository at this point in the history
…re spotted.
  • Loading branch information
LewisFletcher committed Jan 25, 2024
1 parent 94bbefa commit d380ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion easy_docs/templatetags/easy_docs_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.utils.safestring import mark_safe
from django.templatetags.static import static
import markdown as md
from django.template.loader import render_to_string

register = template.Library()

Expand All @@ -24,4 +25,5 @@ def markdown_format(text):

@register.simple_tag(takes_context=True)
def help_button(context):
return template.loader.render_to_string('documentation.html', context)
context_dict = {k: v for k, v in context.flatten().items()}
return render_to_string('documentation.html', context_dict)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='django-easy-docs',
version='1.2.1',
version='1.3.0',
packages=find_packages(exclude=['*.migrations', '*.migrations.*', 'migrations.*', 'migrations', 'docs', 'docs.*']),
url='https://github.com/LewisFletcher/django-easy-docs',
author='Lewis Fletcher',
Expand Down

0 comments on commit d380ca3

Please sign in to comment.