mirror of
https://github.com/vale981/ablog
synced 2025-03-05 17:21: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
|
printf "demo\nABlog\nABlog Team\nhttp://ablog.readthedocs.org" | ablog start
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sudo pip install -U --no-deps --force-reinstall .
|
pip install -U --no-deps --force-reinstall .
|
||||||
|
|
||||||
rebuild:
|
rebuild:
|
||||||
cd docs; watchmedo shell-command --patterns='*.rst' --command='ablog build' --recursive
|
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,
|
generate_archive_pages, generate_atom_feeds,
|
||||||
missing_reference)
|
missing_reference)
|
||||||
|
|
||||||
__version__ = '0.7.2'
|
__version__ = '0.7.3'
|
||||||
|
|
||||||
|
|
||||||
def anchor(post):
|
def anchor(post):
|
||||||
|
|
|
@ -5,7 +5,10 @@ import os
|
||||||
import sys
|
import sys
|
||||||
from string import Formatter
|
from string import Formatter
|
||||||
from datetime import datetime
|
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 docutils import nodes
|
||||||
from sphinx.locale import _
|
from sphinx.locale import _
|
||||||
|
@ -264,10 +267,17 @@ def process_posts(app, doctree):
|
||||||
date = node['date']
|
date = node['date']
|
||||||
if date:
|
if date:
|
||||||
try:
|
try:
|
||||||
#date = datetime.strptime(date, post_date_format)
|
date = datetime.strptime(date, post_date_format)
|
||||||
date = date_parser(date)
|
|
||||||
except ValueError:
|
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:
|
else:
|
||||||
date = None
|
date = None
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,8 @@ ABlog v0.7.1 released
|
||||||
:category: Release
|
:category: Release
|
||||||
:location: SF
|
: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
|
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
|
ABlog v0.7.2 is released to prevent potential issues with Disqus thread URLs
|
||||||
by requiring :confval:`disqus_shortname` and :confval:`blog_baseurl`
|
by requiring :confval:`disqus_shortname` and :confval:`blog_baseurl`
|
||||||
to be specified together for Disqus integration.
|
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