Browse Source

rebuild by docgo

xuxin 2 years ago
parent
commit
56460d5c30
97 changed files with 553 additions and 237 deletions
  1. BIN
      .DS_Store
  2. 0 12
      Dockerfile
  3. 0 10
      build.sh
  4. BIN
      content/.DS_Store
  5. 0 0
      docs/assets/logo.png
  6. 9 0
      docs/index.css
  7. 69 0
      docs/index.html
  8. 5 0
      docs/index.js
  9. 1 0
      docs/search_indexes.json
  10. BIN
      docsrc/assets/logo.png
  11. 15 0
      docsrc/build/main.go
  12. 4 4
      docsrc/content/advanced-functions/a-taste-of-using-vuetify-in-go.go
  13. 3 3
      docsrc/content/advanced-functions/detail-page-for-complex-object.go
  14. 3 3
      docsrc/content/advanced-functions/event-handling.go
  15. 3 3
      docsrc/content/advanced-functions/its-the-whole-house.go
  16. 2 2
      docsrc/content/advanced-functions/layout-function-and-page-injector.go
  17. 3 3
      docsrc/content/advanced-functions/lazy-portals-and-reload.go
  18. 3 3
      docsrc/content/advanced-functions/manipulate-page-url-in-event-func.go
  19. 3 3
      docsrc/content/advanced-functions/navigation-drawer.go
  20. 3 3
      docsrc/content/advanced-functions/page-func-and-event-func.go
  21. 3 3
      docsrc/content/advanced-functions/partial-refresh-with-portal.go
  22. 3 3
      docsrc/content/advanced-functions/reload-page-with-a-flash.go
  23. 1 1
      docsrc/content/advanced-functions/summary-of-event-response.go
  24. 3 3
      docsrc/content/advanced-functions/switch-pages-with-push-state.go
  25. 3 3
      docsrc/content/advanced-functions/the-go-html-builder.go
  26. 3 3
      docsrc/content/advanced-functions/web-scope.go
  27. BIN
      docsrc/content/assets/logo.png
  28. 3 3
      docsrc/content/basics/auto-complete.go
  29. 3 3
      docsrc/content/basics/basic-inputs.go
  30. 3 3
      docsrc/content/basics/editing-customizations.go
  31. 3 3
      docsrc/content/basics/filter.go
  32. 3 3
      docsrc/content/basics/form-handling.go
  33. 4 4
      docsrc/content/basics/linkage-select.go
  34. 3 3
      docsrc/content/basics/listing-customizations.go
  35. 3 3
      docsrc/content/basics/listing.go
  36. 3 3
      docsrc/content/basics/notification-center.go
  37. 3 3
      docsrc/content/basics/permissions.go
  38. 3 3
      docsrc/content/basics/shortcut.go
  39. 3 3
      docsrc/content/basics/variant-sub-form.go
  40. 3 3
      docsrc/content/digging-deeper/composite-new-component-with-go.go
  41. 3 3
      docsrc/content/digging-deeper/integrate-a-heavy-vue-component.go
  42. 0 0
      docsrc/content/getting-started/one-minute-quick-start.go
  43. 3 3
      docsrc/content/getting-started/what-is-goplaid.go
  44. 1 1
      docsrc/content/home.go
  45. 12 0
      docsrc/dev.sh
  46. 5 7
      docsrc/dev/main.go
  47. 73 0
      docsrc/doc_tree.go
  48. 2 0
      docsrc/examples-generated.go
  49. 0 0
      docsrc/examples/e00_basics/composite-components.go
  50. 0 0
      docsrc/examples/e00_basics/event-handling.go
  51. 1 1
      docsrc/examples/e00_basics/form-handling.go
  52. 0 0
      docsrc/examples/e00_basics/hello-world-reload.go
  53. 0 0
      docsrc/examples/e00_basics/hello-world.go
  54. 0 0
      docsrc/examples/e00_basics/manipulate-page-url.go
  55. 0 0
      docsrc/examples/e00_basics/page-transition.go
  56. 0 0
      docsrc/examples/e00_basics/partial-reload.go
  57. 0 0
      docsrc/examples/e00_basics/partial-update.go
  58. 0 0
      docsrc/examples/e00_basics/reload-with-a-flash.go
  59. 0 0
      docsrc/examples/e00_basics/shortcut.go
  60. 0 0
      docsrc/examples/e00_basics/type-safe-builder-sample.go
  61. 0 0
      docsrc/examples/e00_basics/use-tiptap-editor.go
  62. 1 1
      docsrc/examples/e00_basics/web-scope.go
  63. 0 0
      docsrc/examples/e01_hello_button/page.go
  64. 0 0
      docsrc/examples/e05_hello_customized_component/page.go
  65. 0 0
      docsrc/examples/e10_vuetify_autocomplete/page.go
  66. 1 1
      docsrc/examples/e11_vuetify_basic_inputs/page.go
  67. 0 0
      docsrc/examples/e12_hello_vuetify_grid/page.go
  68. 0 0
      docsrc/examples/e13_vuetify_list/page.go
  69. 1 1
      docsrc/examples/e14_vuetify_menu/page.go
  70. 0 0
      docsrc/examples/e15_vuetify_navigation_drawer/page.go
  71. 0 0
      docsrc/examples/e16_hello_vuetify_simple_components/page.go
  72. 0 0
      docsrc/examples/e17_hello_lazy_portals_and_reload/page.go
  73. 0 0
      docsrc/examples/e18_filter_component/page.go
  74. 0 0
      docsrc/examples/e19_stripeui_key_info/page.go
  75. 0 0
      docsrc/examples/e20_vuetify_expansion_panels/page.go
  76. 0 0
      docsrc/examples/e21_presents/detailing.go
  77. 0 0
      docsrc/examples/e21_presents/editing.go
  78. 0 0
      docsrc/examples/e21_presents/filter.go
  79. 0 0
      docsrc/examples/e21_presents/linkage_select_filter_item.go
  80. 0 0
      docsrc/examples/e21_presents/listing.go
  81. 0 0
      docsrc/examples/e21_presents/messages.go
  82. 0 0
      docsrc/examples/e21_presents/model-builder-extensions.go
  83. 1 1
      docsrc/examples/e21_presents/notification-center.go
  84. 0 0
      docsrc/examples/e21_presents/permissions.go
  85. 1 1
      docsrc/examples/e22_vuetify_variant_sub_form/page.go
  86. 1 1
      docsrc/examples/e23_vuetify_components_kitchen/page.go
  87. 0 0
      docsrc/examples/e24_vuetify_components_linkage_select/page.go
  88. 0 0
      docsrc/examples/example_basics/listing.go
  89. 0 0
      docsrc/examples/examples-generated.go
  90. 0 0
      docsrc/examples/utils/db.go
  91. 21 20
      docsrc/mux.go
  92. 0 0
      docsrc/utils/utils.go
  93. BIN
      examples/.DS_Store
  94. 58 1
      go.mod
  95. 186 0
      go.sum
  96. 0 82
      menu.go
  97. 0 8
      plantbuild/build.jsonnet

BIN
.DS_Store


+ 0 - 12
Dockerfile

@@ -1,12 +0,0 @@
-FROM golang:alpine as builder
-RUN apk update && apk add git gcc libc-dev sqlite sqlite-dev && rm -rf /var/cache/apk/*
-ARG GITHUB_TOKEN
-WORKDIR /go/src/github.com/qor5/docs
-COPY . .
-RUN set -x && go get -d -v ./docs/docsmain/...
-RUN GOOS=linux GOARCH=amd64 go build -o /app/entry ./docs/docsmain/
-
-FROM alpine
-RUN apk update && apk add sqlite sqlite-dev && rm -rf /var/cache/apk/*
-COPY --from=builder /app/entry  /bin/docsmain
-CMD /bin/docsmain

+ 0 - 10
build.sh

@@ -1,10 +0,0 @@
-CUR=$(pwd)/$(dirname $0)
-
-if test "$1" = 'clean'; then
-    echo "Removing node_modules"
-    rm -rf $CUR/docsjs/node_modules/
-fi
-
-rm -r $CUR/docsjs/dist
-echo "Building docsjs"
-cd $CUR/docsjs && yarn && yarn build

BIN
content/.DS_Store


+ 0 - 0
content/assets/logo.png → docs/assets/logo.png


File diff suppressed because it is too large
+ 9 - 0
docs/index.css


+ 69 - 0
docs/index.html

@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<title>Home - My Document</title>
+
+<meta name='description'>
+<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
+<base href='/docs/'>
+
+<link href='index.css' rel='stylesheet' type='text/css'>
+
+<script type='text/javascript' defer src='index.js'></script>
+</head>
+
+<body>
+<div id='app' v-cloak>
+<div v-init-context:vars='{hideAside: false}' class='flex h-screen'>
+<div class='flex-1 flex flex-col overflow-hidden'>
+<div class='flex h-full'>
+<aside v-show='!vars.hideAside' class='flex flex-col w-80 h-full bg-gray-50 border-r border-gray-200 overflow-y-auto'>
+<div class='h-12'><search></search></div>
+
+<ul class='px-0 mx-0 text-base font-normal list-none text-gray-700'>
+<li>
+<a href='index.html' class='inline-block px-4 truncate break-words w-64 text-blue-500'>Home</a>
+</li>
+</ul>
+</aside>
+
+<main class='flex flex-col w-full bg-white overflow-x-hidden overflow-y-auto'>
+<div id='docContentBox' class='flex flex-row w-full'>
+<div class='flex flex-grow flex-col w-2/3'>
+<div class='flex flex-row'>
+<button @click='vars.hideAside = !vars.hideAside' class='w-12 h-12 p-4'>
+<div class='w-4 h-4 fill-current text-gray-300'>
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" version="1.1">
+<g id="surface1">
+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 2 12 L 2 11 L 14 11 L 14 12 Z M 2 8.5 L 2 7.5 L 14 7.5 L 14 8.5 Z M 2 5 L 2 4 L 14 4 L 14 5 Z M 2 5 "/>
+</g>
+</svg>
+</div>
+</button>
+</div>
+
+<div id='docMainBox' class='px-16 pb-12 pt-4 overflow-auto'>
+<h1 class='mb-8'>Home</h1>
+
+<div class='border-t'><h2><a name="home-title" class="anchor" href="#home-title" rel="nofollow" aria-hidden="true"><span class="octicon octicon-link"></span></a>Home title</h2>
+
+<p>home content</p>
+
+<highlightjs :language='"go"' :code='"func helloworld() {\n\tprintln(\"hello world\")\n}\n"'></highlightjs>
+</div>
+</div>
+</div>
+
+<div class='font-medium text-base hidden xl:block text-gray-600 pt-4'>
+<div class='sticky top-4 w-52'>On This Page<toc></toc></div>
+</div>
+</div>
+<search-result></search-result></main>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>

File diff suppressed because it is too large
+ 5 - 0
docs/index.js


+ 1 - 0
docs/search_indexes.json

@@ -0,0 +1 @@
+[{"URL":"index.html","Title":"Home","Body":"Home title home content func helloworld() {  println(\"hello world\") }  "}]

BIN
docsrc/assets/logo.png


+ 15 - 0
docsrc/build/main.go

@@ -0,0 +1,15 @@
+package main
+
+import (
+	"github.com/theplant/docgo"
+	"github.com/qor5/docs/docsrc"
+)
+
+func main() {
+	docgo.New().
+		Assets("/assets/", docsrc.Assets).
+		MainPageTitle("My Document").
+		SitePrefix("/docs/").
+		DocTree(docsrc.DocTree...).
+		BuildStaticSite("../docs")
+}

+ 4 - 4
content/advanced-functions/a-taste-of-using-vuetify-in-go.go → docsrc/content/advanced-functions/a-taste-of-using-vuetify-in-go.go

@@ -1,10 +1,10 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e13_vuetify_list"
-	"github.com/qor5/docs/examples/e14_vuetify_menu"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e13_vuetify_list"
+	"github.com/qor5/docs/docsrc/examples/e14_vuetify_menu"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/advanced-functions/detail-page-for-complex-object.go → docsrc/content/advanced-functions/detail-page-for-complex-object.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/advanced-functions/event-handling.go → docsrc/content/advanced-functions/event-handling.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/advanced-functions/its-the-whole-house.go → docsrc/content/advanced-functions/its-the-whole-house.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 2 - 2
content/advanced-functions/layout-function-and-page-injector.go → docsrc/content/advanced-functions/layout-function-and-page-injector.go

@@ -1,8 +1,8 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/advanced-functions/lazy-portals-and-reload.go → docsrc/content/advanced-functions/lazy-portals-and-reload.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e17_hello_lazy_portals_and_reload"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e17_hello_lazy_portals_and_reload"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/advanced-functions/manipulate-page-url-in-event-func.go → docsrc/content/advanced-functions/manipulate-page-url-in-event-func.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/advanced-functions/navigation-drawer.go → docsrc/content/advanced-functions/navigation-drawer.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e15_vuetify_navigation_drawer"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e15_vuetify_navigation_drawer"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/advanced-functions/page-func-and-event-func.go → docsrc/content/advanced-functions/page-func-and-event-func.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/advanced-functions/partial-refresh-with-portal.go → docsrc/content/advanced-functions/partial-refresh-with-portal.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/advanced-functions/reload-page-with-a-flash.go → docsrc/content/advanced-functions/reload-page-with-a-flash.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 1 - 1
content/advanced-functions/summary-of-event-response.go → docsrc/content/advanced-functions/summary-of-event-response.go

@@ -1,7 +1,7 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
+	"github.com/qor5/docs/docsrc/examples"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/advanced-functions/switch-pages-with-push-state.go → docsrc/content/advanced-functions/switch-pages-with-push-state.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/advanced-functions/the-go-html-builder.go → docsrc/content/advanced-functions/the-go-html-builder.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/advanced-functions/web-scope.go → docsrc/content/advanced-functions/web-scope.go

@@ -1,9 +1,9 @@
 package advanced_functions
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

BIN
docsrc/content/assets/logo.png


+ 3 - 3
content/basics/auto-complete.go → docsrc/content/basics/auto-complete.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e10_vuetify_autocomplete"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e10_vuetify_autocomplete"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/basic-inputs.go → docsrc/content/basics/basic-inputs.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e11_vuetify_basic_inputs"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e11_vuetify_basic_inputs"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/editing-customizations.go → docsrc/content/basics/editing-customizations.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/basics/filter.go → docsrc/content/basics/filter.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	"github.com/theplant/docgo/ch"
 
 	. "github.com/theplant/docgo"

+ 3 - 3
content/basics/form-handling.go → docsrc/content/basics/form-handling.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 4 - 4
content/basics/linkage-select.go → docsrc/content/basics/linkage-select.go

@@ -1,10 +1,10 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/examples/e24_vuetify_components_linkage_select"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/examples/e24_vuetify_components_linkage_select"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/listing-customizations.go → docsrc/content/basics/listing-customizations.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 3 - 3
content/basics/listing.go → docsrc/content/basics/listing.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/example_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/example_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/notification-center.go → docsrc/content/basics/notification-center.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/permissions.go → docsrc/content/basics/permissions.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/shortcut.go → docsrc/content/basics/shortcut.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/basics/variant-sub-form.go → docsrc/content/basics/variant-sub-form.go

@@ -1,9 +1,9 @@
 package basics
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e22_vuetify_variant_sub_form"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e22_vuetify_variant_sub_form"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/digging-deeper/composite-new-component-with-go.go → docsrc/content/digging-deeper/composite-new-component-with-go.go

@@ -1,9 +1,9 @@
 package digging_deeper
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 3 - 3
content/digging-deeper/integrate-a-heavy-vue-component.go → docsrc/content/digging-deeper/integrate-a-heavy-vue-component.go

@@ -1,9 +1,9 @@
 package digging_deeper
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 )

+ 0 - 0
content/getting-started/one-minute-quick-start.go → docsrc/content/getting-started/one-minute-quick-start.go


+ 3 - 3
content/getting-started/what-is-goplaid.go → docsrc/content/getting-started/what-is-goplaid.go

@@ -1,9 +1,9 @@
 package getting_started
 
 import (
-	"github.com/qor5/docs/examples"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	"github.com/theplant/docgo/ch"
 	. "github.com/theplant/htmlgo"

+ 1 - 1
content/home.go → docsrc/content/home.go

@@ -3,7 +3,7 @@ package content
 import (
 	"embed"
 
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/theplant/docgo"
 	. "github.com/theplant/htmlgo"
 )

+ 12 - 0
docsrc/dev.sh

@@ -0,0 +1,12 @@
+snippetgo -pkg=docsrc -dir=../ > ./examples-generated.go
+
+go run ./build/main.go
+
+function docsRestart() {
+  echo "=================>"
+  killall docgodocs
+  go build -o /tmp/docgodocs ./dev/main.go && /tmp/docgodocs
+}
+
+export -f docsRestart
+find . -name "*.go" | entr -r bash -c "docsRestart"

+ 5 - 7
main.go → docsrc/dev/main.go

@@ -1,23 +1,21 @@
-package docs
+package main
 
 import (
 	"fmt"
 	"net/http"
 	"os"
+
+	"github.com/qor5/docs/docsrc"
 )
 
 func main() {
-	mux := Mux("/")
 	port := os.Getenv("PORT")
 	if len(port) == 0 {
-		port = "9101"
+		port = "8800"
 	}
-	// @snippet_begin(HelloWorldMainSample)
 	fmt.Println("Starting docs at :" + port)
-	http.Handle("/", mux)
-	err := http.ListenAndServe(":"+port, nil)
+	err := http.ListenAndServe(":"+port, docsrc.Mux("/"))
 	if err != nil {
 		panic(err)
 	}
-	// @snippet_end
 }

+ 73 - 0
docsrc/doc_tree.go

@@ -0,0 +1,73 @@
+package docsrc
+
+import (
+	"github.com/qor5/docs/docsrc/content"
+	advanced_functions "github.com/qor5/docs/docsrc/content/advanced-functions"
+	"github.com/qor5/docs/docsrc/content/basics"
+	digging_deeper "github.com/qor5/docs/docsrc/content/digging-deeper"
+	getting_started "github.com/qor5/docs/docsrc/content/getting-started"
+	"github.com/qor5/docs/docsrc/utils"
+	"github.com/theplant/docgo"
+)
+
+var DocTree = []interface{}{
+	content.Home,
+	&docgo.DocsGroup{
+		Title: "Getting Started",
+		Docs: []*docgo.DocBuilder{
+			getting_started.OneMinuteQuickStart,
+		},
+	},
+	&docgo.DocsGroup{
+		Title: "Basics",
+		Docs: []*docgo.DocBuilder{
+			basics.Listing,
+			basics.Filter,
+			basics.EditingCustomizations,
+			basics.FormHandling,
+			basics.BasicInputs,
+			basics.AutoComplete,
+			basics.ShortCut,
+			basics.VariantSubForm,
+			basics.LinkageSelect,
+			basics.Permissions,
+			basics.NotificationCenter,
+		},
+	},
+
+	&docgo.DocsGroup{
+		Title: "Advanced Functions",
+		Docs: []*docgo.DocBuilder{
+			advanced_functions.PageFuncAndEventFunc,
+			advanced_functions.TheGoHTMLBuilder,
+			advanced_functions.ATasteOfUsingVuetifyInGo,
+			advanced_functions.ItsTheWholeHouse,
+			advanced_functions.NavigationDrawer,
+			advanced_functions.LazyPortalsAndReload,
+			advanced_functions.LayoutFunctionAndPageInjector,
+			advanced_functions.SwitchPagesWithPushState,
+			advanced_functions.ReloadPageWithAFlash,
+			advanced_functions.PartialRefreshWithPortal,
+			advanced_functions.ManipulatePageURLInEventFunc,
+			advanced_functions.SummaryOfEventResponse,
+			advanced_functions.WebScope,
+			advanced_functions.EventHandling,
+			advanced_functions.DetailPageForComplexObject,
+		},
+	},
+	&docgo.DocsGroup{
+		Title: "Digging Deeper",
+		Docs: []*docgo.DocBuilder{
+			digging_deeper.CompositeNewComponentWithGo,
+			digging_deeper.IntegrateAHeavyVueComponent,
+		},
+	},
+	&docgo.DocsGroup{
+		Title: "Appendix",
+		Docs: []*docgo.DocBuilder{
+			docgo.Doc(utils.ExamplesDoc()).
+				Title("All Demo Examples").
+				Slug("appendix/all-demo-examples"),
+		},
+	},
+}

File diff suppressed because it is too large
+ 2 - 0
docsrc/examples-generated.go


+ 0 - 0
examples/e00_basics/composite-components.go → docsrc/examples/e00_basics/composite-components.go


+ 0 - 0
examples/e00_basics/event-handling.go → docsrc/examples/e00_basics/event-handling.go


+ 1 - 1
examples/e00_basics/form-handling.go → docsrc/examples/e00_basics/form-handling.go

@@ -6,7 +6,7 @@ import (
 	"io"
 	"mime/multipart"
 
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	"github.com/qor5/web"
 	. "github.com/theplant/htmlgo"
 )

+ 0 - 0
examples/e00_basics/hello-world-reload.go → docsrc/examples/e00_basics/hello-world-reload.go


+ 0 - 0
examples/e00_basics/hello-world.go → docsrc/examples/e00_basics/hello-world.go


+ 0 - 0
examples/e00_basics/manipulate-page-url.go → docsrc/examples/e00_basics/manipulate-page-url.go


+ 0 - 0
examples/e00_basics/page-transition.go → docsrc/examples/e00_basics/page-transition.go


+ 0 - 0
examples/e00_basics/partial-reload.go → docsrc/examples/e00_basics/partial-reload.go


+ 0 - 0
examples/e00_basics/partial-update.go → docsrc/examples/e00_basics/partial-update.go


+ 0 - 0
examples/e00_basics/reload-with-a-flash.go → docsrc/examples/e00_basics/reload-with-a-flash.go


+ 0 - 0
examples/e00_basics/shortcut.go → docsrc/examples/e00_basics/shortcut.go


+ 0 - 0
examples/e00_basics/type-safe-builder-sample.go → docsrc/examples/e00_basics/type-safe-builder-sample.go


+ 0 - 0
examples/e00_basics/use-tiptap-editor.go → docsrc/examples/e00_basics/use-tiptap-editor.go


+ 1 - 1
examples/e00_basics/web-scope.go → docsrc/examples/e00_basics/web-scope.go

@@ -1,7 +1,7 @@
 package e00_basics
 
 import (
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/qor5/ui/vuetify"
 	"github.com/qor5/web"
 	. "github.com/theplant/htmlgo"

+ 0 - 0
examples/e01_hello_button/page.go → docsrc/examples/e01_hello_button/page.go


+ 0 - 0
examples/e05_hello_customized_component/page.go → docsrc/examples/e05_hello_customized_component/page.go


+ 0 - 0
examples/e10_vuetify_autocomplete/page.go → docsrc/examples/e10_vuetify_autocomplete/page.go


+ 1 - 1
examples/e11_vuetify_basic_inputs/page.go → docsrc/examples/e11_vuetify_basic_inputs/page.go

@@ -4,7 +4,7 @@ package e11_vuetify_basic_inputs
 import (
 	"mime/multipart"
 
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/qor5/ui/vuetify"
 	"github.com/qor5/web"
 	h "github.com/theplant/htmlgo"

+ 0 - 0
examples/e12_hello_vuetify_grid/page.go → docsrc/examples/e12_hello_vuetify_grid/page.go


+ 0 - 0
examples/e13_vuetify_list/page.go → docsrc/examples/e13_vuetify_list/page.go


+ 1 - 1
examples/e14_vuetify_menu/page.go → docsrc/examples/e14_vuetify_menu/page.go

@@ -3,7 +3,7 @@ package e14_vuetify_menu
 // @snippet_begin(VuetifyMenuSample)
 
 import (
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/qor5/ui/vuetify"
 	"github.com/qor5/web"
 	h "github.com/theplant/htmlgo"

+ 0 - 0
examples/e15_vuetify_navigation_drawer/page.go → docsrc/examples/e15_vuetify_navigation_drawer/page.go


+ 0 - 0
examples/e16_hello_vuetify_simple_components/page.go → docsrc/examples/e16_hello_vuetify_simple_components/page.go


+ 0 - 0
examples/e17_hello_lazy_portals_and_reload/page.go → docsrc/examples/e17_hello_lazy_portals_and_reload/page.go


+ 0 - 0
examples/e18_filter_component/page.go → docsrc/examples/e18_filter_component/page.go


+ 0 - 0
examples/e19_stripeui_key_info/page.go → docsrc/examples/e19_stripeui_key_info/page.go


+ 0 - 0
examples/e20_vuetify_expansion_panels/page.go → docsrc/examples/e20_vuetify_expansion_panels/page.go


+ 0 - 0
examples/e21_presents/detailing.go → docsrc/examples/e21_presents/detailing.go


+ 0 - 0
examples/e21_presents/editing.go → docsrc/examples/e21_presents/editing.go


+ 0 - 0
examples/e21_presents/filter.go → docsrc/examples/e21_presents/filter.go


+ 0 - 0
examples/e21_presents/linkage_select_filter_item.go → docsrc/examples/e21_presents/linkage_select_filter_item.go


+ 0 - 0
examples/e21_presents/listing.go → docsrc/examples/e21_presents/listing.go


+ 0 - 0
examples/e21_presents/messages.go → docsrc/examples/e21_presents/messages.go


+ 0 - 0
examples/e21_presents/model-builder-extensions.go → docsrc/examples/e21_presents/model-builder-extensions.go


+ 1 - 1
examples/e21_presents/notification-center.go → docsrc/examples/e21_presents/notification-center.go

@@ -4,7 +4,7 @@ package e21_presents
 import (
 	"github.com/qor5/admin/presets"
 	"github.com/qor5/admin/presets/gorm2op"
-	"github.com/qor5/docs/examples/utils"
+	"github.com/qor5/docs/docsrc/examples/utils"
 	v "github.com/qor5/ui/vuetify"
 	"github.com/qor5/web"
 	h "github.com/theplant/htmlgo"

+ 0 - 0
examples/e21_presents/permissions.go → docsrc/examples/e21_presents/permissions.go


+ 1 - 1
examples/e22_vuetify_variant_sub_form/page.go → docsrc/examples/e22_vuetify_variant_sub_form/page.go

@@ -3,7 +3,7 @@ package e22_vuetify_variant_sub_form
 // @snippet_begin(VuetifyVariantSubForm)
 
 import (
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/qor5/ui/vuetify"
 	"github.com/qor5/web"
 	h "github.com/theplant/htmlgo"

+ 1 - 1
examples/e23_vuetify_components_kitchen/page.go → docsrc/examples/e23_vuetify_components_kitchen/page.go

@@ -3,7 +3,7 @@ package e23_vuetify_components_kitchen
 // @snippet_begin(VuetifyComponentsKitchen)
 
 import (
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/utils"
 	. "github.com/qor5/ui/vuetify"
 	"github.com/qor5/web"
 	h "github.com/theplant/htmlgo"

+ 0 - 0
examples/e24_vuetify_components_linkage_select/page.go → docsrc/examples/e24_vuetify_components_linkage_select/page.go


+ 0 - 0
examples/example_basics/listing.go → docsrc/examples/example_basics/listing.go


+ 0 - 0
examples/examples-generated.go → docsrc/examples/examples-generated.go


+ 0 - 0
examples/utils/db.go → docsrc/examples/utils/db.go


+ 21 - 20
mux.go → docsrc/mux.go

@@ -1,4 +1,4 @@
-package docs
+package docsrc
 
 import (
 	"fmt"
@@ -8,23 +8,24 @@ import (
 
 	"github.com/go-chi/chi/middleware"
 	"github.com/qor5/admin/presets"
-	"github.com/qor5/docs/examples/e00_basics"
-	"github.com/qor5/docs/examples/e10_vuetify_autocomplete"
-	"github.com/qor5/docs/examples/e11_vuetify_basic_inputs"
-	"github.com/qor5/docs/examples/e13_vuetify_list"
-	"github.com/qor5/docs/examples/e14_vuetify_menu"
-	"github.com/qor5/docs/examples/e15_vuetify_navigation_drawer"
-	"github.com/qor5/docs/examples/e17_hello_lazy_portals_and_reload"
-	"github.com/qor5/docs/examples/e21_presents"
-	"github.com/qor5/docs/examples/e22_vuetify_variant_sub_form"
-	"github.com/qor5/docs/examples/e23_vuetify_components_kitchen"
-	"github.com/qor5/docs/examples/e24_vuetify_components_linkage_select"
-	"github.com/qor5/docs/examples/example_basics"
-	"github.com/qor5/docs/utils"
+	"github.com/qor5/docs/docsrc/examples/e00_basics"
+	"github.com/qor5/docs/docsrc/examples/e10_vuetify_autocomplete"
+	"github.com/qor5/docs/docsrc/examples/e11_vuetify_basic_inputs"
+	"github.com/qor5/docs/docsrc/examples/e13_vuetify_list"
+	"github.com/qor5/docs/docsrc/examples/e14_vuetify_menu"
+	"github.com/qor5/docs/docsrc/examples/e15_vuetify_navigation_drawer"
+	"github.com/qor5/docs/docsrc/examples/e17_hello_lazy_portals_and_reload"
+	"github.com/qor5/docs/docsrc/examples/e21_presents"
+	"github.com/qor5/docs/docsrc/examples/e22_vuetify_variant_sub_form"
+	"github.com/qor5/docs/docsrc/examples/e23_vuetify_components_kitchen"
+	"github.com/qor5/docs/docsrc/examples/e24_vuetify_components_linkage_select"
+	"github.com/qor5/docs/docsrc/examples/example_basics"
+	"github.com/qor5/docs/docsrc/utils"
 	"github.com/qor5/ui/tiptap"
 	v "github.com/qor5/ui/vuetify"
 	"github.com/qor5/ui/vuetifyx"
 	"github.com/qor5/web"
+	"github.com/theplant/docgo"
 	. "github.com/theplant/htmlgo"
 )
 
@@ -405,13 +406,13 @@ func Mux(prefix string) http.Handler {
 		),
 	)
 
-	mux.Handle("/",
-		middleware.Logger(
-			middleware.RequestID(
-				DocMenu(prefix),
-			),
-		),
+	mux.Handle("/", docgo.New().
+		MainPageTitle("My Document").
+		// Assets("/assets/", docsrc.Assets).
+		DocTree(DocTree...).
+		Build(),
 	)
+
 	return mux
 }
 

+ 0 - 0
utils/utils.go → docsrc/utils/utils.go


BIN
examples/.DS_Store


+ 58 - 1
go.mod

@@ -1,3 +1,60 @@
 module github.com/qor5/docs
 
-go 1.17
+go 1.19
+
+require (
+	github.com/go-chi/chi v1.5.4
+	github.com/qor5/admin v0.0.0-20221109054144-8fb75a2a20a9
+	github.com/qor5/ui v1.0.0
+	github.com/qor5/web v1.2.3
+	github.com/qor5/x v1.2.0
+	github.com/shurcooL/sanitized_anchor_name v1.0.0
+	github.com/sunfmin/reflectutils v1.0.3
+	github.com/theplant/docgo v0.0.12
+	github.com/theplant/htmlgo v1.0.3
+	github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
+	golang.org/x/text v0.4.0
+	gorm.io/driver/sqlite v1.4.3
+	gorm.io/gorm v1.24.1
+)
+
+require (
+	github.com/NYTimes/gziphandler v1.1.1 // indirect
+	github.com/aymerick/douceur v0.2.0 // indirect
+	github.com/davecgh/go-spew v1.1.1 // indirect
+	github.com/dlclark/regexp2 v1.4.0 // indirect
+	github.com/go-playground/form v3.1.4+incompatible // indirect
+	github.com/google/uuid v1.3.0 // indirect
+	github.com/goplaid/web v1.1.26 // indirect
+	github.com/gorilla/css v1.0.0 // indirect
+	github.com/hashicorp/golang-lru v0.5.4 // indirect
+	github.com/iancoleman/strcase v0.2.0 // indirect
+	github.com/jinzhu/inflection v1.0.0 // indirect
+	github.com/jinzhu/now v1.1.5 // indirect
+	github.com/lib/pq v1.10.3 // indirect
+	github.com/mattn/go-sqlite3 v1.14.15 // indirect
+	github.com/microcosm-cc/bluemonday v1.0.16 // indirect
+	github.com/ory/ladon v1.2.0 // indirect
+	github.com/ory/pagination v0.0.1 // indirect
+	github.com/pborman/uuid v1.2.1 // indirect
+	github.com/pkg/errors v0.9.1 // indirect
+	github.com/pmezard/go-difflib v1.0.0 // indirect
+	github.com/rogpeppe/go-internal v1.9.0 // indirect
+	github.com/rs/xid v1.4.0 // indirect
+	github.com/russross/blackfriday v1.5.2 // indirect
+	github.com/sergi/go-diff v1.2.0 // indirect
+	github.com/shurcooL/github_flavored_markdown v0.0.0-20210228213109-c3a9aa474629 // indirect
+	github.com/shurcooL/highlight_diff v0.0.0-20181222201841-111da2e7d480 // indirect
+	github.com/shurcooL/highlight_go v0.0.0-20191220051317-782971ddf21b // indirect
+	github.com/shurcooL/octicon v0.0.0-20191102190552-cbb32d6a785c // indirect
+	github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
+	github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
+	github.com/stretchr/testify v1.8.0 // indirect
+	github.com/thoas/go-funk v0.9.2 // indirect
+	go.uber.org/atomic v1.9.0 // indirect
+	go.uber.org/multierr v1.7.0 // indirect
+	go.uber.org/zap v1.19.1 // indirect
+	goji.io v2.0.2+incompatible // indirect
+	golang.org/x/net v0.1.0 // indirect
+	gopkg.in/yaml.v3 v3.0.1 // indirect
+)

+ 186 - 0
go.sum

@@ -0,0 +1,186 @@
+github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=
+github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
+github.com/andybalholm/cascadia v1.2.0 h1:vuRCkM5Ozh/BfmsaTm26kbjm0mIOM3yS5Ek/F5h18aE=
+github.com/andybalholm/cascadia v1.2.0/go.mod h1:YCyR8vOZT9aZ1CHEd8ap0gMVm2aFgxBp0T0eFw1RUQY=
+github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
+github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
+github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
+github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
+github.com/dlclark/regexp2 v1.4.0 h1:F1rxgk7p4uKjwIQxBs9oAXe5CqrXlCduYEJvrF4u93E=
+github.com/dlclark/regexp2 v1.4.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
+github.com/go-chi/chi v1.5.4 h1:QHdzF2szwjqVV4wmByUnTcsbIg7UGaQ0tPF2t5GcAIs=
+github.com/go-chi/chi v1.5.4/go.mod h1:uaf8YgoFazUOkPBG7fxPftUylNumIev9awIWOENIuEg=
+github.com/go-playground/form v3.1.4+incompatible h1:lvKiHVxE2WvzDIoyMnWcjyiBxKt2+uFJyZcPYWsLnjI=
+github.com/go-playground/form v3.1.4+incompatible/go.mod h1:lhcKXfTuhRtIZCIKUeJ0b5F207aeQCPbZU09ScKjwWg=
+github.com/golang/mock v1.1.1 h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
+github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/goplaid/multipartestutils v0.0.3 h1:Un+a6XfVrn/hlYs9Y7wiwXMjfKw+cVdOmJYyy7GhuM8=
+github.com/goplaid/multipartestutils v0.0.3/go.mod h1:jic2wg6tSAdLgLMTs1N+9+KzRu+Bs85z1+lMvh/5NO8=
+github.com/goplaid/web v1.1.26 h1:g4sUw1FonD7G9gItgEQjYGh2bxEZNP816NKCd9mv2IA=
+github.com/goplaid/web v1.1.26/go.mod h1:wuOBZR8zr6OFD0V/CXtg8UCQXm6KvGEzn5euXs17gI0=
+github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
+github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
+github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
+github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0=
+github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
+github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
+github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
+github.com/jinzhu/now v1.1.4/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
+github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
+github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/lib/pq v1.10.3 h1:v9QZf2Sn6AmjXtQeFpdoq/eaNtYP6IN+7lcrygsIAtg=
+github.com/lib/pq v1.10.3/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
+github.com/mattn/go-sqlite3 v1.14.15 h1:vfoHhTN1af61xCRSWzFIWzx2YskyMTwHLrExkBOjvxI=
+github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
+github.com/microcosm-cc/bluemonday v1.0.16 h1:kHmAq2t7WPWLjiGvzKa5o3HzSfahUKiOq7fAPUiMNIc=
+github.com/microcosm-cc/bluemonday v1.0.16/go.mod h1:Z0r70sCuXHig8YpBzCc5eGHAap2K7e/u082ZUpDRRqM=
+github.com/ory/ladon v1.2.0 h1:efIVtNkObNR/HL7nR5y17Lrw9c/wMwe56iKVDcRv3GY=
+github.com/ory/ladon v1.2.0/go.mod h1:25bNc/Glx/8xCH7MbItDxjvviAmFQ+aYxb1V1SE5wlg=
+github.com/ory/pagination v0.0.1 h1:Zp+0n/UXSGYlJAMN0BuRjZhULsQRebGHfqByKtZXNYI=
+github.com/ory/pagination v0.0.1/go.mod h1:d1ToRROAUleriPhmb2dYbhANhhLwZ8s395m2yJCDFh8=
+github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
+github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw=
+github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/qor5/admin v0.0.0-20221109054144-8fb75a2a20a9 h1:7MGJkl/RjTmmTj+D9JgtkyEfj9DdJqG3Pn1T4+0LTJ4=
+github.com/qor5/admin v0.0.0-20221109054144-8fb75a2a20a9/go.mod h1:uymLUBdFzCae2QFwN+MW/4gnJDhKSqqhuID+fVkmkyY=
+github.com/qor5/ui v1.0.0 h1:9npS/FvnlR2j7Z8uGW69511oLbHad+LOLDNob7jJj2Y=
+github.com/qor5/ui v1.0.0/go.mod h1:bgBqjIytHRdfTsiZea8df/ltAcyQyuHiLbecgo8Iwgw=
+github.com/qor5/web v1.2.3 h1:OtyfFaHWTAPBz8aYvZL2/yiVf77HvlPwRkmBweKCiWs=
+github.com/qor5/web v1.2.3/go.mod h1:gwAoUC1cQ9y5Vm3zZmWTq9t1iLOrQH+sIvJUpG6V61w=
+github.com/qor5/x v1.2.0 h1:F/AYKtWjoAy6WIFSXUUwbJkZHFPoTezghCvENdZ23ls=
+github.com/qor5/x v1.2.0/go.mod h1:pqE7TSENrUKHlwzDSdaww0pk3E9X1ffoqAfCHzoZrJk=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/rs/xid v1.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY=
+github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
+github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
+github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
+github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
+github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
+github.com/shurcooL/github_flavored_markdown v0.0.0-20210228213109-c3a9aa474629 h1:86e54L0i3pH3dAIA8OxBbfLrVyhoGpnNk1iJCigAWYs=
+github.com/shurcooL/github_flavored_markdown v0.0.0-20210228213109-c3a9aa474629/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0=
+github.com/shurcooL/go v0.0.0-20200502201357-93f07166e636 h1:aSISeOcal5irEhJd1M+IrApc0PdcN7e7Aj4yuEnOrfQ=
+github.com/shurcooL/go-goon v0.0.0-20210110234559-7585751d9a17 h1:lRAUE0dIvigSSFAmaM2dfg7OH8T+a8zJ5smEh09a/GI=
+github.com/shurcooL/highlight_diff v0.0.0-20181222201841-111da2e7d480 h1:KaKXZldeYH73dpQL+Nr38j1r5BgpAYQjYvENOUpIZDQ=
+github.com/shurcooL/highlight_diff v0.0.0-20181222201841-111da2e7d480/go.mod h1:ZpfEhSmds4ytuByIcDnOLkTHGUI6KNqRNPDLHDk+mUU=
+github.com/shurcooL/highlight_go v0.0.0-20191220051317-782971ddf21b h1:rBIwpb5ggtqf0uZZY5BPs1sL7njUMM7I8qD2jiou70E=
+github.com/shurcooL/highlight_go v0.0.0-20191220051317-782971ddf21b/go.mod h1:UDKB5a1T23gOMUJrI+uSuH0VRDStOiUVSjBTRDVBVag=
+github.com/shurcooL/octicon v0.0.0-20191102190552-cbb32d6a785c h1:p3w+lTqXulfa3aDeycxmcLJDNxyUB89gf2/XqqK3eO0=
+github.com/shurcooL/octicon v0.0.0-20191102190552-cbb32d6a785c/go.mod h1:eWdoE5JD4R5UVWDucdOPg1g2fqQRq78IQa9zlOV1vpQ=
+github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
+github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
+github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d h1:yKm7XZV6j9Ev6lojP2XaIshpT4ymkqhMeSghO5Ps00E=
+github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE=
+github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e h1:qpG93cPwA5f7s/ZPBJnGOYQNK/vKsaDaseuKT5Asee8=
+github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/sunfmin/reflectutils v1.0.2/go.mod h1:ckN+r+oXS4OXFEVU+CCRuXBujUPCGlV86oCh/QsS3h4=
+github.com/sunfmin/reflectutils v1.0.3 h1:9crqUv4CdmvPDF4ymxG6sb6EVualibt9pYkTacrP1OM=
+github.com/sunfmin/reflectutils v1.0.3/go.mod h1:ckN+r+oXS4OXFEVU+CCRuXBujUPCGlV86oCh/QsS3h4=
+github.com/theplant/docgo v0.0.12 h1:6Zyd4Zk0hCeHkjcDcUtOabmIpyk9dy/uitPhqFkkgSY=
+github.com/theplant/docgo v0.0.12/go.mod h1:bhuce/CAR82WjqeMX3NMZjybiJa2hjj+3YTBAqX4DjY=
+github.com/theplant/htmlgo v1.0.3 h1:G7/YSf8OrOIRHVQ13avd78T/GV1kDl/jMwpQURrXB0o=
+github.com/theplant/htmlgo v1.0.3/go.mod h1:pCKSFJsoVNkyW+yN2i1Mst+8130NSQzIU7L2IbnuyKg=
+github.com/theplant/htmltestingutils v0.0.0-20190423050759-0e06de7b6967 h1:yPrgtU8bj7Q/XbXgjjmngZtOhsUufBAraruNwxv/eXM=
+github.com/theplant/htmltestingutils v0.0.0-20190423050759-0e06de7b6967/go.mod h1:86iN4EAYaQbx1VTW5uPslTIviRkYH8CzslMC//g+BgY=
+github.com/theplant/testingutils v0.0.0-20190603093022-26d8b4d95c61/go.mod h1:p22Q3Bg5ML+hdI3QSQkB/pZ2+CjfOnGugoQIoyE2Ub8=
+github.com/theplant/testingutils v0.0.0-20220314083015-b74d1aa8ac8a h1:dF00sJtP57ZEVpkR5Wu0dtpz9Iw94xO6XBHUwTJr0hQ=
+github.com/thoas/go-funk v0.9.2 h1:oKlNYv0AY5nyf9g+/GhMgS/UO2ces0QRdPKwkhY3VCk=
+github.com/thoas/go-funk v0.9.2/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q=
+github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4 h1:0sw0nJM544SpsihWx1bkXdYLQDlzRflMgFJQ4Yih9ts=
+github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4/go.mod h1:+ccdNT0xMY1dtc5XBxumbYfOUhmduiGudqaDgD2rVRE=
+github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
+go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
+go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
+go.uber.org/goleak v1.1.11-0.20210813005559-691160354723 h1:sHOAIxRGBp443oHZIPB+HsUGaksVCXVQENPxwTfQdH4=
+go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
+go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
+go.uber.org/multierr v1.7.0 h1:zaiO/rmgFjbmCXdSYJWQcdvOCsthmdaHfr3Gm2Kx4Ec=
+go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
+go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI=
+go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI=
+goji.io v2.0.2+incompatible h1:uIssv/elbKRLznFUy3Xj4+2Mz/qKhek/9aZQDUMae7c=
+goji.io v2.0.2+incompatible/go.mod h1:sbqFwrtqZACxLBTQcdgVjFh54yGVCvwq8+w49MVMMIk=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
+golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20210716203947-853a461950ff/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.1.0 h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0=
+golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
+golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=
+gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gorm.io/driver/sqlite v1.4.3 h1:HBBcZSDnWi5BW3B3rwvVTc510KGkBkexlOg0QrmLUuU=
+gorm.io/driver/sqlite v1.4.3/go.mod h1:0Aq3iPO+v9ZKbcdiz8gLWRw5VOPcBOPUQJFLq5e2ecI=
+gorm.io/gorm v1.24.0/go.mod h1:DVrVomtaYTbqs7gB/x2uVvqnXzv0nqjB396B8cG4dBA=
+gorm.io/gorm v1.24.1 h1:CgvzRniUdG67hBAzsxDGOAuq4Te1osVMYsa1eQbd4fs=
+gorm.io/gorm v1.24.1/go.mod h1:DVrVomtaYTbqs7gB/x2uVvqnXzv0nqjB396B8cG4dBA=

+ 0 - 82
menu.go

@@ -1,82 +0,0 @@
-package docs
-
-import (
-	"net/http"
-
-	"github.com/qor5/docs/content"
-	advanced_functions "github.com/qor5/docs/content/advanced-functions"
-	"github.com/qor5/docs/content/basics"
-	digging_deeper "github.com/qor5/docs/content/digging-deeper"
-	getting_started "github.com/qor5/docs/content/getting-started"
-	"github.com/qor5/docs/utils"
-	"github.com/theplant/docgo"
-)
-
-func DocMenu(prefix string) http.Handler {
-	return docgo.New().
-		SitePrefix(prefix).
-		Assets("/assets/", content.Assets).
-		MainPageTitle("QOR5 Document").
-		DocTree(
-			content.Home,
-			&docgo.DocsGroup{
-				Title: "Getting Started",
-				Docs: []*docgo.DocBuilder{
-					getting_started.OneMinuteQuickStart,
-				},
-			},
-			&docgo.DocsGroup{
-				Title: "Basics",
-				Docs: []*docgo.DocBuilder{
-					basics.Listing,
-					basics.Filter,
-					basics.EditingCustomizations,
-					basics.FormHandling,
-					basics.BasicInputs,
-					basics.AutoComplete,
-					basics.ShortCut,
-					basics.VariantSubForm,
-					basics.LinkageSelect,
-					basics.Permissions,
-					basics.NotificationCenter,
-				},
-			},
-
-			&docgo.DocsGroup{
-				Title: "Advanced Functions",
-				Docs: []*docgo.DocBuilder{
-					advanced_functions.PageFuncAndEventFunc,
-					advanced_functions.TheGoHTMLBuilder,
-					advanced_functions.ATasteOfUsingVuetifyInGo,
-					advanced_functions.ItsTheWholeHouse,
-					advanced_functions.NavigationDrawer,
-					advanced_functions.LazyPortalsAndReload,
-					advanced_functions.LayoutFunctionAndPageInjector,
-					advanced_functions.SwitchPagesWithPushState,
-					advanced_functions.ReloadPageWithAFlash,
-					advanced_functions.PartialRefreshWithPortal,
-					advanced_functions.ManipulatePageURLInEventFunc,
-					advanced_functions.SummaryOfEventResponse,
-					advanced_functions.WebScope,
-					advanced_functions.EventHandling,
-					advanced_functions.DetailPageForComplexObject,
-				},
-			},
-			&docgo.DocsGroup{
-				Title: "Digging Deeper",
-				Docs: []*docgo.DocBuilder{
-					digging_deeper.CompositeNewComponentWithGo,
-					digging_deeper.IntegrateAHeavyVueComponent,
-				},
-			},
-			&docgo.DocsGroup{
-				Title: "Appendix",
-				Docs: []*docgo.DocBuilder{
-					docgo.Doc(utils.ExamplesDoc()).
-						Title("All Demo Examples").
-						Slug("appendix/all-demo-examples"),
-				},
-			},
-		).
-		Build()
-}

+ 0 - 8
plantbuild/build.jsonnet

@@ -1,8 +0,0 @@
-local c = import 'dc.jsonnet';
-local dc = c {
-  dockerRegistry: 'gcr.io',
-};
-
-dc.build_apps_image('sunfmin/sunfmin', [
-  {name: 'qor5-docs', dockerfile: './docs/Dockerfile', context: '../'},
-])

Some files were not shown because too many files changed in this diff