menu.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package docsrc
  2. import (
  3. "github.com/qor5/docs/docsrc/content"
  4. advanced_functions "github.com/qor5/docs/docsrc/content/advanced-functions"
  5. "github.com/qor5/docs/docsrc/content/basics"
  6. digging_deeper "github.com/qor5/docs/docsrc/content/digging-deeper"
  7. getting_started "github.com/qor5/docs/docsrc/content/getting-started"
  8. "github.com/qor5/docs/docsrc/utils"
  9. "github.com/theplant/docgo"
  10. )
  11. var DocTree = []interface{}{
  12. content.Home,
  13. &docgo.DocsGroup{
  14. Title: "Getting Started",
  15. Docs: []*docgo.DocBuilder{
  16. getting_started.OneMinuteQuickStart,
  17. },
  18. },
  19. &docgo.DocsGroup{
  20. Title: "Building Admin",
  21. Docs: []*docgo.DocBuilder{
  22. // listing
  23. basics.Listing,
  24. basics.Filter,
  25. // editing
  26. basics.EditingCustomizations,
  27. // brand
  28. basics.Brand,
  29. // menu
  30. basics.ManageMenu,
  31. advanced_functions.DetailPageForComplexObject,
  32. basics.Layout,
  33. // permission
  34. basics.Permissions,
  35. basics.Role,
  36. // other basics
  37. basics.NotificationCenter,
  38. basics.ShortCut,
  39. basics.ConfirmDialog,
  40. basics.Slug,
  41. basics.SEO,
  42. basics.Activity,
  43. basics.Worker,
  44. },
  45. },
  46. &docgo.DocsGroup{
  47. Title: "Web Application",
  48. Docs: []*docgo.DocBuilder{
  49. advanced_functions.PageFuncAndEventFunc,
  50. advanced_functions.TheGoHTMLBuilder,
  51. advanced_functions.ItsTheWholeHouse,
  52. advanced_functions.LazyPortalsAndReload,
  53. advanced_functions.LayoutFunctionAndPageInjector,
  54. advanced_functions.SwitchPagesWithPushState,
  55. advanced_functions.ReloadPageWithAFlash,
  56. advanced_functions.PartialRefreshWithPortal,
  57. advanced_functions.ManipulatePageURLInEventFunc,
  58. advanced_functions.SummaryOfEventResponse,
  59. advanced_functions.WebScope,
  60. advanced_functions.EventHandling,
  61. basics.FormHandling,
  62. },
  63. },
  64. &docgo.DocsGroup{
  65. Title: "UI Components",
  66. Docs: []*docgo.DocBuilder{
  67. // TODO: move BasicInputs to ATasteOfUsingVuetifyInGo
  68. basics.BasicInputs,
  69. advanced_functions.ATasteOfUsingVuetifyInGo,
  70. // vuetifyx
  71. basics.LinkageSelect,
  72. basics.AutoComplete,
  73. // build ui component
  74. digging_deeper.CompositeNewComponentWithGo,
  75. digging_deeper.IntegrateAHeavyVueComponent,
  76. },
  77. },
  78. &docgo.DocsGroup{
  79. Title: "Appendix",
  80. Docs: []*docgo.DocBuilder{
  81. docgo.Doc(utils.ExamplesDoc()).
  82. Title("All Demo Examples").
  83. Slug("appendix/all-demo-examples"),
  84. },
  85. },
  86. }