Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
doclets: Allow overloaded functions to not conflict
Browse files Browse the repository at this point in the history
Fixes #110.
  • Loading branch information
Tavian Barnes committed Oct 1, 2019
1 parent 2158457 commit ddc8bcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphinx_js/doclets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def gather_doclets(app):
doclet_full_path(d, root_for_relative_paths),
d)
except PathTaken as conflict:
conflicts.append(conflict.segments)
# Allow overloaded functions, but not other duplicates
if d['kind'] != 'function':
conflicts.append(conflict.segments)
if conflicts:
raise PathsTaken(conflicts)

Expand Down

0 comments on commit ddc8bcb

Please sign in to comment.