You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: 'module' object has no attribute 'filename_to_title' #21
mkdocscombine -o mydocs.pd
Traceback (most recent call last):
File "/usr/local/bin/mkdocscombine", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/cli/mkdocscombine.py", line 160, in main
mkdocs_combiner.combine()
File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/mkdocs_combiner.py", line 169, in combine
pages = self.flatten_pages(self.config[u'nav'])
File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/mkdocs_combiner.py", line 150, in flatten_pages
level + 1)
File "/usr/local/lib/python2.7/site-packages/mkdocs_combine/mkdocs_combiner.py", line 120, in flatten_pages
u'title': u'%s {: .page-title}' % mkdocs.utils.filename_to_title(page),
AttributeError: 'module' object has no attribute 'filename_to_title'
MkDocs has undergone major changes since I've worked on this tool. My work has been mostly forking the initial mkdocs-pandoc project, subsequent merging of various commits from different other forks, and some minor changes that I needed.
But with the current MkDocs, I believe that the functionality of mkdocs-combine should be completely rewritten in form of an MkDocs plugin. This would have a number of advantages, including the fact that an MkDocs plugin world be more resilient to changes in MkDocs than this current tool is.
I have no plans to update mkdocs-combine but if people contribute pull requests, I'll merge them.
Activity
Ir1d commentedon Nov 3, 2018
i think you should try python3
darkleaf commentedon Nov 3, 2018
I move project to sphinx =)
JDDoesDev commentedon Nov 24, 2018
I'm running into the same issue. It looks like there was a change in Mkdocs that removed this function. mkdocs/mkdocs@5e59af5#diff-730512090b1f15175b2e4e521d35b776
Will this be fixed in a near release?
twardoch commentedon Nov 25, 2018
MkDocs has undergone major changes since I've worked on this tool. My work has been mostly forking the initial mkdocs-pandoc project, subsequent merging of various commits from different other forks, and some minor changes that I needed.
But with the current MkDocs, I believe that the functionality of mkdocs-combine should be completely rewritten in form of an MkDocs plugin. This would have a number of advantages, including the fact that an MkDocs plugin world be more resilient to changes in MkDocs than this current tool is.
I have no plans to update mkdocs-combine but if people contribute pull requests, I'll merge them.