1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2025-02-24 15:10:51 +08:00
Commit Graph

12 Commits

Author SHA1 Message Date
0329392dd6
fix resource in "/" and mime-type problem 2023-05-19 23:09:25 +08:00
b4badd5fb0
fix file read out of website root 2023-04-04 21:08:08 +08:00
175b1ad04a
add support for prism plugins customize import 2023-03-28 11:32:42 +08:00
5824548b40
change code highlight to Prismjs 2023-03-27 19:13:09 +08:00
867695b1a2
add 302 with additional '/' on a book main page. 2023-03-27 16:26:35 +08:00
f79060f32f
add support for md front matter & open page unlisted
- support page config define in front matter
  - support `title`, which can set HTML title.
    - if `title` is not set, then HTML title will try find page title defined in book.xml
	- if `title` is set but <h1> title not set, it will generated a <h1> title using the value of `title`
  - support `configurations` which can set page level configs here.
- now can open page that has .md file but not defined in book.xml (must in a book defined)
- old.title.gen is not supported yet.
2023-03-25 20:11:10 +08:00
2a72004b7b
add support for book.xml config version 2.0 2023-02-26 22:23:45 +08:00
05f91605c7
add support for highlightjs lang-plugins, bug fixes.
- fix problem that image width is sometimes bigger than 100%
- fix codeblock background config doesn't work
- added codeblock.fg-color config (fix cannot change codeblock text color)
- changes the config name -- make it shorter
2023-01-29 10:41:50 +08:00
0c83a11a23
使项目 composer/psr-4 标准化,清理代码 2023-01-24 20:30:27 +08:00
57915682ee
添加旧标题策略兼容。添加 书架/书目/页面 三级配置读取,为一些兼容化和个性化添加配置标签。
为旧的标题策略做出兼容:
当这个功能开启时,如果输出检测到markdown内没有填入一级标题,则会自动以 book.xml 中声明的页面标题生成一级标题。

添加的配置:
- 旧的页面标题策略兼容 : 默认 false,可选 true
- 代码块背景色 : 默认跟随样式表fallback,可填任意 css 支持颜色
- 代码块 highlight.js 高亮 : 默认 true,可选 false
- highlight.js 主题 : 默认 atom-one-dark,可填任意字符串(但是没有对应主题会无法使用
- 彩虹列表标记效果 : 默认 false,可选 true
2021-11-24 14:24:19 +08:00
6a5b4937c9
完成了请求链接解析和当前 book 的目录生成
- 基础的请求链接解析实现
  - 当前链接解析将第一个参数(首目录)视为 bookId,剩余视为 pageId
    - 即不支持 bookId中包含“/”
  - 同时实现了 books 的 active 判定
- 实现了通过 ID 进行查询容器中的 Book 或者 Page 的功能
- 实现了通过 Book对象 获取对应的 BookContented 对象
- 实现了 BookContented 的目录表生成
  - 同时也有 active 判定
2021-04-26 22:02:22 +08:00
fa218dc2b0
添加了站点和当前页面数据管理的静态对象,添加了基础的(真·)页头页脚(HTML限定款)模板 2021-03-23 00:51:45 +08:00