You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2017/08/18 21:12:34 UTC

[3/3] tinkerpop git commit: Made callouts in docs prettier and copy+paste friendly.

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/TINKERPOP-1748
Commit: 354d59ed58e89bca9af12f60d978c695d30f498a
Parents: 43f5afa
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Wed Aug 16 11:06:55 2017 -0700
Committer: Daniel Kuppitz <da...@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