{"id":15893849,"url":"https://github.com/chinanf-boy/mdbook-nice-example","last_synced_at":"2026-03-18T17:44:38.684Z","repository":{"id":90548444,"uuid":"157485387","full_name":"chinanf-boy/mdbook-nice-example","owner":"chinanf-boy","description":"example:  已不更新 2022-1-1 \u003cmdbook v0.4.15\u003e","archived":false,"fork":false,"pushed_at":"2019-06-19T03:38:45.000Z","size":863,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T18:16:14.092Z","etag":null,"topics":["example","mdbook","zh"],"latest_commit_sha":null,"homepage":"https://chinanf-boy.github.io/mdbook-nice-example","language":"HTML","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/chinanf-boy.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":"2018-11-14T03:33:03.000Z","updated_at":"2022-07-27T08:20:15.000Z","dependencies_parsed_at":"2023-07-18T14:31:31.362Z","dependency_job_id":null,"html_url":"https://github.com/chinanf-boy/mdbook-nice-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chinanf-boy/mdbook-nice-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Fmdbook-nice-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Fmdbook-nice-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Fmdbook-nice-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Fmdbook-nice-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chinanf-boy","download_url":"https://codeload.github.com/chinanf-boy/mdbook-nice-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinanf-boy%2Fmdbook-nice-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29845589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"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":["example","mdbook","zh"],"created_at":"2024-10-06T08:13:54.671Z","updated_at":"2026-02-26T00:35:54.475Z","avatar_url":"https://github.com/chinanf-boy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## mdbook 好的 例子 (60%,亦可用)\n\n类(gitbooks)文档，专服务于Rust语言的md文档\n\n\u003e mdbook本身，还有很多小 bug，所以使用过程 **不要过于纠结**\n\n### 请安装mdbook\n\n```\ncargo install mdbook\n```\n\n\u003e 覆盖旧版本，需要`--force`\n\n更多[安装信息](https://github.com/chinanf-boy/mdBook-zh#%E5%AE%89%E8%A3%85)\n\n### 看看\n\n- 1. [web网站](https://chinanf-boy.github.io/mdbook-nice-example)\n\n- 2. Or `clone`\n\n```\ngit clone https://github.com/chinanf-boy/mdbook-nice-example.git\n```\n\n- 2.1 `cd` *, look html\n\n```\nmdbook serve --open\n```\n\n### book.toml + src/SUMMARY.md\n\n[book.toml]是配置，[src/SUMMARY.md](./src/SUMMARY.md)就是书的骨架\n\n\u003e 其实，本库就是一个模范示例, 直接clone魔改就好。当然你还能用`mdbook init --theme`拿到原始示例。\n\n### 模范?,有啥\n\n- [x] **1.** 加了个编辑按钮\n\n可通过，在`index.hbs`[修改成自己的源项目地址](./theme/index.hbs#L163)\n\n\u003cdetails\u003e\n\u003csummary\u003e例子\u003c/br\u003e\u003c/summary\u003e\n\n\u003e `src/index.hbs`\n\n``` hbs\ndocument.getElementById(\"edit-button\").addEventListener(\"click\", function(){\n    var editWindow = window.open(\"https://github.com/chinanf-boy/mdbook-nice-example/edit/master/src/{{ path }}\");\n});\n```\n\n`chinanf-boy/mdbook-nice-example` 改成你的 存储库，\n\n\u003c/details\u003e\n\u003c/br\u003e\n\n- [ ] **2.** `git_repository_url` 不成功\n\n``` toml\ngit_repository_url = \"https://github.com/chinanf-boy/mdbook-nice-example\"\ngit_repository_icon = \"fa-github\"\n```\n\n且，hbs模版是[有添加的](./theme/index.hbs#L128)，我想这就是bug吧\n\n- [x] anything，其他杂七杂八的都在[book.toml]\n\n\u003e **NOTE \u003e** Issue me , If you have question with this repo.\n\u003e But, about the bug of mdbook, please Link [that Source Page][mdbook]\n\n### 相关\n\n[book.toml]: book.toml\n\n\u003e mostly :bulb: come from [mdbook] / [rust-cookbook] themes\n\n[mdbook]: https://github.com/rust-lang-nursery/mdBook\n[rust-cookbook]: https://github.com/rust-lang-nursery/rust-cookbook\n\n- [mdbook 中文文档](https://github.com/chinanf-boy/mdbook-zh)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinanf-boy%2Fmdbook-nice-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinanf-boy%2Fmdbook-nice-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinanf-boy%2Fmdbook-nice-example/lists"}