native-build-tools icon indicating copy to clipboard operation
native-build-tools copied to clipboard

Add Getting Started guide

Open dnestoro opened this issue 1 year ago • 8 comments

This PR adds a guide that shows how newcomers can start using Native Gradle Plugin

dnestoro avatar Sep 18 '24 13:09 dnestoro

I am extremely confused. We already have a getting started guide. It's even mentioned in the README and is published alongside the release: https://graalvm.github.io/native-build-tools/latest/gradle-plugin-quickstart.html

Why are we adding another one instead, if needed, to fix the other one?

melix avatar Oct 04 '24 08:10 melix

The getting started of this PR provides useful additional information, such an agent example with the conditional mode.

jeanbisutti avatar Oct 04 '24 09:10 jeanbisutti

But why creating a new guide? The old one should be fixed. Now we have 2, and this one is inconsistently published (.md file instead of generated, versioned docs).

melix avatar Oct 04 '24 09:10 melix

But why creating a new guide? The old one should be fixed. Now we have 2, and this one is inconsistently published (.md file instead of generated, versioned docs).

Agree

jeanbisutti avatar Oct 04 '24 09:10 jeanbisutti

This is a simplified guide where one comes and sees the exact steps they need to do to support a library.

What other guide do we have? I am aware of our docs, but I feel they are more of reference manual.

vjovanov avatar Oct 04 '24 15:10 vjovanov

What other guide do we have?

On the GitHub home page, we have:

image

This links to https://graalvm.github.io/native-build-tools/latest/gradle-plugin-quickstart.html

which is also crossed referenced from the reference documentation: https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html#quickstart

Both quickstart guide and reference docs are generated by asciidoctor: https://github.com/graalvm/native-build-tools/tree/db65d975c6e05ccd1f5d9f0bf7ddb163e7866691/docs/src/docs/asciidoc

melix avatar Oct 04 '24 15:10 melix

I think that we can fuse this guide with the existing one. Existing one misses few points explained in this guide (like agent modes, how to pass runtime/buildtime options, slightly more details about metadataCopy task, how to run tests in the CI...).

Another important point is accessibility of the guide. I think it should be one of the first items on the main docs page. At the moment it looks a bit hidden. cc @melix

dnestoro avatar Oct 07 '24 11:10 dnestoro

Yes, I think the main page deserves a revamp. Especially now that there are so many releases, having the changelog as the TOC doesn't quite make sense anymore.

melix avatar Oct 07 '24 11:10 melix

Changes included in: https://github.com/graalvm/native-build-tools/pull/645

dnestoro avatar Dec 09 '24 12:12 dnestoro