froggy-docs 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/froggy-docs +0 -0
- package/lib/src/web_server.dart +11 -2
- package/package.json +1 -1
package/bin/froggy-docs
CHANGED
|
Binary file
|
package/lib/src/web_server.dart
CHANGED
|
@@ -26,8 +26,17 @@ const _corsHeaders = {
|
|
|
26
26
|
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
String get _packageDir {
|
|
30
|
+
final exePath = Platform.resolvedExecutable;
|
|
31
|
+
final exeDir = File(exePath).parent.path;
|
|
32
|
+
print('DEBUG: exePath = $exePath');
|
|
33
|
+
print('DEBUG: exeDir = $exeDir');
|
|
34
|
+
print('DEBUG: webDir = ${p.join(exeDir, 'frontend', 'web')}');
|
|
35
|
+
return exeDir;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
String get webDir => p.join(_packageDir, 'frontend', 'web');
|
|
39
|
+
String get deployDir => p.join(_packageDir, 'frontend', 'deploy', 'web');
|
|
31
40
|
|
|
32
41
|
Router get _router {
|
|
33
42
|
final router = Router();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froggy-docs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Auto-generate API documentation from code annotations. Works with any programming language.",
|
|
5
5
|
"author": "Kaung Mrat Thu <kaungmyatthuu.dev@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Kaung-Myat/froggydocs",
|