Commit 0c3ca231 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

wwwdocs: add an option summary section to the element reference page

parent 9ff7c310
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ desc: |
reference: |
  (chart/layout <options>)

option_summary: true
properties:
  - title: "Geometry Options"
    anchor: geom-options
+2 −1
Original line number Diff line number Diff line
@@ -42,12 +42,13 @@ h3 {
  color: #333;
}

h2 {
h2, a h2 {
  border-bottom: 2px solid #eee;
  margin-top: 2em;
  margin-bottom: .8em;
  padding-bottom: .2em;
  font-weight: 600;
  color: #000;
}

h4 em {
+16 −0
Original line number Diff line number Diff line
@@ -11,6 +11,22 @@
</section>
{{/example}}


{{#option_summary}}
  <h2>Options</h2>
  <div>
    {{#properties}}
      <h4 style="margin-top: 1.2em; margin-bottom: .4em;">{{title}}</h4>
      {{#properties}}
        <a href="#option-{{name}}" class="prop">
          <span><code><strong>{{name}}</strong></code></span>
          <span>{{desc_short}}</span>
        </a>
      {{/properties}}
    {{/properties}}
  </div>
{{/option_summary}}

{{#properties}}
  <a href="#{{anchor}}">
    <h2 id="{{anchor}}">{{title}}</h2>