mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#474: Fix javascript domain parsing of object names.
This commit is contained in:
parent
8c0c728d1b
commit
954e8d0220
4
CHANGES
4
CHANGES
@ -1,7 +1,9 @@
|
||||
Release 1.0.1 (in development)
|
||||
==============================
|
||||
|
||||
* Fix building with SingleHTMLBuilder when there is no toctree.
|
||||
* #473: Fix a bug in parsing JavaScript object names.
|
||||
|
||||
* #474: Fix building with SingleHTMLBuilder when there is no toctree.
|
||||
|
||||
* Fix display names for objects linked to by intersphinx with
|
||||
explicit targets.
|
||||
|
@ -31,6 +31,7 @@ class JSObject(ObjectDescription):
|
||||
display_prefix = None
|
||||
|
||||
def handle_signature(self, sig, signode):
|
||||
import pdb; pdb.set_trace()
|
||||
sig = sig.strip()
|
||||
if '(' in sig and sig[-1:] == ')':
|
||||
prefix, arglist = sig.split('(', 1)
|
||||
@ -56,7 +57,7 @@ class JSObject(ObjectDescription):
|
||||
else:
|
||||
# just a function or constructor
|
||||
objectname = ''
|
||||
fullname = ''
|
||||
fullname = name
|
||||
|
||||
signode['object'] = objectname
|
||||
signode['fullname'] = fullname
|
||||
|
Loading…
Reference in New Issue
Block a user