You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.twig 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width" />
  6. <title>Documentation</title>
  7. <style>
  8. .help-page h1,
  9. .help-page .h1,
  10. .help-page h2,
  11. .help-page .h2,
  12. .help-page h3,
  13. .help-page .h3,
  14. #body.help-page,
  15. .help-page-table th,
  16. .help-page-table pre,
  17. .help-page-table p {
  18. font-family: "Segoe UI Light", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  19. }
  20. .help-page pre.wrapped {
  21. white-space: -moz-pre-wrap;
  22. white-space: -pre-wrap;
  23. white-space: -o-pre-wrap;
  24. white-space: pre-wrap;
  25. }
  26. .help-page .warning-message-container {
  27. margin-top: 20px;
  28. padding: 0 10px;
  29. color: #525252;
  30. background: #EFDCA9;
  31. border: 1px solid #CCCCCC;
  32. }
  33. .help-page-table {
  34. width: 100%;
  35. border-collapse: collapse;
  36. text-align: left;
  37. margin: 0 0 20px 0;
  38. border-top: 1px solid #D4D4D4;
  39. }
  40. .help-page-table th {
  41. text-align: left;
  42. font-weight: bold;
  43. border-bottom: 1px solid #D4D4D4;
  44. padding: 5px 6px 5px 6px;
  45. }
  46. .help-page-table td {
  47. border-bottom: 1px solid #D4D4D4;
  48. padding: 10px 8px 10px 8px;
  49. vertical-align: top;
  50. }
  51. .help-page-table pre,
  52. .help-page-table p {
  53. margin: 0;
  54. padding: 0;
  55. font-family: inherit;
  56. font-size: 100%;
  57. }
  58. .help-page-table tbody tr:hover td {
  59. background-color: #F3F3F3;
  60. }
  61. .help-page a:hover {
  62. background-color: transparent;
  63. }
  64. .help-page .sample-header {
  65. border: 2px solid #D4D4D4;
  66. background: #00497E;
  67. color: #FFFFFF;
  68. padding: 8px 15px;
  69. border-bottom: none;
  70. display: inline-block;
  71. margin: 10px 0 0 0;
  72. }
  73. .help-page .sample-content {
  74. display: block;
  75. border-width: 0;
  76. padding: 15px 20px;
  77. background: #FFFFFF;
  78. border: 2px solid #D4D4D4;
  79. margin: 0 0 10px 0;
  80. }
  81. .help-page .api-name {
  82. width: 40%;
  83. }
  84. .help-page .api-documentation {
  85. width: 60%;
  86. }
  87. .help-page .parameter-name {
  88. width: 20%;
  89. }
  90. .help-page .parameter-documentation {
  91. width: 40%;
  92. }
  93. .help-page .parameter-type {
  94. width: 20%;
  95. }
  96. .help-page .parameter-annotations {
  97. width: 20%;
  98. }
  99. .help-page h1,
  100. .help-page .h1 {
  101. font-size: 36px;
  102. line-height: normal;
  103. }
  104. .help-page h2,
  105. .help-page .h2 {
  106. font-size: 24px;
  107. }
  108. .help-page h3,
  109. .help-page .h3 {
  110. font-size: 20px;
  111. }
  112. #body.help-page {
  113. font-size: 14px;
  114. line-height: 143%;
  115. color: #333;
  116. }
  117. .help-page a {
  118. color: #0000EE;
  119. text-decoration: none;
  120. }
  121. </style>
  122. </head>
  123. <body>
  124. <header class="help-page">
  125. <div class="content-wrapper">
  126. <div class="float-left">
  127. <h1>Documentation</h1>
  128. </div>
  129. </div>
  130. </header>
  131. <div id="body" class="help-page">
  132. <section class="content-wrapper main-content clear-fix">
  133. {% for business in businesses %}
  134. <h2>{{ business.name }}</h2>
  135. <table class="help-page-table">
  136. <thead>
  137. <tr><th>API</th><th>Description</th></tr>
  138. </thead>
  139. <tbody>
  140. {% for route in business.routes %}
  141. <tr>
  142. <td class="api-name"><a href="doc/{{ business.name_hyphen }}/{{ route.businessMethod }}">{{ route.method }} {{ route.url }}</a></td>
  143. <td class="api-documentation">
  144. <p>{{ route.description }}</p>
  145. </td>
  146. </tr>
  147. {% endfor %}
  148. </tbody>
  149. </table>
  150. {% endfor %}
  151. </section>
  152. </div>
  153. </body>
  154. </html>