Searching sixtyfps documentation through rustdoc #762
Replies: 3 comments 2 replies
-
That’s a very good set of questions! You’re not missing anything fundamental. I usually have a tab with the markdown files open, but I’d love a better searchable and better integrated experience. A separate site makes a fair bit of sense actually. I wonder what a good format and doc tool would be that would still allow the integration like we currently have, in parallel? |
Beta Was this translation helpful? Give feedback.
-
We could also try to generate fake structs or functions for each elements so it become an actual item for rustdoc. |
Beta Was this translation helpful? Give feedback.
-
tldr:i created this simple example to showcase one simple fast solution: .md as documentation workflow ?i think a simple text based solution like md files for documentation is still a nice thing to have because it is very accessible. so if you want to stay with it, i propose a relative simple solution to this. my "requirements" for a solution
My solution:Use sphinx with the myst-parser extension to enable md file parsing. sphinx is a documentation generator or a tool that translates a set of plain text source files into various output formats. The output of sphinx than can get used locally, get pushed to an documentation provider like in the example on github.io or something more sophisticated with build and version-control for docu like readthedocs or simply get pushed on an docs.sixtyfps.io webroot or similar. HowTo:Prerequest for locally building the docu:
Onetime tasks:
repeatable task on md changes:
Whats next ?This is now a super bare bone version( still much more useful than the current state :) ) but working. So one could start tweaking the rst file (sphinx-getting-started) or just stay in the .md domain and leverage the power of the myst-parser. We now have an relative straightforward solution but missing a good way of versioning. This is not a problem for the build in each version of the repo but rather a problem if we just bare bone host the generated html like in the github.io example. Like in all steps there are several different possibility to get it done. One way is using https://docs.readthedocs.io/en/stable/tutorial/. With some small modifications to the docu git structure we can build an more automated process like trigger docu builds from pull request etc and receive an versioned docu similar to the rustdoc. What do you think ? |
Beta Was this translation helpful? Give feedback.
-
My default behavior as a new user to sixtyfps is to search through the rustdoc. If i want to find for example information about "VerticalLayout" the search result will be empty. (As a new user i find it irritating that i cant search keywords like that releated to the .60 documenation)
I understand that this is a limitation of rustdoc, because the documentation is essentially loaded as an md file and can not be indexed when the documentation is compiled.
Should there be a hint for other new users that the search function does not provide results for .60 documentation ?
Since i am not able to search through rustdoc my current workflow for searching boils down to the following:
Using an searchengine the top result often is not the current version of the documentation and the search is more susceptible to random noise i am not looking for.
Manually navigation through the docs folder is possible, but as the documentation grows it will be more and more less feasible and slow.
Using TextSearch (e.g. VScode CTRL + SHIFT + F )is a possibility and with a better editor configuration on my part could work but destroys the "out of box" experience.
So my question to you:
Beta Was this translation helpful? Give feedback.
All reactions