Fix template path issue on windows, fixes #37

This commit is contained in:
Anthony Johnson 2015-10-27 01:30:58 -07:00
parent 0cfa8bbcbb
commit 5fa272ca4b
2 changed files with 6 additions and 2 deletions

View File

@ -355,6 +355,10 @@ class DotNetPythonMapper(PythonMapperBase):
'''Same as above, return the truncated name instead'''
return self.ref_name.split('.')[-1]
@property
def abs_path(self):
return os.path.join(os.path.sep, 'autoapi', self.pathname, 'index')
@staticmethod
def transform_doc_comments(text):
"""

View File

@ -15,7 +15,7 @@
{% for item in obj.children|sort %}
{% if item.type != 'namespace' %}
/autoapi/{{ item.pathname }}/index
{{ item.abs_path }}
{% endif %}
{% endfor %}
@ -30,7 +30,7 @@
{% for item in obj.references|sort %}
{% if item.type != 'namespace' %}
/autoapi/{{ item.pathname }}/index
{{ item.abs_path }}
{% endif %}
{% endfor %}