File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919
2020PYDOCTOR_HEADER = b'''\
21+ This documentation was automatically generated by
22+ <a href="https://launchpad.net/pydoctor/">pydoctor</a>'''
23+
24+ PYDOCTOR_HEADER_OLD = b'''\
2125 This documentation was automatically generated by
2226 <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a>'''
2327
@@ -34,6 +38,8 @@ class PyDoctorParser(object):
3438 def detect (self , path ):
3539 return has_file_with (
3640 path , "index.html" , PYDOCTOR_HEADER
41+ ) or has_file_with (
42+ path , "index.html" , PYDOCTOR_HEADER_OLD
3743 )
3844
3945 def parse (self ):
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Changelog
1010- Better Unicode support.
1111 The move from ``unicode_literals `` to explicit prefixes broke some things that are fixed now.
1212 (`#29 <https://github.com/hynek/doc2dash/issues/29 >`_, `#30 <https://github.com/hynek/doc2dash/issues/30 >`_)
13+ - Fix detection of `pydoctor 0.5 <http://bazaar.launchpad.net/~mwhudson/pydoctor/dev/revision/605 >`_. (`#31 <https://github.com/hynek/doc2dash/issues/31 >`_)
1314
1415
15162.0.0 (2014-08-14)
Original file line number Diff line number Diff line change 1+ from __future__ import absolute_import , division , print_function
2+
13import os
24
35import pytest
6+
47from mock import MagicMock
58
69import doc2dash
10+
711from doc2dash .parsers import DOCTYPES
812
913
You can’t perform that action at this time.
0 commit comments