documentarian.blade.php 631 B

123456789101112131415161718192021
  1. ---
  2. {!! $frontmatter !!}
  3. ---
  4. <!-- START_INFO -->
  5. {!! $infoText !!}
  6. <!-- END_INFO -->
  7. {!! $prependMd !!}
  8. @foreach($parsedRoutes as $groupName => $routes)
  9. @if($groupName)
  10. #{!! $groupName !!}
  11. @endif
  12. {{-- We pick the first non-empty description we see. --}}
  13. {!! array_first($routes, function ($route) { return $route['groupDescription'] !== ''; })['groupDescription'] ?? '' !!}
  14. @foreach($routes as $parsedRoute)
  15. @if($writeCompareFile === true)
  16. {!! $parsedRoute['output'] !!}
  17. @else
  18. {!! isset($parsedRoute['modified_output']) ? $parsedRoute['modified_output'] : $parsedRoute['output'] !!}
  19. @endif
  20. @endforeach
  21. @endforeach{!! $appendMd !!}