-
-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hexdocs indexing Gleam packages #3811
Comments
Hello there! What a cool initiative! It's not stable or a public interface, no. We could possibly start using that format. Is there documentation for it somewhere? To ensure we use it correctly. |
As far as I know there is no spec or documentation for it, but maybe we could add one (cc @josevalim) Here's what I think it could be (only covering the parts important for indexing):
|
To illustrate it a bit more, the differences from the current Gleam format (taking {
"doc": "lustre",
"title": "lustre",
"content": "# Lustre examples directory\n\nEach of the examples in this directory is a self-contained, complete Gleam app\nthat demonstrates a particular feature or concept of the library. For newcomers,\nwe recommend looking through them in order, as each example tends to build on\nthe previous ones. Feel free to jump in to any example that interests you, though!\n\n> **Note**: these examples all use [`lustre/ui`](https://github.com/lustre-labs/ui)\n> to show off something a little more visually interesting than unstyled HTML. None\n> of the ideas in these examples are specific to `lustre/ui`, though, and you should\n> know that you can follow along with any of these examples using only the standard\n> `lustre/element/html` module.\n\n## Examples\n\n- [`01-hello-world`](https://github.com/lustre-labs/lustre/tree/main/examples/01-hello-world)\n is a simple example to just get something on the screen.\n\n- [`02-interactivity`](https://github.com/lustre-labs/lustre/tree/main/examples/02-interactivity)\n introduces the core Model-View-Update loop that underpins every Lustre application.\n\n- [`03-controlled-inputs`](https://github.com/lustre-labs/lustre/tree/main/examples/03-controlled-inputs)\n demonstrates the most common way to handle `<input />` elements in Lustre.\n\n- [`04-custom-event-handlers`](https://github.com/lustre-labs/lustre/tree/main/examples/04-custom-event-handlers)\n shows you how to write your own event handlers and decoders, instead of relying\n on the ones provided by `lustre/event`.\n\n- [`05-http-requests`](https://github.com/lustre-labs/lustre/tree/main/examples/05-http-requests)\n demonstrates how side effects are handled in Lustre, using the third-party\n [`lustre_http`](https://hexdocs.pm/lustre_http/) package.\n\n- [`06-custom-effects`](https://github.com/lustre-labs/lustre/tree/main/examples/06-custom-effects)\n builds on the previous example and shows you how to write your own side effects\n for Lustre to perform.\n\n- [`07-routing`](https://github.com/lustre-labs/lustre/tree/main/examples/07-routing)\n shows how to use [`modem`](https://hexdocs.pm/modem/) to set up routing and\n navigating between pages in a Lustre app.\n\n## Getting help\n\nIf you're having trouble with Lustre or not sure what the right way to do\nsomething is, the best place to get help is the [Gleam Discord server](https://discord.gg/Fm8Pwmy).\nYou could also open an issue on the [Lustre GitHub repository](https://github.com/lustre-labs/lustre/issues).\n",
"url": "reference/examples.html"
}
|
Thank you. What would we use for What's |
I think it's OK to extend it and use whatever name is appropriate, it would just need to be internally consistent within
I think it's just whatever goes after the library name, e.g. |
Great. Let's adopt that format and rename that file to |
👋
We're working on adding global search to https://hexdocs.pm and we'd like to index Glean but there are some questions:
search_data.js
format stable?search_data
format?search_data
to ExDoc's formatRelevant discussion: hexpm/hexdocs#44 (comment)
The text was updated successfully, but these errors were encountered: