File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 8
8
use Igniter \Flame \Database \Traits \Purgeable ;
9
9
use Igniter \Flame \Database \Traits \Validation ;
10
10
use Igniter \Flame \Mail \Markdown ;
11
- use Igniter \Flame \Support \Facades \File ;
12
11
use Model ;
13
12
use System \Classes \ExtensionManager ;
14
13
@@ -109,13 +108,11 @@ public function getBaseEndpointAttribute($value)
109
108
110
109
public function renderSetupPartial ()
111
110
{
112
- $ content = 'No documentation provided ' ;
113
-
114
111
$ docsPath = extension_path ('igniter/api/docs/ ' .sprintf ('%s.md ' , $ this ->endpoint ));
115
- if ($ docsPath = File::existsInsensitive ($ docsPath ))
116
- $ content = (new Markdown )->parse (File::get ($ docsPath ));
117
112
118
- return $ content ;
113
+ $ markdown = Markdown::parseFile ($ docsPath );
114
+
115
+ return $ markdown ? $ markdown ->toHtml () : 'No documentation provided ' ;
119
116
}
120
117
121
118
//
You can’t perform that action at this time.
0 commit comments