mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-06 09:20:27 +00:00
Fix template path issue on windows, fixes #37
This commit is contained in:
parent
0cfa8bbcbb
commit
5fa272ca4b
@ -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):
|
||||
"""
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user