Changelog¶
0.40.0¶
Fix support for Python 3.14 (MooseTheRebel).
Fix bug opening
redirects.json.
0.39.0¶
Fix
to_htmlfilter.
0.38.7¶
Better handling of including partials with custom sites.
Add support for
CSRF_TRUSTED_ORIGINS.Support
django-unicorncomponents in a custom site.
0.38.6¶
Use a custom staticfiles finder so
collectstaticwill copy static files for each site.
0.38.5¶
Better support for multiple sites.
0.38.4¶
Do not add the base directory when running collectstatic.
0.38.3¶
Re-publish.
0.38.2¶
Default to the first site if the request header is unknown.
0.38.1¶
Clean up code.
0.38.0¶
Better support for multiple domains and custom sites.
Add
coltrane.tomlsettings file.
0.37.0¶
Automatically enable
dj-anglesif the library is installed.Experimental support for multiple domains.
Breaking changes
Drop support for Python 3.8.
Remove loading deprecated
data.jsonfile.
0.36.0¶
Handle string, date, epoch in
publish_dateand convert them to timezone-aware datetime.
0.35.4¶
Prevent missing
compresstemplatetag from raising an error when calling thecompressmanagement command.
0.35.3¶
Set
COMPRESS_OFFLINE=Truewhen running thecompressmanagement command.
0.35.2¶
Add all environment variables to
settings.ENV, not just the variables from.env.
0.35.1¶
Update default
Dockerfileto fix some deployment problems.
0.35.0¶
Include variables from
.envfile insettings.ENV.Rewrite all docs to remove any perceived dependency on
poetry.Create nested folder structure for new sites.
0.34.0¶
Add
coltranecontext template variable to expose thecoltranesettings.Add support for
django-compressor.Add support for redirects.
0.33.0¶
Bump
rich-clickdependency and slightly better command aliases support.
0.32.1¶
Parse JSON5 data as UTF-8.
0.32.0¶
0.31.0¶
Create example
Dockerfileandgunicorn.conf.pyfiles for easier deployments ofcoltraneapps.Add the ability to use JSON5 for data files.
Breaking changes
Remove loading
data.json. All data should be in JSON files in thedatadirectory.The default markdown renderer is now
mistuneinstead ofmarkdown2. The next version ofcoltranewill remove the option to usemarkdown2.
0.30.0¶
Add
COLTRANE_IS_SECUREenv variable.Add
django.middleware.gzip.GZipMiddleware,django.middleware.http.ConditionalGetMiddleware,django.middleware.csrf.CsrfViewMiddlewaremiddlewares.
0.29.0¶
django-unicornintegration.Fix: Passing
INSTALLED_APPSintoinitnow does not override the default apps.
0.28.0¶
Add
DISABLE_WILDCARD_TEMPLATESsetting.Add
data,slug,template, andnowto direct HTML template for as much parity tomarkdowncontent as possible.
0.27.0¶
Support directory wildcards.
Add
pathstemplate tag.
0.26.0¶
Ability to configure cache.
Allow content or data directory to be specified #48.
Fix: Handle invalid JSON data #48.
0.25.0¶
If a markdown file with a slug cannot be found, look for a template with the same slug. Special case for
*.htmlwhich can be a fall-back option to render for any slug.Add
raise_404template tag.Add
last_pathtemplate tag.
0.24.0¶
Support Django template tags with the
mistunemarkdown renderer.
0.23.1¶
Include extra files when building the static site.
0.23.0¶
Add
EXTRA_FILE_NAMESsetting to support serving static files likerobots.txt.
0.22.0¶
Add support for rendering markdown with
mistune. See MARKDOWN_RENDERED for how to enable.mistunewill be the default renderer after 0.22.0 because it is 1) faster rendering markdown thanmarkdown2, 2) enables new functionality likeabbr, 3) fixed a bug in the generation of the tables of contents HTML, and 4) has a plugin architecture to add new features.Improve table of contents rendering for
mistune.
0.21.0¶
Add
order_bytodirectory_contentstemplatetag.Fix
TOCoutputting ‘None’ when it should beNone.
0.20.0¶
0.19.0¶
Update project name to
coltrane.
0.18.3¶
Fix bug where templatetags could not be loaded when the base directory was “.”.
0.18.2¶
Add
requestto the template context when building static sites.
0.18.1¶
Fix bug where static site path was incorrect.
0.18.0¶
Add
tocto the template context which provides a table of contents for the markdown.
0.17.0¶
Fix bug with relative URLs when generating
sitemap.xmlAutomatic generation of
rss.xmlfile
0.16.1¶
Create
COLTRANE_SITEsetting in.envfile duringcreatecommand
0.16.0¶
Output an error if rendering fails during
recordcommandinclude_mdtemplate tagparentfilterServing of
/sitemap.xmlfor standaloneAutomatic creation of
sitemap.xmlduringrecordcommand
Breaking changes
COLTRANE_SITEis required in .env file
0.15.1¶
Include all frontmatter metadata in
directory_contentstemplate tag outputParse
datefrontmatter intodatetimeParse
draftfrontmatter intoboolean
0.15.0¶
directory_contentstemplate tagAdd
django-fastdevfor more immediate feedback when an invalid template variable is usedShow error message if a markdown file cannot be output to HTML
Fix bug where
index.mdfiles in a sub-directory were not output correctly
0.14.0¶
0.13.1¶
Add
--threadsoption torecordcommand
0.13.0¶
Multithread
recordcommandBetter console output for
recordcommand
0.12.0¶
Fix elapsed time for
recordcommandMore performant collection of markdown content files
Don’t include markdown or data when collecting static files while running
record
0.11.0¶
Add
--forceoption tocreatecommandAutomatically refresh the browser when markdown content or data is saved
0.10.0¶
Fix generating root
index.md
0.9.0¶
Add support for static files
Add
watchmansupportAdd
whitenoisefor static handlingAdd
--forceoption torecordcommand
0.8.0¶
Read
INTERNAL_IPSfrom .env fileAdd
nowto template variablesInclude found template tags in built-ins
Include
humanizetemplate tags in built-ins
0.7.0¶
Support nested directories for content and data
Update default markdown extras
0.6.0¶
Add support for markdown frontmatter
Support custom templates specified in markdown frontmatter
0.5.0¶
Add
buildmaangement commandStore build manifest so that HTML doesn’t re-render if possible
Loosen dependencies
0.4.0¶
Unit tests, coverage, and fixes for mypy
0.3.0¶
Bug fixes
0.2.0¶
Bug fixes
0.1.0¶
Basic Django app which renders markdown files at a URL
Basic script