{"id":23284216,"url":"https://github.com/agilecreativity/github_exporter","last_synced_at":"2025-06-12T14:09:11.636Z","repository":{"id":16778479,"uuid":"19536726","full_name":"agilecreativity/github_exporter","owner":"agilecreativity","description":"Export source code from Github repository as pdf file.","archived":false,"fork":false,"pushed_at":"2014-08-14T15:41:28.000Z","size":1269,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T15:15:10.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/agilecreativity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-07T14:02:20.000Z","updated_at":"2014-08-14T15:41:24.000Z","dependencies_parsed_at":"2022-08-04T11:00:35.720Z","dependency_job_id":null,"html_url":"https://github.com/agilecreativity/github_exporter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/agilecreativity/github_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fgithub_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fgithub_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fgithub_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fgithub_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agilecreativity","download_url":"https://codeload.github.com/agilecreativity/github_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fgithub_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259479617,"owners_count":22864363,"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":[],"created_at":"2024-12-20T01:38:44.181Z","updated_at":"2025-06-12T14:09:11.607Z","avatar_url":"https://github.com/agilecreativity.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## github_exporter\n\nDEPRECATED: please use [source2pdf][] or [source2epub][] for maximum awesome!!!\n\nExport/print content of a given github repository (or local project directory) to single pdf for quick review offline.\n\n## Requirements\n\n- Valid installation of [Ghostscript][] required by [pdfs2pdf][] gem\n- Valid installation of [Wkhtmltopdf][] required by [html2pdf][] gem\n- Valid installation of [Vim][] required by [vim_printer][] gem\n\n## Installation\n\n```\ngem install github_exporter\n```\n\n## Synopsis/Usage\n\n```shell\n\nUsage:\n\n  $github_exporter -e, --exts=EXT1 EXT2 EXT3 -u, --url=URL -theme=theme_name --output-name=output_file.pdf\n\nExample:\n\n  # Export the *.rb from the given repository\n\n  $github_exporter -e rb -u https://github.com/agilecreativity/github_exporter.git\n\n  # Export the *.rb and also 'Gemfile' from a 'github_exporter' directory\n  # Note: this directory must be directly below the current directory\n\n  $github_exporter -e rb -f Gemfile -u github_exporter\n\n  # Same as previous command with the 'solarized' instead of 'default' colorscheme\n  $github_exporter -e rb -f Gemfile -u filename_cleaner -t solarized\n\nOptions:\n\n  -u, --url=URL                   # The full url of the github project to be cloned OR local directory name\n\n  -e, --exts=EXT1 EXT2 EXT3 ..    # The list of extension names to be exported\n                                  # e.g. -e md rb java\n\n  -f, [--non-exts=one two three]  # The list of file without extension to be exported\n                                  # e.g. -f Gemfile LICENSE\n\n  -t, [--theme=theme_name]        # The theme/colorscheme to be used with vim_printer see :help :colorscheme from inside Vim\n                                  # default: 'default'\n                                  # e.g. -t solarized\n\n  -o, [--output-name=output.pdf]  # The output pdf filename (will default to 'repository_name'.pdf)\n                                  # e.g. -o repository_name.pdf\n\nExport a given Github project or a local project directory to a single pdf file\n\n```\n\n### Sample Usage:\n\n```shell\ngithub_exporter -u https://github.com/agilecreativity/github_exporter.git -e rb\n```\n\nShould result in something similar to this in the console\n\n```\ngit clone https://github.com/agilecreativity/github_exporter.git ./github_exporter\nFYI: list of extensions: [\"gemspec\", \"md\", \"pdf\", \"png\", \"rb\"]\nFYI: list of all files : [\"./lib/github_exporter.rb\", \"./lib/github_exporter/cli.rb\", \"./lib/github_exporter/exporter.rb\", \"./lib/github_exporter/github_exporter.rb\", \"./lib/github_exporter/logger.rb\", \"./lib/github_exporter/version.rb\", \"./test/lib/github_exporter/test_github_exporter.rb\", \"./test/test_helper.rb\"]\nYour input options for VimPrinter : [\"print\", \"--base-dir\", \"./github_exporter\", \"--exts\", [\"rb\"], \"--theme\", \"default\", \"--recursive\"]\nFYI: process file 1 of 8 : ./lib/github_exporter.rb\nFYI: process file 2 of 8 : ./lib/github_exporter/cli.rb\nFYI: process file 3 of 8 : ./lib/github_exporter/exporter.rb\nFYI: process file 4 of 8 : ./lib/github_exporter/github_exporter.rb\nFYI: process file 5 of 8 : ./lib/github_exporter/logger.rb\nFYI: process file 6 of 8 : ./lib/github_exporter/version.rb\nFYI: process file 7 of 8 : ./test/lib/github_exporter/test_github_exporter.rb\nFYI: process file 8 of 8 : ./test/test_helper.rb\nYour output file is './github_exporter/vim_printer_github_exporter.tar.gz'\nConvert file 1 of 9 : ./index.html\nConvert file 2 of 9 : ./lib/github_exporter.rb.xhtml\nConvert file 3 of 9 : ./lib/github_exporter/cli.rb.xhtml\nConvert file 4 of 9 : ./lib/github_exporter/exporter.rb.xhtml\nConvert file 5 of 9 : ./lib/github_exporter/github_exporter.rb.xhtml\nConvert file 6 of 9 : ./lib/github_exporter/logger.rb.xhtml\nConvert file 7 of 9 : ./lib/github_exporter/version.rb.xhtml\nConvert file 8 of 9 : ./test/lib/github_exporter/test_github_exporter.rb.xhtml\nConvert file 9 of 9 : ./test/test_helper.rb.xhtml\nConvert files to pdfs took 2.324978936 ms\nYour final output is './github_exporter_tmp/github_exporter/html2pdf_github_exporter.tar.gz'\nCreate pdfmarks took 0.027517634 ms\nCombine pdf files took 0.763918867 ms\nYour combined pdf is available at ./github_exporter_tmp/github_exporter/pdfs2pdf_github_exporter.pdf\nYour final output is ./github_exporter.pdf\n```\n\n### Sample Output\n\n#### Using the 'default' theme/colorscheme for Vim\n\n```shell\ngithub_exporter -u https://github.com/agilecreativity/github_exporter.git --exts rb\n```\n\nWhich generated the following [pdf output file](https://github.com/agilecreativity/github_exporter/raw/master/samples/github_exporter_default_colorscheme.pdf)\n\nThe example screenshot:\n\n![](https://github.com/agilecreativity/github_exporter/raw/master/samples/github_exporter_default_colorscheme.png)\n\n#### Use non-default colorscheme/theme for Vim\n\nUse [seoul256][] colorscheme\n\n```shell\ngithub_exporter -u https://github.com/agilecreativity/github_exporter.git --exts rb --theme seoul256\n```\n\nWhich generated the following [pdf output file](https://github.com/agilecreativity/github_exporter/raw/master/samples/github_exporter_seoul256_colorscheme.pdf)\n\nThe example screenshot:\n\n![](https://github.com/agilecreativity/github_exporter/raw/master/samples/github_exporter_seoul256_colorscheme.png)\n\n### Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n[thor]: https://github.com/erikhuda/thor\n[minitest]: https://github.com/seattlerb/minitest\n[yard]: https://github.com/lsegal/yard\n[pry]: https://github.com/pry/pry\n[rubocop]: https://github.com/bbatsov/rubocop\n[grit]: https://github.com/mojombo/grit\n[Ghostscript]: http://ghostscript.com/doc/current/Install.htm\n[Wkhtmltopdf]: https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF\n[Vim]: http://www.vim.org\n[vim_printer]: https://github.com/agilecreativity/vim_printer\n[pdfs2pdf]: https://github.com/agilecreativity/pdfs2pdf\n[html2pdf]: https://github.com/agilecreativity/html2pdf\n[monokai]: https://github.com/lsdr/monokai\n[seoul256]: https://github.com/junegunn/seoul256.vim\n[source2epub]: https://github.com/agilecreativity/source2epub\n[source2pdf]: https://github.com/agilecreativity/source2pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fgithub_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagilecreativity%2Fgithub_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fgithub_exporter/lists"}