Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #76 from docascode/yitian/source
Browse files Browse the repository at this point in the history
Do not generate source field if the source folder is not a git repo
  • Loading branch information
killa1218 committed Aug 27, 2018
2 parents 0d9d9c8 + 1d78f59 commit 5d29113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docfx_yaml/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ def _update_friendly_package_name(path):
'langs': ['python'],
}

if not datam['source']['remote']['repo']:
del(datam['source'])

# Only add summary to parts of the code that we don't get it from the monkeypatch
if _type == MODULE:
lines = _resolve_reference_in_module_summary(lines)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='sphinx-docfx-yaml',
version='1.2.40',
version='1.2.41',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='https://github.com/ericholscher/sphinx-docfx-yaml',
Expand Down

0 comments on commit 5d29113

Please sign in to comment.