mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Updates for 0.7.3 release.
This commit is contained in:
parent
277e105387
commit
2d4f79bfea
4 changed files with 36 additions and 9 deletions
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ demo:
|
|||
printf "demo\nABlog\nABlog Team\nhttp://ablog.readthedocs.org" | ablog start
|
||||
|
||||
install:
|
||||
sudo pip install -U --no-deps --force-reinstall .
|
||||
pip install -U --no-deps --force-reinstall .
|
||||
|
||||
rebuild:
|
||||
cd docs; watchmedo shell-command --patterns='*.rst' --command='ablog build' --recursive
|
||||
|
|
|
@ -8,7 +8,7 @@ from .post import (PostDirective, PostListDirective, UpdateDirective,
|
|||
generate_archive_pages, generate_atom_feeds,
|
||||
missing_reference)
|
||||
|
||||
__version__ = '0.7.2'
|
||||
__version__ = '0.7.3'
|
||||
|
||||
|
||||
def anchor(post):
|
||||
|
|
|
@ -5,7 +5,10 @@ import os
|
|||
import sys
|
||||
from string import Formatter
|
||||
from datetime import datetime
|
||||
from dateutil.parser import parse as date_parser
|
||||
try:
|
||||
from dateutil.parser import parse as date_parser
|
||||
except ImportError:
|
||||
date_parser = None
|
||||
|
||||
from docutils import nodes
|
||||
from sphinx.locale import _
|
||||
|
@ -264,10 +267,17 @@ def process_posts(app, doctree):
|
|||
date = node['date']
|
||||
if date:
|
||||
try:
|
||||
#date = datetime.strptime(date, post_date_format)
|
||||
date = date_parser(date)
|
||||
date = datetime.strptime(date, post_date_format)
|
||||
except ValueError:
|
||||
raise ValueError('invalid post published date in: ' + docname)
|
||||
if date_parser:
|
||||
try:
|
||||
date = date_parser(date)
|
||||
print('using date parser')
|
||||
except ValueError:
|
||||
raise ValueError('invalid post date in: ' + docname)
|
||||
else:
|
||||
raise ValueError('invalid post date in: ' + docname)
|
||||
|
||||
else:
|
||||
date = None
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@ ABlog v0.7.1 released
|
|||
:category: Release
|
||||
:location: SF
|
||||
|
||||
ABlog v0.7.1 is released to fix Python 3 import issues in :command:`ablog serve` command.
|
||||
ABlog v0.7.1 is released to fix Python 3 import issues in :command:`ablog serve`
|
||||
command.
|
||||
|
||||
|
||||
ABlog v0.7.2 released
|
||||
|
@ -35,3 +36,19 @@ ABlog v0.7.2 released
|
|||
ABlog v0.7.2 is released to prevent potential issues with Disqus thread URLs
|
||||
by requiring :confval:`disqus_shortname` and :confval:`blog_baseurl`
|
||||
to be specified together for Disqus integration.
|
||||
|
||||
|
||||
ABlog v0.7.3 released
|
||||
---------------------
|
||||
|
||||
.. post:: July 4 2015
|
||||
:author: Ahmet
|
||||
:category: Release
|
||||
:location: SF
|
||||
|
||||
ABlog v0.7.3 makes use of `python-dateutil`_ for parsing post dates, so that you
|
||||
can be flexible with the format you use with dates. Thanks to `Andy Maloney`_
|
||||
for this improvement.
|
||||
|
||||
.. _python-dateutil: https://pypi.python.org/pypi/python-dateutil
|
||||
.. _Andy Maloney: https://github.com/amaloney
|
||||
|
|
Loading…
Add table
Reference in a new issue