mirror of
https://github.com/suk-ws/ph-Bookshelf.git
synced 2025-02-24 15:10:51 +08:00
- 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.
38 lines
1.8 KiB
XML
38 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xs:schema
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
targetNamespace="https://book.sukazyo.cc"
|
|
xmlns="https://book.sukazyo.cc"
|
|
elementFormDefault="qualified"
|
|
>
|
|
|
|
<xs:complexType name="phb-config-level-site">
|
|
<xs:all>
|
|
<xs:element minOccurs="0" name="highlightjs" type="xs:boolean" />
|
|
<xs:element minOccurs="0" name="highlightjs.languages" type="xs:string" />
|
|
<xs:element minOccurs="0" name="highlightjs.theme" type="xs:string" />
|
|
<xs:element minOccurs="0" name="codeblock.bg-color" type="xs:string" />
|
|
<xs:element minOccurs="0" name="codeblock.fg-color" type="xs:string" />
|
|
<xs:element minOccurs="0" name="codeblock.tab-size" type="xs:integer" />
|
|
<xs:element minOccurs="0" name="regex.highlight" type="xs:boolean" />
|
|
<xs:element minOccurs="0" name="listing.marker.rainbow" type="xs:boolean" />
|
|
<xs:element minOccurs="0" name="title.permalink.flash" type="xs:boolean" />
|
|
<xs:element minOccurs="0" name="web-title.rolling" type="xs:boolean" />
|
|
<xs:element minOccurs="0" name="site.robots" type="xs:string" />
|
|
</xs:all>
|
|
</xs:complexType>
|
|
|
|
<xs:attributeGroup name="phb-config-level-page">
|
|
<xs:attribute name="highlightjs" type="xs:boolean" />
|
|
<xs:attribute name="highlightjs.languages" type="xs:string" />
|
|
<xs:attribute name="highlightjs.theme" type="xs:string" />
|
|
<xs:attribute name="codeblock.bg-color" type="xs:string" />
|
|
<xs:attribute name="codeblock.fg-color" type="xs:string" />
|
|
<xs:attribute name="codeblock.tab-size" type="xs:integer" />
|
|
<xs:attribute name="regex.highlight" type="xs:boolean" />
|
|
<xs:attribute name="listing.marker.rainbow" type="xs:boolean" />
|
|
<xs:attribute name="title.permalink.flash" type="xs:boolean" />
|
|
<xs:attribute name="web-title.rolling" type="xs:boolean" />
|
|
</xs:attributeGroup>
|
|
|
|
</xs:schema> |