Hi,
Each day I spend some time on the train and want to learn some Nim. :) For privacy reasons I keep my smartphone with Airplane mode ON when not strictly needed - so no internet. I installed Termux (kind of "Linux on a Smartphone") and in termux I installed Nim (of course).
What missing is: documentation. Since "no internet" online browsing is not an option. Is documentation for learning Nim (I am a Nimbie...a newbie when it comes to Nim) somewhere available as PDF ... I didn't find any ... ?
Cheers! Take1234
Oh! That's good news. The package installer of Gentoo Linux just states nothing after the installation was finished. I will check, where the docs has been stored. For unknown reasons to me, I thought the docs were online only. Don't know, what the impression was...may be an dangling pointer or so.... ;)
Any hint how to convert the html to pdf in a way that the "upside slim" format (16:9ish ?) is respected?
Cheers! Take1234
You can install devdocs.io as a Progressive Web App in your phone's browser.
I've tried it in firefox for Android, but chromium-based browsers should also work. It does work offline, just note that you should "enable" a documentation first and then download it from options.
Hi, Thanks to all for the input! :)
Just found a way to avoid generating pdfs and get a "good as possible" formatting of the pages...the screen of a smartphone is not a 4k monitor, hehehehe ;)
There two apps available on f-droid.org. Both are open source and you need not to create an account to download and install the apps. Easiest way to browse this "app store" is by downloading the droid-ify with a browser and install it. This is one of the f-droid clients. Then you need "FTP Sever (Free)" and "IWS" (which is a small and local webserver). Create a user name and password with the FTP server, start it and connect to your smartphone with ftp from the command line or with Putty. Upload the "doc" directory from the distribution to a folder of your liking on your phone. Stop the FTP Server (the is a notification, which can be user for that purpose. Start IWS and direct it to the directory of the "doc" folder, which contains the "index.html" file. The browser of IWS does not show files. The tap the "browser" button inside IWS and VOILA! :) There it is: The Nim doc in all its beauty formatted for the screen of your smartphone. Works on tablet also... :)
Have fun! Cheers! Take1234
Happy learning, Take1234!
for me choosenim installed it there:
/home/david/.choosenim/toolchains/nim-#devel/doc/html/
That's a cool way to learn Nim! Especially impressive considering you didn't have mobile internet. Leveraging the offline resources like the docs and standard library source code sounds really effective.
Nim's focus on readability and a clean syntax [1] probably made those resources easier to digest while on the train. Did you find the standard library source code to be well-written and helpful for learning the language?