-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
wails documentation proposals #125
Comments
Fantastic suggestions! We use vuepress for the docs so I'll have a look to see what template options there are. Or maybe you know of a better tool? |
one more thing, it would also be really helpful if in the #binding section of the the guide https://wails.app/reference/guide.html#binding wherever is applicable to have complementary plain javascript code samples along the respective go snippet examples. |
I have never used something myself so I have no suggestions, what I would like to use at some point is Hugo but seems overkill for just a menu essentially plus since you have already decided to use vuepress the functionality is already there, namely the left sidebar does exactly what we need, just needs a custom template and it's good. |
I'm very happy to move to Hugo and looked extensively for templates that were designed for technical documentation. I didn't find any good ones :-) Regarding the above, I can now comment on each point. A: If vuepress supports it, we can do it :-) The binding section will be updated as part of this ticket. The real takeaway from this comment is this: I accept PRs on the docs repo 😂 |
from a quick search yesterday I found this one to be potentially useful https://themes.gohugo.io//theme/hugo-book/docs/shortcodes/ layout for working on |
That looks good. Code with line numbers is essential too. |
Urgent Before extrapolating on my proposal these are my reference projects: Quickstart:
On wails website at the moment the quickstart section is like this:
I suggest to keep everything in this tab https://wails.app/quick_start.html#high-level-overview as part of an introduction and then proceed to prerequisites:
My suggestion here is to include an optional command in the instructions for users to run that checks both go and npm version to catch for exampe npm-less installs. ie. Wails uses cgo to bind to the native rendering engines so a number of platform dependent libraries are needed as well as an installation of Go. The basic requirements are:
Run then proceed to os dependencies prerequisites. My suggestion here is instead of having every dependency for every supported os one under the next, make a menu for user to choose their os.
suggestion 1 for example: Ensure Go modules are enabled: $ export GO111MODULE=on and go/bin is in your PATH variable: $ echo $PATH | grep go/bin suggestion 2
suggestion: maybe also briefly mention
suggestion: also include javascript equivalent for go code
suggestion: give the user 4 options - links
note about 1. a. will link to existing tutorials and guides and b. will link to https://wails.app/development/#tooling which I also suggest to get decoupled from https://wails.app/development/#development So to conclude my final proposal, the new quick start structure is: Quick Start
Non urgent |
in an attempt to clarify here is a proposal for a rearrangement of documentation that makes docs as a whole more neat/predictable (in the absolute positive sense).
|
I'm closing it as non-productive anymore? the latest pull in the documents addresses most of the proposals. |
A I am going through https://wails.app/reference/guide.html
and I find myself constantly scrolling up and down to understand where I am at.
It would be really helpful if the template changed a bit to introduce a right sidebar showing you where you at. This screen taken from android documentation as an example:
B Installation instructions (and maybe helloWorld?) should be part of the quickstart to follow the convention of most quickstart pages?
for example https://grpc.io/docs/quickstart/go/
C at the moment the guide explains wails around a vue project. maybe somehow generalise? (or include the rest of the default supported frontend frameworks? although this sounds like overkill it only needs to be done once and for people coming from vue, react etc will actually be really helpful, for the rest I am not so sure, so generalisation I believe is more apt.)
D maybe https://wails.app/reference/guide.html would be better if it brakes down to two different parts
E (bug) there is a navigation issue. from the https://wails.app/reference/ page when I click https://wails.app/reference/#guide instead of going to the guide as I would expect I am still on the same page at #guide tag. Then I have to click again to reach the actually guide, but also the left side menu collapses once I reach the page.
The text was updated successfully, but these errors were encountered: