From 0215171646d6b4c40dff4cccfaa1cc39aa46817c Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Sat, 31 May 2025 13:34:41 +0800 Subject: [PATCH] Updated doc for release - Fixed bug in build.sh and doc generator --- docs/plugins/build.sh | 2 +- .../1. What is Zoraxy Plugin.html | 36 +++++++++---------- .../1. Introduction/2. Getting Started.html | 36 +++++++++---------- .../1. Introduction/3. Installing Plugin.html | 36 +++++++++---------- .../1. Introduction/4. Enable Plugins.html | 36 +++++++++---------- .../5. Viewing Plugin Info.html | 36 +++++++++---------- .../1. Plugin Architecture.html | 36 +++++++++---------- .../html/2. Architecture/2. Introspect.html | 36 +++++++++---------- .../html/2. Architecture/3. Configure.html | 36 +++++++++---------- .../2. Architecture/4. Capture Modes.html | 36 +++++++++---------- .../html/2. Architecture/5. Plugin UI.html | 36 +++++++++---------- .../2. Architecture/6. Compile a Plugin.html | 36 +++++++++---------- .../3. Basic Examples/1. Hello World.html | 36 +++++++++---------- .../3. Basic Examples/2. RESTful Example.html | 36 +++++++++---------- .../3. Static Capture Example.html | 36 +++++++++---------- .../4. Dynamic Capture Example.html | 36 +++++++++---------- docs/plugins/html/index.html | 36 +++++++++---------- docs/plugins/main.go | 4 +++ 18 files changed, 293 insertions(+), 289 deletions(-) diff --git a/docs/plugins/build.sh b/docs/plugins/build.sh index 01f9797..f78c1ae 100644 --- a/docs/plugins/build.sh +++ b/docs/plugins/build.sh @@ -1,4 +1,4 @@ #!/bin/bash # Run the Go program with the specified arguments -./docs.exe -m=build -root="/plugins/html/" \ No newline at end of file +./docs.exe -m=build -root=plugins/html/ \ No newline at end of file diff --git a/docs/plugins/html/1. Introduction/1. What is Zoraxy Plugin.html b/docs/plugins/html/1. Introduction/1. What is Zoraxy Plugin.html index a0057cd..3180721 100644 --- a/docs/plugins/html/1. Introduction/1. What is Zoraxy Plugin.html +++ b/docs/plugins/html/1. Introduction/1. What is Zoraxy Plugin.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/1. Introduction/2. Getting Started.html b/docs/plugins/html/1. Introduction/2. Getting Started.html index bce7229..85ebcca 100644 --- a/docs/plugins/html/1. Introduction/2. Getting Started.html +++ b/docs/plugins/html/1. Introduction/2. Getting Started.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/1. Introduction/3. Installing Plugin.html b/docs/plugins/html/1. Introduction/3. Installing Plugin.html index c213ed7..7ded495 100644 --- a/docs/plugins/html/1. Introduction/3. Installing Plugin.html +++ b/docs/plugins/html/1. Introduction/3. Installing Plugin.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/1. Introduction/4. Enable Plugins.html b/docs/plugins/html/1. Introduction/4. Enable Plugins.html index 071895f..8ba0e23 100644 --- a/docs/plugins/html/1. Introduction/4. Enable Plugins.html +++ b/docs/plugins/html/1. Introduction/4. Enable Plugins.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/1. Introduction/5. Viewing Plugin Info.html b/docs/plugins/html/1. Introduction/5. Viewing Plugin Info.html index 1f6b3cf..e5b558b 100644 --- a/docs/plugins/html/1. Introduction/5. Viewing Plugin Info.html +++ b/docs/plugins/html/1. Introduction/5. Viewing Plugin Info.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/2. Architecture/1. Plugin Architecture.html b/docs/plugins/html/2. Architecture/1. Plugin Architecture.html index 9ab5cb5..abcd45d 100644 --- a/docs/plugins/html/2. Architecture/1. Plugin Architecture.html +++ b/docs/plugins/html/2. Architecture/1. Plugin Architecture.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/2. Architecture/2. Introspect.html b/docs/plugins/html/2. Architecture/2. Introspect.html index af8afdd..8fc32e7 100644 --- a/docs/plugins/html/2. Architecture/2. Introspect.html +++ b/docs/plugins/html/2. Architecture/2. Introspect.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/2. Architecture/3. Configure.html b/docs/plugins/html/2. Architecture/3. Configure.html index 5287c12..a8c08ae 100644 --- a/docs/plugins/html/2. Architecture/3. Configure.html +++ b/docs/plugins/html/2. Architecture/3. Configure.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/2. Architecture/4. Capture Modes.html b/docs/plugins/html/2. Architecture/4. Capture Modes.html index 6de5a9f..6ad08e0 100644 --- a/docs/plugins/html/2. Architecture/4. Capture Modes.html +++ b/docs/plugins/html/2. Architecture/4. Capture Modes.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/2. Architecture/5. Plugin UI.html b/docs/plugins/html/2. Architecture/5. Plugin UI.html index 88d8f1d..02650ae 100644 --- a/docs/plugins/html/2. Architecture/5. Plugin UI.html +++ b/docs/plugins/html/2. Architecture/5. Plugin UI.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/2. Architecture/6. Compile a Plugin.html b/docs/plugins/html/2. Architecture/6. Compile a Plugin.html index 2198d06..fb52d9c 100644 --- a/docs/plugins/html/2. Architecture/6. Compile a Plugin.html +++ b/docs/plugins/html/2. Architecture/6. Compile a Plugin.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/3. Basic Examples/1. Hello World.html b/docs/plugins/html/3. Basic Examples/1. Hello World.html index c36a8bb..32527a1 100644 --- a/docs/plugins/html/3. Basic Examples/1. Hello World.html +++ b/docs/plugins/html/3. Basic Examples/1. Hello World.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/3. Basic Examples/2. RESTful Example.html b/docs/plugins/html/3. Basic Examples/2. RESTful Example.html index 3e8072d..9e9d97f 100644 --- a/docs/plugins/html/3. Basic Examples/2. RESTful Example.html +++ b/docs/plugins/html/3. Basic Examples/2. RESTful Example.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/3. Basic Examples/3. Static Capture Example.html b/docs/plugins/html/3. Basic Examples/3. Static Capture Example.html index 4dd426b..be8291d 100644 --- a/docs/plugins/html/3. Basic Examples/3. Static Capture Example.html +++ b/docs/plugins/html/3. Basic Examples/3. Static Capture Example.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html b/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html index 1fdaaae..366627d 100644 --- a/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html +++ b/docs/plugins/html/3. Basic Examples/4. Dynamic Capture Example.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/html/index.html b/docs/plugins/html/index.html index 621e20f..ba6f220 100644 --- a/docs/plugins/html/index.html +++ b/docs/plugins/html/index.html @@ -52,7 +52,7 @@ border-radius: 0.5rem; } - +
@@ -64,7 +64,7 @@
- + Documents @@ -87,19 +87,19 @@ @@ -108,22 +108,22 @@ @@ -132,20 +132,20 @@ - + index
diff --git a/docs/plugins/main.go b/docs/plugins/main.go index 05f6f13..b5bc6b0 100644 --- a/docs/plugins/main.go +++ b/docs/plugins/main.go @@ -28,6 +28,10 @@ func main() { flag.Parse() + if (*root_url)[0] != '/' { + *root_url = "/" + *root_url + } + switch *mode { case "build": build()