{"id":20676504,"url":"https://github.com/ryosukedtomita/asciidoc_env","last_synced_at":"2026-05-29T12:01:58.042Z","repository":{"id":261587784,"uuid":"867216810","full_name":"RyosukeDTomita/asciidoc_env","owner":"RyosukeDTomita","description":"Build PlantUML with asciidoc and embedded PlantUML in gradle","archived":false,"fork":false,"pushed_at":"2025-05-29T09:19:09.000Z","size":95,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T10:34:57.346Z","etag":null,"topics":["asciidoc","asciidoctor-diagram","asciidoctor-gradle-plugin","devcontainers","docker","github-pages","plantuml"],"latest_commit_sha":null,"homepage":"https://ryosukedtomita.github.io/asciidoc_env/test.html","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RyosukeDTomita.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-03T16:47:00.000Z","updated_at":"2025-05-29T09:19:13.000Z","dependencies_parsed_at":"2025-01-17T14:51:04.166Z","dependency_job_id":"c19d26c5-f671-4133-97cd-84aab268be9f","html_url":"https://github.com/RyosukeDTomita/asciidoc_env","commit_stats":null,"previous_names":["ryosukedtomita/asciidoc_env"],"tags_count":0,"template":false,"template_full_name":"RyosukeDTomita/template_repository_all","purl":"pkg:github/RyosukeDTomita/asciidoc_env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Fasciidoc_env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Fasciidoc_env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Fasciidoc_env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Fasciidoc_env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyosukeDTomita","download_url":"https://codeload.github.com/RyosukeDTomita/asciidoc_env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2Fasciidoc_env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33650712,"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-29T02:00:06.066Z","response_time":107,"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":["asciidoc","asciidoctor-diagram","asciidoctor-gradle-plugin","devcontainers","docker","github-pages","plantuml"],"created_at":"2024-11-16T21:12:46.898Z","updated_at":"2026-05-29T12:01:57.995Z","avatar_url":"https://github.com/RyosukeDTomita.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asciidoc Edit Environment (Dev Contaienr)\n\n![un license](https://img.shields.io/github/license/RyosukeDTomita/asciidoc_env)\n\n## INDEX\n\n- [ABOUT](#about)\n- [ENVIRONMENT](#environment)\n- [PREPARING](#preparing)\n- [HOW TO USE](#how-to-use)\n- [ERROR LOG](#error-log)\n\n---\n\n## ABOUT\n\ntiny asciidoc sample.\n\nReference: [Asciidoctor Docs](https://docs.asciidoctor.org/)\n\n---\n\n## ENVIRONMENT\n\n### asciidoctor gradle plugin\n\nGradleでbuildすることでasciidoctorでビルドするよりもライブラリの管理や依存関係の設定が楽になる。\n\n- [asciidoctor-gradle-glugin guide](https://asciidoctor.github.io/asciidoctor-gradle-plugin/master)\n- [Official repository](https://github.com/asciidoctor/asciidoctor-gradle-plugin)\n\n\u003e [!NOTE]\n\u003e gradlew: 特定のversionのGradleを作るためのもの。今回の場合はDockerのgradle imageを使っているためGradleのversionは固定だが，GitHub Actionsで実行することを見据えて追加した。\n\u003e \n\u003e ```shell\n\u003e  # 作成\n\u003e  gradle wrapper\n\u003e  # 削除\n\u003e  rm gradlew\n\u003e  rm gradlew.bat\n\u003e  rm -rf gradle/wrapper/\n\u003e  ```\n\n### PlantUML\n\n- PlantUMLで図を生成するためにはlibXext.so.6が必要。Dockerfileにaptで追加している。\n- Asciidocに直接`.pu`ファイルを埋め込んでいる。\n  - [asciidoctor-diagram](https://docs.asciidoctor.org/gradle-plugin/latest/asciidoctor-diagram/)が必要(build.gradleに記載)\n\n### GitHub Pages\n\n作成したAsciiDocをgithubでホストする。\n例: https://ryosukedtomita.github.io/asciidoc_env/test.html\n\n#### 初期設定\n\n- [リポジトリの設定](https://github.com/RyosukeDTomita/asciidoc_env/settings/pages)からBuild and deploymentをGithub Actionsに変更\n- [リポジトリの環境変数設定](https://github.com/RyosukeDTomita/asciidoc_env/settings/environments/)からfeature/github-pagesを追加\n\n---\n\n## PREPARING\n\n1. install VSCode, Docker\n2. install VSCode Extensions `Dev Container`\n\n---\n\n## HOW TO USE\n\nhtml and svg (created with PlantUML) are stored under `build/`.\n\n### just build html\n\n```shell\ndocker buildx bake\ndocker compose up\n```\n\n### use asciidoc Dev Container\n\nOpen this repository and `Rebuild and Reopen in Container`\n\n```shell\n# create html\ngradle asciidoctor\n\n# delete html\ngradle clean\n```\n\n---\n\n## ERROR LOG\n\n### PlantUMLの日本語が重なる\n\nDev Containerに日本語フォントが入っていないのが原因。[素晴らしいQiita](https://qiita.com/yomon8/items/a3e016b7ffc3e4fbb7e5)\n\n### `JAVA_HOME`のPathがおかしい\n\ndotfiles等で普段使う~/.bashrcなどによって`JAVA_HOME`が上書きされているとgradleがうまく動かなくなる。\n以下で再設定する。\n\n```shell\nexport JAVA_HOME=/opt/java/openjdk\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryosukedtomita%2Fasciidoc_env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryosukedtomita%2Fasciidoc_env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryosukedtomita%2Fasciidoc_env/lists"}