golang-design / under-the-hood

📚 Go: Under The Hood | Go 语言原本 | https://golang.design/under-the-hood

Home Page:https://golang.design/under-the-hood

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

增加网站支持

changkun opened this issue · comments

动机

直接在 GitHub 上阅读存在诸多不便:

  1. 不利于内容查找
  2. 不利于快速索引
  3. 不利于被搜索引擎检索

等等

需求说明

考虑使用 Hugo 将本书托管到 changkun.de/golang 或者 changkun.de/go-src 下

  • 网站建设
  • 将现有的 md 文件适配文件头或者编写统一处理的脚本
  • 使用 github action 进行部署

从当前组织结构自动化生成网站的脚本需要考虑的问题:

  1. 使用 Hugo Theme:https://github.com/alex-shpak/hugo-book/tree/master
  2. 将所有 readme.md 自动替换为 _index.md
  3. 过滤掉所有目录、许可相关内容:
[返回目录](../../../readme.md) | [阅读本章](./basic.md)

## 许可

[Go under the hood](https://github.com/changkun/go-under-the-hood) | CC-BY-NC-ND 4.0 & MIT © [changkun](https://changkun.de)
  1. 将所有的 .md 过滤掉用以支持链接跳转

This feature is accomplished in fd16e9d, close.