Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccb4c95

Browse files
committed
Fix broken spec links being generated for extension objects and functions (fixes #43)
1 parent 75d85ca commit ccb4c95

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

daux.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 875d9a377b7904c47583bbaa070b6e35c5c20638 Mon Sep 17 00:00:00 2001
1+
From 40008c88788c97fd4b81e1117a5f029d9a457acd Mon Sep 17 00:00:00 2001
22
From: Alexander Overvoorde <[email protected]>
3-
Date: Tue, 28 Mar 2017 11:21:50 +0200
3+
Date: Mon, 17 Apr 2017 20:02:04 +0200
44
Subject: [PATCH] Adjust theme for Vulkan tutorial
55

66
---
@@ -25,7 +25,7 @@ Subject: [PATCH] Adjust theme for Vulkan tutorial
2525

2626
diff --git a/daux/VulkanLinkProcessor.php b/daux/VulkanLinkProcessor.php
2727
new file mode 100644
28-
index 0000000..82b908c
28+
index 0000000..4e4d456
2929
--- /dev/null
3030
+++ b/daux/VulkanLinkProcessor.php
3131
@@ -0,0 +1,69 @@
@@ -72,7 +72,7 @@ index 0000000..82b908c
7272
+ throw new \InvalidArgumentException('Incompatible inline type: ' . get_class($inline));
7373
+ }
7474
+
75-
+ if (preg_match("/^[vV]k[A-Z][A-Za-z0-9_]+$/", $inline->getContent())) {
75+
+ if (preg_match("/^[vV]k[A-Z][A-Za-z0-9_]+$/", $inline->getContent()) && strpos($inline->getContent(), "KHR") === false && strpos($inline->getContent(), "EXT") === false) {
7676
+ $attrs = [];
7777
+ $attrs['href'] = "https://www.khronos.org/registry/vulkan/specs/1.0/man/html/" . $inline->getContent() . ".html";
7878
+

0 commit comments

Comments
 (0)