DioxusLabs/docsite

The guide is displaying src/hackernews_post.rs instead of src/main.rs

Opened this issue · 1 comments

In the "Your First Component" section of the guide, it states:

You can clear the src/main.rs file. We will be adding new code in the next sections.

However, all the examples (including those on the following pages of the guide) indicate in the header of the code block that the user should edit src/hackernews_post.rs.

Should this not be displayed instead as src/main.rs?

That is a bit confusing. This occurs because the titles are auto-generated based on the file name in which the example resides. e.g. this code block was pulled from here, src/doc_examples/hackernews_post.rs

There might already be a way to rename them, but I'm not sure how.