docs.gno

1.85 Kb ยท 36 lines
 1package docs
 2
 3import "strings"
 4
 5func Render(_ string) string {
 6	content := `# Gno Examples Documentation
 7
 8Welcome to the Gno examples documentation index.
 9Explore various examples to learn more about Gno functionality and usage.
10
11## Examples
12
13- [Hello World](/r/docs/hello) - A simple introductory example.
14- [Adder](/r/docs/adder) - An interactive example to update a number with transactions.
15- [Source](/r/docs/source) - View realm source code.
16- [Buttons](/r/docs/buttons) - Add buttons to your realm's render.
17- [Optional Render](/r/docs/optional_render) - Render() is optional in realms.
18- [Routing for Render paths](/r/docs/routing) - Route Render paths with the ^p/demo/mux^ package.
19- [Embed images](/r/docs/img_embed) - Demonstrates how to embed an image in a realm render.
20- [Markdown](/r/docs/markdown) - Documentation for Gno Flavored Markdown syntax and features.
21- [Emitting Gno Events](/r/docs/events) - Emit Gno Events to make life off-chain easier.
22- [AVL Pager](/r/docs/avl_pager) - Paginate through AVL tree items.
23- [AVL Pager + Render paths](/r/docs/avl_pager_params) - Handle render arguments with pagination.
24- [Safe Objects](/r/docs/safeobjects) - A Gno-specific pattern allowing you to expose objects with admin privileges preserved.
25- [Calling non-primitive argument functions](/r/docs/complexargs) - Learn how to call functions that take in complex arguments.
26- [MiniSocial](/r/docs/minisocial) - Minimalistic social media app for learning purposes.
27- [Resolving usernames and addresses](/r/docs/use_rsysusers) - How to resolve usernames and addresses via the ^r/sys/users^ realm.
28- More coming soon!
29<!-- meta issue with suggestions: https://github.com/gnolang/gno/issues/3292 -->
30
31## Other resources
32
33- [Official documentation](https://docs.gno.land) <!-- should be /docs with gnoweb embedding the docs/ folder. -->
34`
35	return strings.ReplaceAll(content, "^", "`")
36}