Skip to content

Commit 48118ec

Browse files
committed
Better heading hierarchy in arbre documentation
1 parent 631f33d commit 48118ec

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/12-arbre-components.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ controller functions.
2323
end
2424
end
2525

26-
## Common Components
2726

28-
### Panel Component
27+
## Panels
2928

3029
A panel is a component that takes up all available horizontal space and takes a
3130
title and a hash of attributes as arguments. If a sidebar is present, a panel
@@ -45,7 +44,7 @@ The following code will create two stacked panels:
4544

4645
end
4746

48-
### Columns Component
47+
## Columns
4948

5049
The Columns component allows you draw content into scalable columns. All you
5150
need to do is define the number of columns and the component will take care of
@@ -68,7 +67,7 @@ the #column method to create a new column.
6867

6968
end
7069

71-
#### Multiple Span Columns
70+
### Spannig Multiple Columns
7271

7372
To create columns that have multiple spans, pass the :span option to the column
7473
method.
@@ -85,7 +84,7 @@ method.
8584
By default, each column spans 1 column. The above layout would have 2 columns,
8685
the first being twice as large as the second.
8786

88-
#### Max and Mix Column Sizes
87+
### Custom Column Widths
8988

9089
Active Admin uses a fluid width layout, causing column width to be defined
9190
using percentages. Due to using this style of layout, columns can shrink or
@@ -104,7 +103,7 @@ columns provide :max_width and :min_width options.
104103
In the above example, the first column will not grow larger than 200px and will
105104
not shrink less than 100px.
106105

107-
### Table For Component
106+
## Table For
108107

109108
Table For provides the ability to create tables like those present
110109
in #index_as_table. table_for takes a collection and a hash of options and then
@@ -121,7 +120,7 @@ the #column method can take a title as its first argument and data
121120
(:your_method) as its second (or first if no title provided). Column also
122121
takes a block.
123122

124-
### Status tag
123+
## Status tag
125124

126125
Status tags provide convenient syntactic sugar for styling items that have
127126
status. A common example of where the status tag could be useful is for orders

0 commit comments

Comments
 (0)