
├── README.rst ├── docs ├── Makefile ├── _static │ └── fonts │ │ ├── Lato-BoldItalic.ttf │ │ └── Lato-Italic.ttf ├── about.rst ├── classes │ └── index.rst ├── conditionals │ └── index.rst ├── conf.py ├── functions │ ├── hello_world_typing.py │ └── index.rst ├── hello_world │ ├── REPL.png │ ├── REPL_open.png │ ├── REPL_state.png │ ├── hello_world_basic.py │ ├── hello_world_main.py │ ├── hello_world_minimum.py │ └── index.rst ├── index.rst ├── make.bat ├── packages │ └── index.rst ├── sequences │ └── index.rst ├── setup │ └── index.rst └── variables │ └── index.rst ├── kotlin_for_python.iml ├── requirements.txt ├── run_livereload.py └── src └── hello_world ├── hello_world.kt └── hello_world2.kt /README.rst: -------------------------------------------------------------------------------- 1 | Kotlin for Python 2 | ================= 3 | 4 | Documentation and tutorials for explaining Kotlin to Python developers. 5 | 6 | .. note:: 7 | 8 | This is not an official JetBrains project, just an experiment I was 9 | doing as a personal side project. 10 | 11 | - IntelliJ project 12 | 13 | - Docs in Sphinx 14 | 15 | - Live reload server during authoring via 16 | 17 | Installation 18 | ============ 19 | 20 | These docs are done in Sphinx, the Python documentation system. Content 21 | is under docs. 22 | 23 | 1) Make a virtual env, e.g. in ``.venv`` 24 | 25 | 2) ``.venv/bin/pip3 install -r requirements.txt`` 26 | 27 | Running 28 | ======= 29 | 30 | 1) ``.venv/bin/python ./run_livereload.py`` (or make a run config) 31 | 32 | 2) Edit docs 33 | 34 | 3) URL reloads 35 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line. 5 | SPHINXOPTS = 6 | SPHINXBUILD = python -msphinx 7 | SPHINXPROJ = KotlinforPythonDevelopers 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -------------------------------------------------------------------------------- /docs/_static/fonts/Lato-BoldItalic.ttf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |