Skip to content

Commit

Permalink
docs: handle methods starting with $/
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Sep 8, 2023
1 parent 93abed4 commit 1db2fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
def lsp_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
"""Link to sections within the lsp specification."""

anchor = text.replace("/", "_")
anchor = text.replace("$/", "").replace("/", "_")
ref = f"https://microsoft.github.io/language-server-protocol/specification.html#{anchor}"

node = nodes.reference(rawtext, text, refuri=ref, **options)
Expand Down

0 comments on commit 1db2fc4

Please sign in to comment.