Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix table styles.

  • Loading branch information...
commit 0d297c4202d14bf2f2ea30b7cd6779e435495b4d 1 parent 1361588
Coda Hale codahale authored
2  docs/source/_themes/yammerdoc/less/tables.less
View
@@ -22,7 +22,7 @@ table {
// Cells
th,
td {
- padding: 8px;
+ padding: 16px;
line-height: @baseLineHeight;
text-align: left;
border-top: 1px solid #ddd;
6 docs/source/_themes/yammerdoc/less/yammerdoc.less
View
@@ -223,3 +223,9 @@ h4 tt {
.hero-unit li a:after {
content: " »";
}
+
+table.docutils {
+ border: 1px solid #DDD;
+ .table();
+ .table-striped();
+}
8 docs/source/_themes/yammerdoc/static/yammerdoc.css
View
@@ -103,7 +103,7 @@ cite{font-style:normal;}
pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12px;line-height:18px;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;white-space:pre;white-space:pre-wrap;word-break:break-all;}pre.prettyprint{margin-bottom:18px;}
pre code{padding:0;background-color:transparent;}
table{max-width:100%;border-collapse:collapse;border-spacing:0;}
-.table{width:100%;margin-bottom:18px;}.table th,.table td{padding:8px;line-height:18px;text-align:left;border-top:1px solid #ddd;}
+.table{width:100%;margin-bottom:18px;}.table th,.table td{padding:16px;line-height:18px;text-align:left;border-top:1px solid #ddd;}
.table th{font-weight:bold;vertical-align:bottom;}
.table td{vertical-align:top;}
.table thead:first-child tr th,.table thead:first-child tr td{border-top:0;}
@@ -297,3 +297,9 @@ h4 tt{background-color:transparent;font-size:14pt !important;}
.hero-unit li a:active{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);background-color:#e6e6e6;background-color:#d9d9d9 \9;color:rgba(0, 0, 0, 0.5);outline:0;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);color:#ffffff;background-color:#5bb75b;background-image:-moz-linear-gradient(top, #62c462, #51a351);background-image:-ms-linear-gradient(top, #62c462, #51a351);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));background-image:-webkit-linear-gradient(top, #62c462, #51a351);background-image:-o-linear-gradient(top, #62c462, #51a351);background-image:linear-gradient(top, #62c462, #51a351);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);border-color:#51a351 #51a351 #387038;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);}.hero-unit li a:active:hover,.hero-unit li a:active:active,.hero-unit li a:active.active,.hero-unit li a:active.disabled,.hero-unit li a:active[disabled]{background-color:#51a351;}
.hero-unit li a:active:active,.hero-unit li a:active.active{background-color:#408140 \9;}
.hero-unit li a:after{content:" »";}
+table.docutils{border:1px solid #DDD;width:100%;margin-bottom:18px;}table.docutils th,table.docutils td{padding:16px;line-height:18px;text-align:left;border-top:1px solid #ddd;}
+table.docutils th{font-weight:bold;vertical-align:bottom;}
+table.docutils td{vertical-align:top;}
+table.docutils thead:first-child tr th,table.docutils thead:first-child tr td{border-top:0;}
+table.docutils tbody+tbody{border-top:2px solid #ddd;}
+table.docutils tbody tr:nth-child(odd) td,table.docutils tbody tr:nth-child(odd) th{background-color:#f9f9f9;}
78 docs/source/manual/ehcache.rst
View
@@ -19,43 +19,47 @@ Instrumenting Ehcache
Instrumenting an ``Ehcache`` instance creates gauges for all of the Ehcache-provided statistics:
-.. todo:: Fix table styles.
-
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``hits`` | The number of times a requested item was found in the cache. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``in-memory-hits`` | Number of times a requested item was found in the memory store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``off-heap-hits`` | Number of times a requested item was found in the off-heap store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``on-disk-hits`` | Number of times a requested item was found in the disk store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``misses`` | Number of times a requested item was not found in the cache. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``in-memory-misses`` | Number of times a requested item was not found in the memory store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``off-heap-misses`` | Number of times a requested item was not found in the off-heap store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``on-disk-misses`` | Number of times a requested item was not found in the disk store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``objects`` | Number of elements stored in the cache. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``in-memory-objects`` | Number of objects in the memory store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``off-heap-objects`` | Number of objects in the off-heap store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``on-disk-objects`` | Number of objects in the disk store. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``mean-get-time`` | The average get time. Because ehcache supports JDK1.4.2, each get time uses ``System.currentTimeMillis()``, rather than nanoseconds. The accuracy is thus limited. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``mean-search-time`` | The average execution time (in milliseconds) within the last sample period. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``eviction-count`` | The number of cache evictions, since the cache was created, or statistics were cleared. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``searches-per-second`` | The number of search executions that have completed in the last second. |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| ``accuracy`` | A human readable description of the accuracy setting. One of "None", "Best Effort" or "Guaranteed". |
-+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
++---------------------------+----------------------------------------------------------------------+
+| ``hits`` | The number of times a requested item was found in the cache. |
++---------------------------+----------------------------------------------------------------------+
+| ``in-memory-hits`` | Number of times a requested item was found in the memory store. |
++---------------------------+----------------------------------------------------------------------+
+| ``off-heap-hits`` | Number of times a requested item was found in the off-heap store. |
++---------------------------+----------------------------------------------------------------------+
+| ``on-disk-hits`` | Number of times a requested item was found in the disk store. |
++---------------------------+----------------------------------------------------------------------+
+| ``misses`` | Number of times a requested item was not found in the cache. |
++---------------------------+----------------------------------------------------------------------+
+| ``in-memory-misses`` | Number of times a requested item was not found in the memory store. |
++---------------------------+----------------------------------------------------------------------+
+| ``off-heap-misses`` | Number of times a requested item was not found in the off-heap store.|
++---------------------------+----------------------------------------------------------------------+
+| ``on-disk-misses`` | Number of times a requested item was not found in the disk store. |
++---------------------------+----------------------------------------------------------------------+
+| ``objects`` | Number of elements stored in the cache. |
++---------------------------+----------------------------------------------------------------------+
+| ``in-memory-objects`` | Number of objects in the memory store. |
++---------------------------+----------------------------------------------------------------------+
+| ``off-heap-objects`` | Number of objects in the off-heap store. |
++---------------------------+----------------------------------------------------------------------+
+| ``on-disk-objects`` | Number of objects in the disk store. |
++---------------------------+----------------------------------------------------------------------+
+| ``mean-get-time`` | The average get time. Because ehcache supports JDK1.4.2, each get |
+| | time uses ``System.currentTimeMillis()``, rather than nanoseconds. |
+| | The accuracy is thus limited. |
++---------------------------+----------------------------------------------------------------------+
+| ``mean-search-time`` | The average execution time (in milliseconds) within the last sample |
+| | period. |
++---------------------------+----------------------------------------------------------------------+
+| ``eviction-count`` | The number of cache evictions, since the cache was created, or |
+| | statistics were cleared. |
++---------------------------+----------------------------------------------------------------------+
+| ``searches-per-second`` | The number of search executions that have completed in the last |
+| | second. |
++---------------------------+----------------------------------------------------------------------+
+| ``accuracy`` | A human readable description of the accuracy setting. One of "None", |
+| | "Best Effort" or "Guaranteed". |
++---------------------------+----------------------------------------------------------------------+
It also adds full timers for the cache's ``get`` and ``put`` methods.
Please sign in to comment.
Something went wrong with that request. Please try again.