{"id":13992859,"url":"https://github.com/0art0/lean-slides","last_synced_at":"2026-05-31T22:00:43.943Z","repository":{"id":184827477,"uuid":"672542813","full_name":"0art0/lean-slides","owner":"0art0","description":"A tool to auto-generate and render slides from Markdown comments in the Lean editor.","archived":false,"fork":false,"pushed_at":"2026-03-10T23:07:36.000Z","size":98,"stargazers_count":26,"open_issues_count":4,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-05-30T04:06:00.119Z","etag":null,"topics":["lean4","reveal-js"],"latest_commit_sha":null,"homepage":"","language":"Lean","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0art0.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-30T12:49:43.000Z","updated_at":"2026-05-27T20:27:05.000Z","dependencies_parsed_at":"2024-11-06T16:19:51.186Z","dependency_job_id":"8e261a57-a238-4dd9-8ddf-8e7d024e86e6","html_url":"https://github.com/0art0/lean-slides","commit_stats":null,"previous_names":["0art0/lean-slides"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0art0/lean-slides","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0art0%2Flean-slides","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0art0%2Flean-slides/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0art0%2Flean-slides/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0art0%2Flean-slides/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0art0","download_url":"https://codeload.github.com/0art0/lean-slides/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0art0%2Flean-slides/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33750474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lean4","reveal-js"],"created_at":"2024-08-09T14:02:09.581Z","updated_at":"2026-05-31T22:00:43.934Z","avatar_url":"https://github.com/0art0.png","language":"Lean","funding_links":[],"categories":["Lean"],"sub_categories":[],"readme":"# Lean Slides\n\n`Lean Slides` is a tool to \nautomatically generate `reveal.js` slides \nfrom Markdown comments in the Lean editor.\n\n![LeanSlides](https://github.com/0art0/lean-slides/assets/18333981/29029c7b-f586-45a1-b203-ffdc66a41049)\n\nSee `Demo.lean` for more details.\n\n# Dependencies\n\n`Lean Slides` works by combining together several tools:\n\n- [`reveal.js`](https://revealjs.com/) (no install required)\n\n- [`pandoc`](https://pandoc.org/) (commit \u003e= `7c6dbd3`)\n\n- [`node.js`](https://nodejs.org/en)\n\n- [`browser-sync`](https://browsersync.io/)\n\nNote that `LeanSlides` may have issues with older versions of `pandoc`.\nA manual intervention using\n```lean\n#set_pandoc_options \"-V\" \"revealjs-url=\\\"https://unpkg.com/reveal.js@^4/\\\"\"\n```\nmay fix the issues in such cases.\n\n# Usage\n\nTo use `Lean Slides`, first install all the dependencies listed above.\n\n`Lean Slides` can be added to an existing Lean repository\nby inserting the following lines in the `lakefile.toml` file:\n\n```toml\n[[require]]\nname = \"lean-slides\"\ngit = \"https://github.com/0art0/lean-slides.git\"\n```\n\nIf the repository uses a `lakefile.lean` instead, try:\n\n```lean\nrequire «lean-slides» from git \"https://github.com/0art0/lean-slides\"@\"master\"\n```\n\n---\n\nIn any file that imports `LeanSlides`, type\n\n```lean\n#slides +draft Test /-!\n  \u003cMarkdown text\u003e\n-/\n```\n\n**Run `lake run lean-slides/serve-slides` from the command line\nto start the HTTP server for the slides.**\n\nAny slides that are not in draft mode should now be rendered.\n\nThe port used by `Lean Slides` can be modified through\nan environment variable with the name `LEANSLIDES_PORT`.\n\n# Features\n\n`Lean Slides` turns comments written in the above format\ninto `reveal.js` slides which are rendered in the infoview\nas a [`Widget`](https://github.com/EdAyers/ProofWidgets4).\n\nThe tool also features a code action to \ngo in and out of draft mode.\n\nThe generated `reveal.js` slides\nrender mathematics by default\nusing `KaTeX`.\n\n## Custom styling\n\nTo enable custom CSS styling for the `reveal.js` presentation, insert a file named `style.css` in the `slides` folder (which is usually automatically generated in the home directory of your project by `Lean Slides`). A sample style sheet is shown below.\n\n```css\n.reveal h1,\n.reveal h2,\n.reveal h3,\n.reveal h4,\n.reveal h5,\n.reveal h6 {\n  text-transform: none;\n}\n\n.reveal code {\n  background-color: #5b5b5b;\n  padding: 0.1em 0.2em;\n  border-radius: 6px;\n}\n\n.reveal pre code {\n  background-color: #5b5b5b;\n  display: block;\n  padding: 1em;\n  border-radius: 6px;\n  overflow: auto;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0art0%2Flean-slides","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0art0%2Flean-slides","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0art0%2Flean-slides/lists"}