-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
These occur when `root_for_relative_js_paths` is set inward of the JS code.
- Loading branch information
Showing
6 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* Bar function | ||
*/ | ||
function bar(node) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# -*- coding: utf-8 -*- | ||
extensions = [ | ||
'sphinx_js' | ||
] | ||
|
||
# Minimal stuff needed for Sphinx to work: | ||
source_suffix = '.rst' | ||
master_doc = 'index' | ||
author = u'Erik Rose' | ||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||
root_for_relative_js_paths = './' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. js:autofunction:: bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from tests.testing import SphinxBuildTestCase | ||
|
||
|
||
class Tests(SphinxBuildTestCase): | ||
def test_dot_dot(self): | ||
"""Make sure the build doesn't explode with a parse error on | ||
the "../more.bar" path that is constructed when the JSDoc doclets are | ||
imbibed. | ||
Also make sure it render correctly afterward. | ||
""" | ||
self._file_contents_eq( | ||
'index', | ||
'bar(node)\n\n' | ||
' Bar function\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters