更新为 version 2.0 配置文件格式,书籍目录添加 Separator 支持,解析器部分跟进更新

- 支持了新的 bookshelf 以及其中的 config/link/book 解析
- 支持了新的 page/chapter/separator 以及 root_book 的解析
- 暂不支持 book.xml 根配置的解析
- 添加了为 Separator 设置的 css 样式
4.0
A.C.Sukazyo Eyre 2023-02-26 16:12:34 +08:00
parent 6728eb57a4
commit 66bd98484d
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
1 changed files with 43 additions and 31 deletions

View File

@ -1,7 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<BookShelf siteName="Workshop Documentations">
<?xml version="1.0" encoding="UTF-8"?>
<BookShelf
xmlns="https://book.sukazyo.cc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
https://book.sukazyo.cc
https://book.sukazyo.cc/assets/xsd/bookshelf.xsd"
version="2.0"
>
<site_name>Workshop Documentations</site_name>
<configurations>
<old.title.gen />
<!-- <old.title.gen></old.title.gen>-->
<highlightjs>true</highlightjs>
<highlightjs.languages />
<!-- <highlightjs.theme>base16/atelier-lakeside-light</highlightjs.theme>-->
@ -13,38 +24,39 @@
<regex.highlight>true</regex.highlight>
<listing.marker.rainbow>true</listing.marker.rainbow>
<title.permalink.flash>false</title.permalink.flash>
<site.robots><![CDATA[allow]]></site.robots>
<!-- <web-title.rolling></web-title.rolling>-->
<site.robots>allow</site.robots>
</configurations>
<links>
<Link name="工房主站 /(500 Currently)" href="https://sukazyo.cc" />
<Link name="Github Orginazation" href="https://github.com/suk-ws" />
<Collection name="一些别的特殊链接">
<Link name="Sukazyo Github(保留了部分未迁移项目和非工房(纯个人)项目)" href="https://github.com/Eyre-S" />
<Link name="【广告】友情加盟 - Sukazyo 的占卜室" href="https://urara.sukazyo.cc/" />
<Link href="https://sukazyo.cc">工房主站 /(500 Currently</Link>
<Link href="https://github.com/suk-ws">Github Organization</Link>
<Collection>
<caption>一些别的特殊链接</caption>
<Link href="https://github.com/Eyre-S">Sukazyo Github(保留了部分未迁移项目和非工房(纯个人)项目)</Link>
<Link href="https://urara.sukazyo.cc/">【广告】友情加盟 - Sukazyo 的占卜室</Link>
</Collection>
</links>
<books>
<!-- <Collection name="程序项目">
<Book id="srv" name="Workshop Services 文档" />
<Collection name="iCee Series">
<Book id="icee" name="iCee 核心文档" />
<Book id="icee-module-dev" name="iCee 模块开发手册" />
</Collection>
<Book id="res-tools" name="ResourceTools 文档" />
</Collection>
<Collection name="自研协议">
<Book id="hytrans" name=".htrans Hyper Translation File" />
</Collection> -->
<Book id="morny" name="Morny Cono 的说明书" />
<Book id="ph-bookshelf" name="ph-Bookshelf Wiki" />
<Book id="morny">Morny Cono 的说明书</Book>
<Book id="ph-bookshelf">ph-Bookshelf Wiki</Book>
</books>
<rootBook id="%root" name="Workshop Documentations">
<Page id="main" name="book.sukazyo.cc:: Rebuild In Progress" />
<Chapter name="__test_collection__">
<Page id="test-collection/enhanced-frontend/test-regex-highlight" name="RegEx 着色" />
<Page id="test-collection/language-parsing/rest" name="ReST Parser" />
<Page id="test-collection/language-parsing/tex" name="LaTeX Parser" />
<Page id="test-collection/enhanced-frontend/rolling-title" name="滚动标题栏" web-title.rolling="true" />
<root_book>
<!-- <book_name>Workshop Documentations</book_name>-->
<Page id="main">book.sukazyo.cc:: Rebuild In Progress</Page>
<Separator/>
<Chapter root="test-collection">
<caption><![CDATA[<i>__test_collection</i>]]></caption>
<Page id="enhanced-frontend/test-regex-highlight">RegEX 着色</Page>
<Page id="language-parsing/rest">ReST Parser</Page>
<Page id="language-parsing/tex">LaTeX Parser</Page>
<Page id="enhanced-frontend/rolling-title">滚动标题栏</Page>
</Chapter>
</rootBook>
</root_book>
</BookShelf>