{"id":16167408,"url":"https://github.com/twangodev/mkdocs-kotlin-playground","last_synced_at":"2026-05-10T03:53:45.964Z","repository":{"id":191492911,"uuid":"684771528","full_name":"twangodev/mkdocs-kotlin-playground","owner":"twangodev","description":"Provides support for using the Kotlin Playground with mkdocs-material","archived":false,"fork":false,"pushed_at":"2023-08-29T21:08:10.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T10:17:56.699Z","etag":null,"topics":["kotlin","kotlin-playground","mkdocs","mkdocs-material"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twangodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-29T20:26:48.000Z","updated_at":"2023-08-29T21:06:38.000Z","dependencies_parsed_at":"2023-08-30T06:10:00.242Z","dependency_job_id":null,"html_url":"https://github.com/twangodev/mkdocs-kotlin-playground","commit_stats":null,"previous_names":["twangodev/mkdocs-kotlin-playground"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twangodev%2Fmkdocs-kotlin-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twangodev%2Fmkdocs-kotlin-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twangodev%2Fmkdocs-kotlin-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twangodev%2Fmkdocs-kotlin-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twangodev","download_url":"https://codeload.github.com/twangodev/mkdocs-kotlin-playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601483,"owners_count":20964864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kotlin","kotlin-playground","mkdocs","mkdocs-material"],"created_at":"2024-10-10T03:07:58.285Z","updated_at":"2026-05-10T03:53:45.929Z","avatar_url":"https://github.com/twangodev.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mkdocs-kotlin-playground\nReplaces fenced kotlin code blocks with an themed and interactive Kotlin Playground.\n\n## Usage\nFirst, copy `kotlin.js` and `kotlin.css` into the respective `javascripts` and `stylesheets` directories in your mkdocs project.\n\n\u003e Note: The `javascripts` and `stylesheets` directories should be in your `./docs/` directory.\n\nNext add the following to your `mkdocs.yml`:\n```yaml\nextra_javascript:\n  - javascripts/kotlin.js\n  - https://unpkg.com/kotlin-playground@1\n  \nextra_css:\n    - stylesheets/kotlin.css\n```\n\nThis plugin activates the Kotlin Playground for all fenced code blocks with the language `kotlin`.\n\n## Extra Features\n\n### Kotlin Playground Options\n#### `//sampleStart` and `//sampleEnd`\nYou can use `//sampleStart` and `//sampleEnd` to specify a range of lines to be shown in the Kotlin Playground. This is useful if you want to show a small snippet of code in the documentation, but want to allow users to edit the entire file.\n\nFor example, to show the contents of the `main` function in the Kotlin Playground:\n```kotlin\nfun myHiddenFunction() {\n    println(\"mystery\")\n}\n\nfun main() {\n//sampleStart\n    println(\"Hello World!\")\n    myHiddenFunction()\n//sampleEnd\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwangodev%2Fmkdocs-kotlin-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwangodev%2Fmkdocs-kotlin-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwangodev%2Fmkdocs-kotlin-playground/lists"}