tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkupp...@apache.org
Subject [1/2] tinkerpop git commit: Made callouts in docs prettier and copy+paste friendly.
Date Fri, 18 Aug 2017 21:13:41 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/master 1229ddc71 -> c04f191ca


Made callouts in docs prettier and copy+paste friendly.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/354d59ed
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/354d59ed
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/354d59ed

Branch: refs/heads/master
Commit: 354d59ed58e89bca9af12f60d978c695d30f498a
Parents: 43f5afa
Author: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Authored: Wed Aug 16 11:06:55 2017 -0700
Committer: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Committed: Fri Aug 18 14:12:03 2017 -0700

----------------------------------------------------------------------
 docs/postprocessor/processor.awk | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/354d59ed/docs/postprocessor/processor.awk
----------------------------------------------------------------------
diff --git a/docs/postprocessor/processor.awk b/docs/postprocessor/processor.awk
index 9563b05..e640273 100644
--- a/docs/postprocessor/processor.awk
+++ b/docs/postprocessor/processor.awk
@@ -19,13 +19,33 @@
 
 BEGIN {
   firstMatch=1
+  styled=0
 }
 
 /Licensed to the Apache Software Foundation/ {
   isHeader=1
 }
 
-firstMatch || !isHeader
+/<\/style>/ {
+  if (!styled) {
+    print ".invisible {position: absolute; left: 9999px}"
+    styled=1
+  }
+}
+
+!/<span class="comment">/ {
+  if (firstMatch || !isHeader) {
+    print gensub(/(<b class="conum">)\(([0-9]+)\)(<\/b>)/,
+                 "<span class=\"invisible\">//</span>\\1\\2\\3", "g")
+  }
+}
+
+/<span class="comment">/ {
+  if (firstMatch || !isHeader) {
+    print gensub(/<span class="comment">\/\/<\/span>(<b class="conum">)\(([0-9]+)\)(<\/b>)/,
+                 "<span class=\"invisible\">//</span>\\1\\2\\3<span class=\"invisible\">\\\\<\/span>",
"g")
+  }
+}
 
 /under the License\./ {
   firstMatch=0


Mime
View raw message