menu.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. basics.Login,
  34. // permission
  35. basics.Permissions,
  36. basics.Role,
  37. // other basics
  38. basics.NotificationCenter,
  39. basics.ShortCut,
  40. basics.ConfirmDialog,
  41. basics.Slug,
  42. basics.SEO,
  43. basics.Activity,
  44. basics.Worker,
  45. },
  46. },
  47. &docgo.DocsGroup{
  48. Title: "Web Application",
  49. Docs: []*docgo.DocBuilder{
  50. advanced_functions.PageFuncAndEventFunc,
  51. advanced_functions.TheGoHTMLBuilder,
  52. advanced_functions.ItsTheWholeHouse,
  53. advanced_functions.LazyPortalsAndReload,
  54. advanced_functions.LayoutFunctionAndPageInjector,
  55. advanced_functions.SwitchPagesWithPushState,
  56. advanced_functions.ReloadPageWithAFlash,
  57. advanced_functions.PartialRefreshWithPortal,
  58. advanced_functions.ManipulatePageURLInEventFunc,
  59. advanced_functions.SummaryOfEventResponse,
  60. advanced_functions.WebScope,
  61. advanced_functions.EventHandling,
  62. basics.FormHandling,
  63. },
  64. },
  65. &docgo.DocsGroup{
  66. Title: "UI Components",
  67. Docs: []*docgo.DocBuilder{
  68. // TODO: move BasicInputs to ATasteOfUsingVuetifyInGo
  69. basics.BasicInputs,
  70. advanced_functions.ATasteOfUsingVuetifyInGo,
  71. // vuetifyx
  72. basics.LinkageSelect,
  73. basics.AutoComplete,
  74. // build ui component
  75. digging_deeper.CompositeNewComponentWithGo,
  76. digging_deeper.IntegrateAHeavyVueComponent,
  77. },
  78. },
  79. &docgo.DocsGroup{
  80. Title: "Appendix",
  81. Docs: []*docgo.DocBuilder{
  82. docgo.Doc(utils.ExamplesDoc()).
  83. Title("All Demo Examples").
  84. Slug("appendix/all-demo-examples"),
  85. },
  86. },
  87. }