From 107bc4f7fed8ca7f99cb9645af2c3b6b520d8e87 Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Wed, 8 Nov 2017 09:48:07 -0500 Subject: [PATCH] Update documentation links to simpler array structure --- docs/source/_layouts/documentation.blade.php | 172 ++++++++++--------- docs/source/_partials/nav-links.blade.php | 7 + 2 files changed, 94 insertions(+), 85 deletions(-) create mode 100644 docs/source/_partials/nav-links.blade.php diff --git a/docs/source/_layouts/documentation.blade.php b/docs/source/_layouts/documentation.blade.php index a3210fa8f..77f7825e3 100644 --- a/docs/source/_layouts/documentation.blade.php +++ b/docs/source/_layouts/documentation.blade.php @@ -41,37 +41,15 @@

Getting Started

@@ -80,92 +58,116 @@
  • Backgrounds
      -
    • Color
    • -
    • Position
    • -
    • Size
    • + @include('_partials.nav-links', ['links' => [ + 'background-color' => 'Color', + 'background-position' => 'Position', + 'background-size' => 'Size', + ]])
  • Borders
      -
    • Width
    • -
    • Color
    • -
    • Style
    • + @include('_partials.nav-links', ['links' => [ + 'border-width' => 'Width', + 'border-color' => 'Color', + 'border-style' => 'Style', + ]])
  • -
  • Border Radius
  • -
  • Container
  • -
  • Display
  • + @include('_partials.nav-links', ['links' => [ + 'border-radius' => 'Border Radius', + 'container' => 'Container', + 'display' => 'Display', + ]])
  • Flexbox
      -
    • Display
    • -
    • Direction
    • -
    • Wrapping
    • -
    • Justify Content
    • -
    • Align Items
    • -
    • Align Content
    • -
    • Align Self
    • -
    • Flex, Grow, & Shrink
    • + @include('_partials.nav-links', ['links' => [ + 'flexbox-display' => 'Display', + 'flexbox-direction' => 'Direction', + 'flexbox-wrapping' => 'Wrapping', + 'flexbox-justify-content' => 'Justify Content', + 'flexbox-align-items' => 'Align Items', + 'flexbox-align-content' => 'Align Content', + 'flexbox-align-self' => 'Align Self', + 'flexbox-flex-grow-shrink' => 'Flex, Grow, & Shrink', + ]])
  • -
  • Floats
  • -
  • Forms
  • -
  • Grid
  • + @include('_partials.nav-links', ['links' => [ + 'floats' => 'Floats', + 'forms' => 'Forms', + 'grid' => 'Grid', + ]])
  • Interactivity
      -
    • Cursor
    • -
    • Resize
    • -
    • Pointer Events
    • -
    • User Select
    • + @include('_partials.nav-links', ['links' => [ + 'cursor' => 'Cursor', + 'resize' => 'Resize', + 'pointer-events' => 'Pointer Events', + 'user-select' => 'User Select', + ]])
  • -
  • Lists
  • -
  • Opacity
  • -
  • Overflow
  • -
  • Positioning
  • -
  • Shadows
  • + @include('_partials.nav-links', ['links' => [ + 'lists' => 'Lists', + 'opacity' => 'Opacity', + 'overflow' => 'Overflow', + 'positioning' => 'Positioning', + 'shadows' => 'Shadows', + ]])
  • Sizing
      -
    • Width
    • -
    • Min-Width
    • -
    • Max-Width
    • -
    • Height
    • -
    • Min-Height
    • -
    • Max-Height
    • + @include('_partials.nav-links', ['links' => [ + 'width' => 'Width', + 'min-width' => 'Min-Width', + 'max-width' => 'Max-Width', + 'height' => 'Height', + 'min-height' => 'Min-Height', + 'max-height' => 'Max-Height', + ]])
  • -
  • Spacing
  • -
  • SVG
  • + @include('_partials.nav-links', ['links' => [ + 'spacing' => 'Spacing', + 'svg' => 'SVG', + ]])
  • Typography
      -
    • Fonts
    • -
    • Color
    • -
    • Sizing
    • -
    • Weight
    • -
    • Alignment
    • -
    • Line Height
    • -
    • Letter Spacing
    • -
    • Style & Decoration
    • -
    • Whitespace & Wrapping
    • + @include('_partials.nav-links', ['links' => [ + 'fonts' => 'Fonts', + 'text-color' => 'Color', + 'text-sizing' => 'Sizing', + 'font-weight' => 'Weight', + 'text-alignment' => 'Alignment', + 'line-height' => 'Line Height', + 'letter-spacing' => 'Letter Spacing', + 'text-style' => 'Style & Decoration', + 'whitespace-and-wrapping' => 'Whitespace & Wrapping', + ]])
  • -
  • Vertical Alignment
  • -
  • Visibility
  • -
  • Z-Index
  • + @include('_partials.nav-links', ['links' => [ + 'vertical-alignment' => 'Vertical Alignment', + 'visibility' => 'Visibility', + 'z-index' => 'Z-Index', + ]])

    Examples

    diff --git a/docs/source/_partials/nav-links.blade.php b/docs/source/_partials/nav-links.blade.php new file mode 100644 index 000000000..d6d282572 --- /dev/null +++ b/docs/source/_partials/nav-links.blade.php @@ -0,0 +1,7 @@ +@foreach ($links as $link => $title) +
  • + + {{ $title }} + +
  • +@endforeach