Improving the contributing to SDK guide
The guide for external developers to contribute to our SDK is crucial. I acts as a starting point for any new developer who actively starts contributing to our SDK. The guide has listed out all the necessary categories well. There are only a few knit-picked suggestions I would like to make in order to make it better. Since I'm still relatively new to our repo, I thought I'll share my thoughts on this ticket. I would love to hear what rest of the team thinks about this.
As a fresh contributor to the mapbox SDK here's what comes to my mind. Let's deliberate over it, and once we finalize a list of improvements I can take charge of making the necessary changes to it when we are ready.
Here are a few thoughts on how we can make it better:
-
In the "Contributing Code" section
- let's start out with a line of gratitude to appreciate the contributors for their ideas. It'll help establish a positive feeling for their work. Something simple like "We appreciate you taking the time to contribute to our SDK. Please follow the guideline below to help you make the best contributions to this repo"
-
Requirements and installation details.
- Is there a reason why we chose Xamarin Studio vs Visual Studio for Mac? https://www.visualstudio.com/vs/visual-studio-mac/
-
Updating the Mapbox SDK core section
- Under the list of "GIT submodule dependencies" Is that a comprehensive list of all the submodules that a contributor would care about?
- For updating the Core/Plugins folder, can we please include an example link to show an example File transfer executable ?
-
Generating documentation:
- Can we share any little information we already have to help contributors put down their documentation somewhere? If not, we can do this later when we have our documentation figured out.
- Would it make sense for us to have a Mapbox Unity Wiki page similar to the the Unity wiki OR the ETC wiki?
Here's a guide to help us to create good Github documentation:
A couple of examples of well documented github projects. Please share any other examples that you might find inspiring (For the second example I am attaching a PDF, because you need to subscribe to the UE4 Github repo to view the flex integration for ue4 project)
https://github.com/janl/mustache.js/ https://www.dropbox.com/s/52b2bguooy7dbwm/PhysX.pdf?dl=0
@david-rhodes @isiyu @MiroMuse What are your thoughts on this? Shall we put this in as a task for the next Sprint?
let's start out with a line of gratitude to appreciate the contributors for their ideas. It'll help establish a positive feeling for their work.
👍
Is there a reason why we chose Xamarin Studio vs Visual Studio for Mac?
irrc it related to xamarin studio being what mono develop evolved into and to have consistency between windows/osx (Visual Studio for mac wasn't around last year when we were making this decision) cc @BergWerkGIS
the recommendation is for what the Mapbox Unity team uses to stay consistent, contributors should be able to use the IDE of their choice as long as they follow the style guide.
Under the list of "GIT submodule dependencies" Is that a comprehensive list of all the submodules that a contributor would care about?
I believe Mapbox.Json isn't a submodule decency, it's source that gets copied over by the install script. And Mapbox.IO.Compression won't be a submodule dependency either with @BergWerkGIS 's latest post
cc @david-rhodes to check my accuracy here
For updating the Core/Plugins folder, can we please include an example link to show an example File transfer executable ?
Do you mean linking to these files? ( 👍 ) https://github.com/mapbox/mapbox-unity-sdk/blob/develop/update-mapbox-unity-sdk-core.sh https://github.com/mapbox/mapbox-unity-sdk/blob/develop/update-mapbox-unity-sdk-core.bat
Generating documentation:
we currently use docfx for generated docs, mostly our generated api level documentation that exists in line in the code. This we can add more information to. https://dotnet.github.io/docfx/
For contributing "narrative" or more written documentation, we'll need to fold that into this page https://www.mapbox.com/unity-sdk/
Is there a reason why we chose Xamarin Studio vs Visual Studio for Mac?
It was already around at that time, but had just been released. We could add it as an additional software that works.
Under the list of "GIT submodule dependencies" Is that a comprehensive list of all the submodules that a contributor would care about?
The idea of /dependencies/ folder was to make it obvious to users of the Unity SDK which parts are developed within this repo and which parts are being pulled in from other repos as those are modules living on their own.
Generating documentation:
Docs can be generated executing these scripts from the root of the repo:
- Windows:
scripts\build-docs.bat - *nix/OSX:
./scripts/build-docs.sh
Great feedback @apavani!
Is there a reason why we chose Xamarin Studio vs Visual Studio for Mac?
I could be wrong, but it looks like VS for Mac is just a re-skin of Xamarin (since MS acquired them a few years ago). Anyway, either are acceptable.
I believe Mapbox.Json isn't a submodule decency, it's source that gets copied over by the install script. And Mapbox.IO.Compression won't be a submodule dependency either with @BergWerkGIS 's latest post
Correct. Current submodules are vector-tile-cs and compression (but compression will be changed to dll soon as well).
Thanks Adarsh, great feedback as you ramp up; and great proxy for any other developer becoming familiar with our offerings.
let's start out with a line of gratitude to appreciate
Absolutely.
Is there a reason why we chose Xamarin Studio vs Visual Studio for Mac?
Yes we should acknowledge both. FWIW, the latest Unity Udemy course has you use Visual Studio for Mac (whereas they had you use Mono in an older version of the course). New Unity users on Mac might weigh towards Visual Studio.
Here's a guide to help us to create good Github documentation
I'll loop you into the documentation convo with @jellena.
cc @morgane