| Number of watchers on Github | 496 |
| Number of open issues | 18 |
| Main language | JavaScript |
| Average time to merge a PR | 1 day |
| Open pull requests | 44+ |
| Closed pull requests | 82+ |
| Last commit | over 1 year ago |
| Repo Created | over 5 years ago |
| Repo Last Updated | over 1 year ago |
| Size | 71 MB |
| Homepage | http://kotlinlang... |
| Organization / Author | jetbrains |
| Contributors | 141 |
| Page Updated | 2018-03-20 |
| Do you use kotlin-web-site? Leave a review! | |
| View open issues (18) | |
| View kotlin-web-site activity | |
| View on github | |
| Fresh, new opensource launches 🚀🚀🚀 | |
|
Trendy new open source projects in your inbox!
View examples
|
|
This is the source for the http://kotlinlang.org.
yarn install..env.sample and rename it to .env.
Change variables values if needed.docker-compose up. It will build all stuff and create site on localhost:5000.docker-compose up website will run only site at localhost:5000.yarn start will run webpack-dev-server on localhost:9000.
This address should be used for development. All pages from origin server will be proxied.All data is stored in the *.yml files in folder _data:
content property is used to create categories.
It contains a list of videos or other categories. Maximum tree depth level is 3.Kotlinlang uses Jinja2 templates that can be found in templates folder. Note that all Markdown files are processed as Jinja templates before being converted to HTML. This allows you to use all Jinja power inside Markdown (for example, build urls with url_for function).
Every page can have an unlimited number of metadata fields. More information here.
The most important of them are the page template (e.g. layout: reference) and its type (e.g. type: tutorial). category and title fields are added for future development.
The Kotlin grammar reference (grammar.xml) is generated by the Kotlin grammar generator from the Kotlin grammar definition.
kramdown with some additions (like GitHub fenced code blocks) is used as Markdown parser. See the complete syntax reference at the kramdown site.
With kramdown you can assign HTML attributes to page elements via {:%param%}. E.g.:
*important text*{:.important} - produces <em class="important">important text</em>
*important text*{:#id} - produces <em id="id">important text</em>
For block elements this instruction must be specified on the line following element definition:
This is a paragraph
{:.important}
This is a paragraph
More information about attributes can be found here.
{:.keyword} highlights a keyword.{:.error} highlights an error.{:.warning} highlights a warning.{:.wide} stretches a table to occupy the entire width of a page.{:.zebra} interleaves table rows.E.g.:
| Expression | Translated to |
|------------|---------------|
| `a++` | `a.inc()` + see below |
| `a--` | `a.dec()` + see below |
{:.wide.zebra}
They're used in a slightly other manner that they were originally designed for: as universal block container elements.
{:.note} highlights a note block.E.g.:
> **`inc()/dec()` shouldn't mutate the receiver object**.
>
> By "changing the receiver" we mean `the receiver-variable`, not the receiver object.
{:.note}
We use YouTrack for bug reports and suggestions. Click here to report an issue.