File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ trait FileHelpers
19
19
* Naming suggestion is `getDocumentationOutputPath()`.
20
20
* The configuration option has been renamed.
21
21
*
22
- * @todo Test and if needed add support for storing documentation files in the site root
23
- *
24
22
* @return string
25
23
*/
26
24
public static function docsDirectory (): string
@@ -36,11 +34,11 @@ public static function docsDirectory(): string
36
34
public static function docsIndexPath (): string |false
37
35
{
38
36
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 ' ), ' / ' );
40
38
}
41
39
42
40
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 ' ), ' / ' );
44
42
}
45
43
46
44
return false ;
You can’t perform that action at this time.
0 commit comments