From 8ab9e9bc40a292c8ccf1db37a9ca86afbd2b477a Mon Sep 17 00:00:00 2001 From: Inhere Date: Thu, 18 Aug 2022 22:42:59 +0800 Subject: [PATCH] up: add some static pages html files for run apidoc demo --- app/Lib/Parser/Text/PhpConstInlineParser.php | 2 +- public/pages/apidoc.html | 66 ++++++++++++++++++++ public/pages/index.html | 13 ++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 public/pages/apidoc.html create mode 100644 public/pages/index.html diff --git a/app/Lib/Parser/Text/PhpConstInlineParser.php b/app/Lib/Parser/Text/PhpConstInlineParser.php index ea3fbf1..b5aef4e 100644 --- a/app/Lib/Parser/Text/PhpConstInlineParser.php +++ b/app/Lib/Parser/Text/PhpConstInlineParser.php @@ -52,7 +52,7 @@ public function __invoke(string $str): array $this->valueType = is_numeric($value) ? Type::INTEGER : Type::STRING; } - $comment = ltrim($comment, '// '); + $comment = ltrim($comment, '/ '); if (!$this->withKey) { return [$name, $value, $comment]; } diff --git a/public/pages/apidoc.html b/public/pages/apidoc.html new file mode 100644 index 0000000..b2dceeb --- /dev/null +++ b/public/pages/apidoc.html @@ -0,0 +1,66 @@ + + + + + + Elements in HTML + + + + + +
+
+
+
+
API docs +
+
+
+
+
+ + +
+ +
+
+ +
+
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/public/pages/index.html b/public/pages/index.html new file mode 100644 index 0000000..c4df227 --- /dev/null +++ b/public/pages/index.html @@ -0,0 +1,13 @@ + + + + + + + Document + + +

hello

+
kite 
+ +