Skip to content

Commit 23fb7a1

Browse files
committed
Fixes issue #84
1 parent 1d1f122 commit 23fb7a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function writeMarkdown($parsedRoutes)
9595
$compareFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'.compare.md';
9696

9797
$infoText = view('apidoc::partials.info')
98-
->with('outputPath', $this->option('output'))
98+
->with('outputPath', ltrim($outputPath, 'public/'))
9999
->with('showPostmanCollectionButton', ! $this->option('noPostmanCollection'));
100100

101101
$parsedRouteOutput = $parsedRoutes->map(function ($routeGroup) {

src/resources/views/partials/info.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
Welcome to the generated API reference.
44
@if($showPostmanCollectionButton)
5-
[Get Postman Collection]({{$outputPath}}/collection.json)
5+
[Get Postman Collection]({{url($outputPath.'/collection.json')}})
66
@endif

tests/Fixtures/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ toc_footers:
1616
# Info
1717

1818
Welcome to the generated API reference.
19-
[Get Postman Collection](public/docs/collection.json)
19+
[Get Postman Collection](http://localhost/docs/collection.json)
2020

2121
<!-- END_INFO -->
2222

0 commit comments

Comments
 (0)