{"id":13761537,"url":"https://github.com/OpenBookPublishers/epublius","last_synced_at":"2025-05-10T12:32:50.128Z","repository":{"id":65940850,"uuid":"61927592","full_name":"OpenBookPublishers/epublius","owner":"OpenBookPublishers","description":"Generates a stylised HTML site from an ePub book","archived":false,"fork":false,"pushed_at":"2024-07-24T09:48:53.000Z","size":594,"stargazers_count":28,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T13:06:51.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/OpenBookPublishers.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}},"created_at":"2016-06-25T04:53:35.000Z","updated_at":"2024-07-24T09:48:53.000Z","dependencies_parsed_at":"2024-01-15T03:59:21.574Z","dependency_job_id":"f8ac4993-08bd-46aa-872a-f6ae2266e63f","html_url":"https://github.com/OpenBookPublishers/epublius","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBookPublishers%2Fepublius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBookPublishers%2Fepublius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBookPublishers%2Fepublius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBookPublishers%2Fepublius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenBookPublishers","download_url":"https://codeload.github.com/OpenBookPublishers/epublius/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224962046,"owners_count":17399148,"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-08-03T13:01:59.267Z","updated_at":"2024-11-16T19:30:53.300Z","avatar_url":"https://github.com/OpenBookPublishers.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# epublius\n\nA tool to generate a standalone website from an EPUB.\n\n## Usage\n\nThe entry point is `.src/main.py`, which can be called with the following arguments:\n\n| Parameter | Description                                                               |\n|-----------|---------------------------------------------------------------------------|\n| `-b`      | URL of book's page                                                        |\n| `-t`      | TOC file                                                                  |\n| `-f`      | Frontpage file                                                            |\n| `-d`      | Directory prefix (of content, not prefix/suffix)                          |\n| `-o`      | Target directory                                                          |\n| `-h`      | File containing HTML to inject into header                                |\n| `-n`      | Title name                                                                |\n| `-c`      | A colophon file (e.g., the license). There may be  multiple -c parameters |\n| `-r`      | How much to resize the images (as percentage; default is 50).             |\n| `-u`      | URL path of this book                                                     |\n| `-k`      | Copyright file                                                            |\n| `-a`      | Donation link                                                             |\n| `-m`      | MathJax support                                                           |\n| `-p`      | Privacy policy URL                                                        |\n| `-w`      | Write chapter URLs to Thoth (True/False)                                  |\n\n\n## Thoth Wrapper (Optional)\n\n### Installation\n\nClone the repo and build the image with $ `docker build . -t openbookpublishers/epublius`.\n\n### Usage\n\n```bash\ndocker run --rm \\\n           -v /path/to/local.epub:/ebook_automation/epub_file.epub \\\n           -v /path/to/output:/ebook_automation/output \\\n           -e MATHJAX=False \\\n           -e PRIVACYPOLICY_URL=https://example.org \\\n           -e THOTH_EMAIL=email@example.com \\\n           -e THOTH_PWD=password \\\n           openbookpublishers/epublius \\\n\t   thoth_wrapper.py /ebook_automation/epub_file.epub \\\n                            --doi 10.11647/obp.0275\n```\n\nThe environment variable MATHJAX enables or disable MathJax support\nThe environment variables THOTH_EMAIL and THOTH_PWD allow use of the `--write-urls` option by providing Thoth credentials\n\n## Contributing\n\nPull requests are welcome.\n\n## License\n\n[GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenBookPublishers%2Fepublius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenBookPublishers%2Fepublius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenBookPublishers%2Fepublius/lists"}