mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Merge pull request #1373 from microsoft/nimullen/restrictlinking
Restrict linking to only the 3-17 specification.
This commit is contained in:
commit
d4a43c77ff
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,6 @@
|
|||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
<script src="{{ site.baseurl }}/js/page.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var linkableTypes = {
|
||||
{% for linkableGroup in site.data.linkableTypes %}
|
||||
|
|
@ -29,6 +28,11 @@
|
|||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
if (window.location.pathname.indexOf("3-17") === -1) {
|
||||
// Currently we don't support linking on other versions of the document.
|
||||
return;
|
||||
}
|
||||
|
||||
function tryGetAssociatedLink(name) {
|
||||
var link = linkableTypes[name];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue