menu.go 2.3 KB

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