{"id":28931550,"url":"https://github.com/netmarkjp/dockerfile-mkdocs-wkhtmltopdf","last_synced_at":"2026-02-03T10:31:28.584Z","repository":{"id":52312321,"uuid":"179059896","full_name":"netmarkjp/dockerfile-mkdocs-wkhtmltopdf","owner":"netmarkjp","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T03:15:53.000Z","size":49,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-22T16:06:50.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/netmarkjp.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}},"created_at":"2019-04-02T11:06:33.000Z","updated_at":"2019-12-20T08:42:41.000Z","dependencies_parsed_at":"2023-01-24T07:15:15.809Z","dependency_job_id":null,"html_url":"https://github.com/netmarkjp/dockerfile-mkdocs-wkhtmltopdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/netmarkjp/dockerfile-mkdocs-wkhtmltopdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netmarkjp","download_url":"https://codeload.github.com/netmarkjp/dockerfile-mkdocs-wkhtmltopdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29041302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-06-22T16:06:28.879Z","updated_at":"2026-02-03T10:31:28.578Z","avatar_url":"https://github.com/netmarkjp.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dockerfile-mkdocs-wkhtmltopdf\n\n# Pre requirements\n\nin mkdocs.yml\n\n```yaml\nextra_javascript:\n  - extra.js\nextra_css:\n  - extra.css\n```\n\nin src/extra.js\n\n```javascript\nwindow.addEventListener('load', function(){window.status=\"ready\"});\n```\n\nin src/extra.css\n\n```css\nbody {\n    font-family: \"Noto Sans\", \"Noto Sans CJK JP\", sans-serif;\n}\n```\n\nExample: When compact style is suitable.\n\n```css\n@import url(//fonts.googleapis.com/earlyaccess/notosansjapanese.css);\nbody {\n    font-family: \"Noto Sans Japanese\", \"Noto Sans CJK JP\", \"Noto Sans\", sans-serif;\n}\np {\n    font-size: small;\n    text-indent: 1em;\n}\n.md-typeset p {\n    font-size: small;\n    margin-top: 0.25em;\n    margin-bottom: 0em;\n}\n.md-typeset ol li, .md-typeset ul li {\n    font-size: small;\n    margin-bottom: 0.25em;\n    line-height: 1.25em;\n}\n```\n\n# Usage\n\n## serve\n\n```bash\ndocker run --rm -p 8000:8000 -v $(pwd):/mnt --name mkdocs-serve netmarkjp/mkdocs-wkhtmltopdf mkdocs serve\n```\n\n## build html and pdf\n\n```bash\ndocker run --rm -v $(pwd):/mnt netmarkjp/mkdocs-wkhtmltopdf\n```\n\n=\u003e `draft-html.zip` `draft.pdf` will generate.\n\n# in GitLab CI\n\nexample of .gitlab-ci.yml is below.\n\n```yaml\nstages:\n  - release\nrelease:\n  stage: release\n  tags:\n    - docker\n  image: netmarkjp/mkdocs-wkhtmltopdf:latest\n  script:\n    - ./build.sh\n  artifacts:\n    paths:\n      - draft.pdf\n      - draft-html.zip\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetmarkjp%2Fdockerfile-mkdocs-wkhtmltopdf/lists"}