repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

commit
6f1d226
parent
9ea5759
author
Eric Bower
date
2024-02-16 15:29:20 +0000 UTC
docs: sitemap links
1 files changed,  +60, -0
M docs/main.go
+60, -0
  1@@ -22,60 +22,111 @@ func main() {
  2 			Href: "/getting-started",
  3 			Page: pager("getting-started.md"),
  4 			Tag:  "Info",
  5+			Children: []*pdocs.Sitemap {
  6+				pdocs.AnchorTagSitemap("Design Philosophy"),
  7+				pdocs.AnchorTagSitemap("The Simplest Example"),
  8+				pdocs.AnchorTagSitemap("Effection"),
  9+			},
 10 		},
 11 		{
 12 			Text: "Thunks",
 13 			Href: "/thunks",
 14 			Page: pager("thunks.md"),
 15 			Tag:  "Side Effects",
 16+			Children: []*pdocs.Sitemap {
 17+				pdocs.AnchorTagSitemap("Thunk Action"),
 18+				pdocs.AnchorTagSitemap("Thunk Payload"),
 19+				pdocs.AnchorTagSitemap("Custom ctx"),
 20+			},
 21 		},
 22 		{
 23 			Text: "Endpoints",
 24 			Href: "/endpoints",
 25 			Page: pager("endpoints.md"),
 26 			Tag:  "Side Effects",
 27+			Children: []*pdocs.Sitemap {
 28+				pdocs.AnchorTagSitemap("Enforcing fetch response type"),
 29+				pdocs.AnchorTagSitemap("The same API endpoints but different logic"),
 30+			},
 31 		},
 32 		{
 33 			Text: "Store",
 34 			Href: "/store",
 35 			Page: pager("store.md"),
 36 			Tag:  "Store",
 37+			Children: []*pdocs.Sitemap {
 38+				pdocs.AnchorTagSitemap("How to update state"),
 39+				pdocs.AnchorTagSitemap("Updating state from view"),
 40+			},
 41 		},
 42 		{
 43 			Text: "React",
 44 			Href: "/react",
 45 			Page: pager("react.md"),
 46 			Tag:  "View",
 47+			Children: []*pdocs.Sitemap {
 48+				pdocs.AnchorTagSitemap("useSelector"),
 49+				pdocs.AnchorTagSitemap("useLoader"),
 50+				pdocs.AnchorTagSitemap("useApi"),
 51+				pdocs.AnchorTagSitemap("useQuery"),
 52+				pdocs.AnchorTagSitemap("useCache"),
 53+				pdocs.AnchorTagSitemap("useLoaderSuccess"),
 54+			},
 55 		},
 56 		{
 57 			Text: "Schema",
 58 			Href: "/schema",
 59 			Page: pager("schema.md"),
 60 			Tag:  "Store",
 61+			Children: []*pdocs.Sitemap {
 62+				pdocs.AnchorTagSitemap("Schema Assumptions"),
 63+				pdocs.AnchorTagSitemap("any"),
 64+				pdocs.AnchorTagSitemap("str"),
 65+				pdocs.AnchorTagSitemap("num"),
 66+				pdocs.AnchorTagSitemap("obj"),
 67+				pdocs.AnchorTagSitemap("table"),
 68+				pdocs.AnchorTagSitemap("loader"),
 69+				pdocs.AnchorTagSitemap("Build your own slice"),
 70+			},
 71 		},
 72 		{
 73 			Text: "Caching",
 74 			Href: "/caching",
 75 			Page: pager("caching.md"),
 76 			Tag:  "Store",
 77+			Children: []*pdocs.Sitemap {
 78+				pdocs.AnchorTagSitemap("Manual"),
 79+				pdocs.AnchorTagSitemap("Automatic"),
 80+			},
 81 		},
 82 		{
 83 			Text: "Dependent Queries",
 84 			Href: "/dependent-queries",
 85 			Page: pager("dependent.md"),
 86 			Tag:  "Side Effects",
 87+			Children: []*pdocs.Sitemap {
 88+				pdocs.AnchorTagSitemap("Dispatch the thunk as an action"),
 89+				pdocs.AnchorTagSitemap("Call the middleware stack directly"),
 90+			},
 91 		},
 92 		{
 93 			Text: "Middleware",
 94 			Href: "/middleware",
 95 			Page: pager("mdw.md"),
 96 			Tag:  "Side Effects",
 97+			Children: []*pdocs.Sitemap {
 98+				pdocs.AnchorTagSitemap("Context"),
 99+			},
100 		},
101 		{
102 			Text: "Loaders",
103 			Href: "/loaders",
104 			Page: pager("loader.md"),
105 			Tag:  "Side Effects",
106+			Children: []*pdocs.Sitemap {
107+				pdocs.AnchorTagSitemap("Usage"),
108+				pdocs.AnchorTagSitemap("Shape"),
109+			},
110 		},
111 		{
112 			Text: "Structured Concurrency",
113@@ -88,6 +139,10 @@ func main() {
114 			Href: "/supervisors",
115 			Page: pager("supervisors.md"),
116 			Tag:  "Advanced",
117+			Children: []*pdocs.Sitemap {
118+				pdocs.AnchorTagSitemap("poll"),
119+				pdocs.AnchorTagSitemap("timer"),
120+			},
121 		},
122 		{
123 			Text: "Testing",
124@@ -106,6 +161,11 @@ func main() {
125 			Href: "/resources",
126 			Page: pager("resources.md"),
127 			Tag:  "Info",
128+			Children: []*pdocs.Sitemap {
129+				pdocs.AnchorTagSitemap("Quick Links"),
130+				pdocs.AnchorTagSitemap("Talk"),
131+				pdocs.AnchorTagSitemap("Other Notable Libraries"),
132+			},
133 		},
134 	}
135