{"id":18513254,"url":"https://github.com/tsuyukimakoto/biisan","last_synced_at":"2026-03-10T07:31:46.308Z","repository":{"id":10729200,"uuid":"66190601","full_name":"tsuyukimakoto/biisan","owner":"tsuyukimakoto","description":"Static site generator using docutils.","archived":false,"fork":false,"pushed_at":"2026-02-18T13:28:35.000Z","size":255,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T17:44:11.095Z","etag":null,"topics":["docutils","jinja2","python","python3","restructuredtext","static-site-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tsuyukimakoto.png","metadata":{"files":{"readme":"README.ja.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,"zenodo":null}},"created_at":"2016-08-21T09:20:54.000Z","updated_at":"2026-02-18T13:28:39.000Z","dependencies_parsed_at":"2024-03-23T04:32:59.646Z","dependency_job_id":"cff8d273-4fcb-40fe-bc56-b1719e42ff2f","html_url":"https://github.com/tsuyukimakoto/biisan","commit_stats":{"total_commits":203,"total_committers":5,"mean_commits":40.6,"dds":0.3497536945812808,"last_synced_commit":"531adcf866b36c2ee9370390cb9500538d970d2c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tsuyukimakoto/biisan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsuyukimakoto%2Fbiisan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsuyukimakoto%2Fbiisan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsuyukimakoto%2Fbiisan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsuyukimakoto%2Fbiisan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsuyukimakoto","download_url":"https://codeload.github.com/tsuyukimakoto/biisan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsuyukimakoto%2Fbiisan/sbom","scorecard":{"id":901238,"data":{"date":"2025-08-11","repo":{"name":"github.com/tsuyukimakoto/biisan","commit":"510e153d0a71fb70ff65a25390c050dd23d52252"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":3,"reason":"Found 5/15 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tsuyukimakoto/biisan/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tsuyukimakoto/biisan/ci.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:21","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:22","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T15:39:28.208Z","repository_id":10729200,"created_at":"2025-08-24T15:39:28.209Z","updated_at":"2025-08-24T15:39:28.209Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["docutils","jinja2","python","python3","restructuredtext","static-site-generator"],"created_at":"2024-11-06T15:37:08.468Z","updated_at":"2026-03-10T07:31:46.280Z","avatar_url":"https://github.com/tsuyukimakoto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# biisan\n\nbiisan（ビーサン）は、[reStructuredText](http://docutils.sourceforge.net/rst.html)で文書を記述できるスタティックサイトジェネレーターです。\n\n## 特徴 Feature\n\n- reStructuredTextの構造をオブジェクトの構造に変換し、reStructuredTextの[ディレクティブ](http://docutils.sourceforge.net/docs/user/rst/cheatsheet.txt)ごとにjinja2のテンプレートでhtmlに出力します\n- biisanで対応しているディレクティブに関してはデフォルトのテンプレートが付属しますが、設定で探索先を設定すると利用するテンプレートを差し替えられます\n- ディレクティブからオブジェクトへの変換プロセッサーも設定で任意のプロセッサーを差し替えられます\n- 対応していないディレクティブの処理も差し替えと同様の仕組みで対応可能です\n- 新しいディレクティブの定義も容易です\n- reStructuredTextの構造をオブジェクトへ変換する処理はmultiprocessingで並行して行われます\n\n## クイックスタート\n\n### インストール\n\npipでインストールできます。同時に依存するライブラリーもインストールされますので、綺麗に消せるようにしておきたい場合には venv を用いて仮想環境を作ってインストールすると良いかもしれません。\n\n```\n$ pip install biisan\n```\n\n### イニシャライズ\n\nbiisanの基本構造と、設定ファイルを生成します。実行したフォルダ直下に `biisan_data` というフォルダができます。\n\n`ブログタイトル`、 `ベースとなるURL`、 `言語コード` を聞かれるので答えます。あとから設定ファイルで変更可能です。\n\n```\n$ python -m biisan.main\n? What's your blog title  ブログタイトル\n? input your blog base url. like https://www.tsuyukimakoto.com  http:localhost\n? input your blog language like ja  ja\n\n        Always set environment variable BIISAN_SETTINGS_MODULE to biisan_local_settings like bellow.\n\n        $ export BIISAN_SETTINGS_MODULE=biisan_local_settings\n\n```\n\n最後にbiisanを使うときに必ず必要な環境変数について出力されます。biisanを利用する際には必ず必要な環境変数です。\n\n[glueplate](https://pypi.org/project/glueplate/) という設定フレームワークの設定です。\n\n### 最初のエントリー\n\n生成されたフォルダの中身を確認してみましょう。\n\n```\n$ cd biisan_data\n$ tree\n.\n├── data\n│   ├── biisan_local_settings.py\n│   ├── blog\n│   ├── extra\n│   │   └── about.rst\n│   └── templates\n└── out\n```\n\n`biisan_data`フォルダの中に`data`と`out`という2つのフォルダがあります。\n\n- data\n\n    - biisan_local_settings.py\n\n        設定ファイル。[大元の設定ファイル](https://github.com/tsuyukimakoto/biisan/blob/master/biisan/biisan_settings.py)の設定に追加したり上書きしたりしています。\n\n    - blog\n\n        この中にreStructuredTextのファイルを置きます。整理しやすいようにフォルダを作ると良いでしょう。blogフォルダの中のフォルダ構成は出力されるURLのpathとは関係ありません。\n\n    - extra\n\n        日付ベースのエントリーとは別のページを作りたい場合にファイルを置きます。aboutは標準で置かれて設定されています。\n        新しく追加した場合には設定ファイル(data/biisan_local_settings.py)にGLUE_PLATE_PLUS_BEFORE_extraという定義を追加します。\n\n        たとえば imusing.rst というファイルを置いた場合には `data/biisan_local_settings.py` に `GLUE_PLATE_PLUS_BEFORE_extra` を次のように定義します。\n\n        ```\n        #省略\n\n        settings = _(\n            # 省略\n            multiprocess = 8,\n            GLUE_PLATE_PLUS_BEFORE_extra = [\n                'imusing',\n            ],\n        )\n        ```\n\n        これはglueplateの仕組みで、[大元の設定ファイル](https://github.com/tsuyukimakoto/biisan/blob/master/biisan/biisan_settings.py)にある `extra` という設定の前に ['imusing',] を追加するという指定です。\n\n        [実際の設定](https://github.com/tsuyukimakoto/tsuyukimakoto.com/blob/master/data/biisan_local_settings.py#L19) も参照してみてください。\n\n    - templates\n\n        上書きしたいテンプレートを置きます。 GLUE_PLATE_PLUS_BEFORE_extra と同様に設定ファイルに `GLUE_PLATE_PLUS_BEFORE_template_dirs` が定義されているため、まずこのフォルダからテンプレートファイルを探し始めます。\n\n- out\n\n    このフォルダにhtmlが静的に出力されます。\n\n### 今度こそ最初のエントリ\n\n`data/blog`の中にmy_first_entry.rstというファイルで以下のように保存してみましょう。ファイル名は拡張子が .rst であればその前はなんでも構いません。\n\n```\n最初のエントリです\n=========================================================\n\n:slug: my_first_biisan_entry\n:date: 2019-05-05 13:00\n:author: あなたの名前\n\nこんにちは！世界！\n```\n\n### ビルドする\n\n操作は `data` ディレクトリの中で行います（biisan_data/dataの中）。\n\n```\n$ python -m biisan.generate\n```\n\nもし、以下のようなエラーが出た場合には、イニシャライズした際に表示された環境変数を設定していないためです。\n\n```\nTraceback (most recent call last):\n（省略）\nKeyError: 'BIISAN_SETTINGS_MODULE'\n```\n\n環境変数を設定していない場合には設定をし直して再度コマンドを実行してみましょう。\n\n```\n$ export BIISAN_SETTINGS_MODULE=biisan_local_settings\n$ python -m biisan.generate\n```\n\nもし、以下のようなエラーが出た場合には、コマンドを実行しているフォルダが間違っています。 `biisan_data/data` の中で実行しましょう。\n\n```\nTraceback (most recent call last):\n（省略）\nModuleNotFoundError: No module named 'biisan_local_settings'\n```\n\nうまくいくと次のように出力されますので、ブラウザで開いてみましょう。\n\n```\n$ python -m biisan.generate\nBIISAN 0.3.0\nINFO:__main__:Write:（省略）/biisan_data/out/blog/2019/05/05/my_first_biisan_entry/index.html\nINFO:__main__:Write:（省略）/biisan_data/out/about/index.html\n```\n\nエントリーに記載した `date` と `slug` でURLが構成されます。この時点ではdataフォルダとoutフォルダは以下のようになります。\n\n```\n.\n├── data\n│   ├── __pycache__\n│   │   └── biisan_local_settings.cpython-37.pyc\n│   ├── biisan_local_settings.py\n│   ├── blog\n│   │   └── my_first_entry.rst\n│   ├── extra\n│   │   └── about.rst\n│   └── templates\n└── out\n    ├── about\n    │   └── index.html\n    ├── api\n    │   ├── feed\n    │   │   └── index.xml\n    │   └── google_sitemaps\n    │       └── index.xml\n    ├── blog\n    │   ├── 2019\n    │   │   └── 05\n    │   │       ├── 05\n    │   │       │   └── my_first_biisan_entry\n    │   │       │       └── index.html\n    │   │       └── index.html\n    │   └── index.html\n    └── index.html\n```\n\nファイル名はindex.htmlですが、Webサーバーのディレクトリーインデックスの指定で省略できることを想定しています。\n\n例えば `https://www.tsuyukimakoto.com/about/` のように、ファイル名を省略した場合にindex.htmlが返るように設定してください。\n\nエントリーのパスはエントリーのrstファイルに記述した `slug` と `date` を元に作成されます。\n\n```\n:slug: my_first_biisan_entry\n:date: 2019-05-05 13:00\n```\n\n## テンプレート\n\nディレクティブごとにテンプレートが用意されています。スタイルなどを変更したい場合にはテンプレートをtemplatesフォルダに置きます。\n\n[デフォルトのテンプレート](https://github.com/tsuyukimakoto/biisan/tree/master/biisan/templates) と [実際のプロジェクトのテンプレート](https://github.com/tsuyukimakoto/tsuyukimakoto.com/tree/master/data/templates) がどうなっているか参照してみてください。\n\n## デプロイ\n\noutの中身を適切なサーバへ配備しましょう。ディレクトリーインデックスの指定を忘れずに。\n\n## 追加のdocinfo\n\n:slug: などと同様に、任意の（ただし、Storyクラスのアトリビュートと重複しないもの）docinfoを追加できます。\n\n例えば、 **:og_image: https\\://www.tsuyukimakoto.com/example.png** とした場合、テンプレート上で次のように使われることを想定しています。\n\n{% if element.has_additional_meta(\"og_image\") %}\nlet's output {{ element.og_image }}\n{% endif %}\n\ndocinfoの区切り文字が : (コロン) であるため、:は **\\\\** でエスケープします。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsuyukimakoto%2Fbiisan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsuyukimakoto%2Fbiisan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsuyukimakoto%2Fbiisan/lists"}