{"id":20338193,"url":"https://github.com/billryan/docker-gitbook","last_synced_at":"2025-06-16T02:09:17.246Z","repository":{"id":143415973,"uuid":"47446794","full_name":"billryan/docker-gitbook","owner":"billryan","description":"Docker image for GitBook","archived":false,"fork":false,"pushed_at":"2017-07-21T03:37:56.000Z","size":13,"stargazers_count":73,"open_issues_count":2,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-04T14:33:35.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/billryan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-12-05T07:26:45.000Z","updated_at":"2024-03-04T05:19:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"469ea8da-9068-48dc-9398-d8eeceb68d8a","html_url":"https://github.com/billryan/docker-gitbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/billryan/docker-gitbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billryan%2Fdocker-gitbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billryan%2Fdocker-gitbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billryan%2Fdocker-gitbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billryan%2Fdocker-gitbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billryan","download_url":"https://codeload.github.com/billryan/docker-gitbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billryan%2Fdocker-gitbook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260083860,"owners_count":22956409,"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-11-14T21:12:00.615Z","updated_at":"2025-06-16T02:09:17.222Z","avatar_url":"https://github.com/billryan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-gitbook\n\nA Docker Container for [gitbook](https://github.com/GitbookIO/gitbook). Inspired by \n\n- [grahamc/docker-jekyll](https://github.com/grahamc/docker-jekyll)\n- [tobegit3hub/gitbook-server](https://github.com/tobegit3hub/gitbook-server)\n- [humangeo/gitbook-docker](https://github.com/humangeo/gitbook-docker)\n\nDocker Hub: \u003chttps://hub.docker.com/r/billryan/gitbook/\u003e\n\n## Usage\n\nRead the official [GitBook Toolchain Documentation](http://toolchain.gitbook.com/) documentation [GitbookIO/gitbook](https://github.com/GitbookIO/gitbook#how-to-use-it) first.\n\n```bash\n# init\ndocker run --rm -v \"$PWD:/gitbook\" -p 4000:4000 billryan/gitbook gitbook init\n# serve\ndocker run --rm -v \"$PWD:/gitbook\" -p 4000:4000 billryan/gitbook gitbook serve\n# build\ndocker run --rm -v \"$PWD:/gitbook\" -p 4000:4000 billryan/gitbook gitbook build\n```\n\nFor short, you can use alias for the long command line text. Place the alias statement in your `.bashrc` or `.zshrc`.\n\n```bash\nalias gitbook='docker run --rm -v \"$PWD\":/gitbook -p 4000:4000 billryan/gitbook gitbook'\n# init\ngitbook init\n# serve\ngitbook serve\n# build\ngitbook build\n# pdf output\ngitbook pdf .\n```\n\n### User Priviledge\n\nSince docker **can not** config uid and gid for shared volume properly(see [Issue #7198](https://github.com/docker/docker/issues/7198)), you can build it with your own uid and gid in the Dockerfile.\n\n## Features\n\nBuild **your favourite fonts** with GitBook(PDF, EPUB). Visit [billryan/gitbook/tags](https://hub.docker.com/r/billryan/gitbook/tags/) to see whether your favourite languages/fonts are listed here. You can also check the GitHub branch since the docker hub is automated-build from GitHub.\n\n## Contributing\n\nWanna nice fonts for your GitBook? Here we go!\n\n1. checkout a new branch named with your languages and fonts. The name of languages should follow the [List of ISO 639-2 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) and [rfc4646](http://www.ietf.org/rfc/rfc4646.txt), and the length of the name should as short as possible.\n```bash\ngit checkout -b new-branch master\n```\n2. Modify the following lines with your favourite fonts.\n```bash\n# install fonts\nRUN apt-get update \\\n        \u0026\u0026 apt-get install -y fonts-your-language\n```\n\n## License\n\n[The MIT License (MIT)](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillryan%2Fdocker-gitbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillryan%2Fdocker-gitbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillryan%2Fdocker-gitbook/lists"}