Fix giturl parsing
Fix off-by-one error in parsing doc/{docType}/source, we need index[2]
for source.
Change-Id: I76c36fb3e1cf4d0a46e37822c7350af677ab094c
This commit is contained in:
@@ -68,7 +68,7 @@ def _get_other_versions(app):
|
||||
def _get_doc_path(app):
|
||||
# Handle 'doc/{docType}/source' paths
|
||||
doc_parts = os.path.abspath(app.srcdir).split(os.sep)[-3:]
|
||||
if doc_parts[0] == 'doc' and doc_parts[1] == 'source':
|
||||
if doc_parts[0] == 'doc' and doc_parts[2] == 'source':
|
||||
return '/'.join(doc_parts)
|
||||
|
||||
# Handle '{docType}/source' paths
|
||||
|
||||
Reference in New Issue
Block a user