Skip to content

Commit 4b5af09

Browse files
committed
1 parent 6be5055 commit 4b5af09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Concerns/Internal/FileHelpers.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ trait FileHelpers
1919
* Naming suggestion is `getDocumentationOutputPath()`.
2020
* The configuration option has been renamed.
2121
*
22-
* @todo Test and if needed add support for storing documentation files in the site root
23-
*
2422
* @return string
2523
*/
2624
public static function docsDirectory(): string
@@ -36,11 +34,11 @@ public static function docsDirectory(): string
3634
public static function docsIndexPath(): string|false
3735
{
3836
if (file_exists(static::path('_docs/index.md'))) {
39-
return static::pageLink(static::docsDirectory().'/index.html');
37+
return trim(static::pageLink(static::docsDirectory().'/index.html'), '/');
4038
}
4139

4240
if (file_exists(static::path('_docs/readme.md'))) {
43-
return static::pageLink(static::docsDirectory().'/readme.html');
41+
return trim(static::pageLink(static::docsDirectory().'/readme.html'), '/');
4442
}
4543

4644
return false;

0 commit comments

Comments
 (0)