代码拉取完成,页面将自动刷新
同步操作将从 inhere/md-site-reader 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
一个非常简单的markdown文档站点阅读器小工具,自动拉取目录数据并生成目录侧边栏,自动根据文档生成TOC。 只需几步就可以将一个 github 上的 markdown 文档仓库渲染成一个文档站点
index.html
即可将此仓库代码拉取到你的服务器上使用,速度会比直接使用 github pages更好
你可以通过 config.js
来覆盖默认配置, 然后访问 index.html
即可
示例文档 https://inhere.github.io/md-site-reader/
示例渲染的是 @astaxie 的github项目 《Go web 编程》
index.html
config.js
// page title = baseTile + content title
config.baseTitle = 'Go Web 编程'
config.siteName = '《Go Web 编程》'
config.siteDes = 'Go Web 编程的描述信息'
config.siteKey = 'go-web-dev'
config.logoUrl = '/md-site-reader/'
config.docProject = 'astaxie/build-web-application-with-golang'
// // e.g https://raw.githubusercontent.com/{astaxie/build-web-application-with-golang}/master/{beanfactory.md}
config.dataUrl = 'https://raw.githubusercontent.com/astaxie/build-web-application-with-golang/master/zh/'
config.docUrl = 'https://github.com/astaxie/build-web-application-with-golang'
// // e.g https://github.com/astaxie/build-web-application-with-golang/edit/master/http.md
config.editUrl = 'https://github.com/astaxie/build-web-application-with-golang/edit/master'
config.project = 'inhere/md-site-reader'
config.projectUrl = 'https://github.com/inhere/md-site-reader'
config.issueUrl = 'https://github.com/astaxie/build-web-application-with-golang/issues'
config.authorPage = 'https://github.com/astaxie'
config.authorName = 'astaxie'
config.theme = 'paper'
config.codeTheme = 'github'
config.catelogPage = 'SUMMARY.md'
config.defaultPage = 'README.md'
config.makeTOC = true
config.emptyData = 'No content to display!'
请看站点 https://git-books.github.io/
github 仓库: https://github.com/git-books/git-books.github.io
收集了一些github上的书籍文档。
// file: assets/js/config.defalut.js
{
// use for cache prefix
siteKey: 'swoft',
siteName: 'Swoft',
siteDes: 'the description text',
// page title = baseTile + content title
baseTitle: 'Swoft Doc',
// basePath: ,
logoUrl: '/',
docProject: '',
// e.g https://raw.githubusercontent.com/{swoft-cloud/swoft-doc}/master/{beanfactory.md}
dataUrl: '',
docUrl: '',
// e.g https://github.com/swoft-cloud/swoft-doc/blob/master/http.md
editUrl: '',
project: '',
projectUrl: '',
issueUrl: '',
authorPage: '',
authorName: '',
emptyData: 'No content to display!',
catelogPage: 'SUMMARY.md',
defaultPage: 'README.md',
// assets/lib/bootswatch/{theme:paper}/bootstrap.min.css
theme: 'paper',
// assets/lib/highlight/styles/{codeTheme:github}.css
codeTheme: 'github',
makeTOC: true,
/* £ $ & β ξ ψ ℘ § */
anchorIcon: '℘',
tableClass: 'table table-bordered table-striped'
}
MIT
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。