Skip to content

Commit b8e47ae

Browse files
Update to version 0.0.2
This fixes a problem with links in .rst files and improves the documentation. Signed-off-by: Kevin Putnam <[email protected]>
1 parent 2bbc140 commit b8e47ae

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This extension fixes or improves how Sphinx handles links related to Markdown
44
when it generates the HTML site. It assumes you are using the `recommonmark`
5-
extension.
5+
extension. It's a good idea to use `sphinx_markdown_tables` as well.
66

77
**Contents**
88

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="sphinx-md-kevinputnam",
8-
version="0.0.1",
8+
version="0.0.2",
99
author="Kevin Putnam",
1010
author_email="[email protected]",
1111
description="Sphinx extension to use with Recommonmark to fix links to rst from md, links to md from rst, and links to embedded files and dirs.",

sphinx_md/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def fixLocalMDAnchors(app, doctree, docname):
9494
githubDirURL = app.config.sphinx_md_githubDirURL
9595
for node in doctree.traverse(nodes.reference):
9696
uri = node.get('refuri')
97+
if not uri:
98+
continue
9799
filePath = normalizePath(docname,uri)
98100
if isfile(filePath):
99101
# Only do this if the file exists.

0 commit comments

Comments
 (0)