zjp-CN / mdbook-theme

A preprocessor and a backend to config themes for mdbook, especially creating a pagetoc on the right and setting full color themes from the offical ace editor.
MIT License
38 stars 3 forks source link

Repeated contents are inserted #3

Closed zjp-CN closed 1 year ago

zjp-CN commented 1 year ago

These should not be added each time run mdbook build.

theme/css/variables.css
+@media only screen and (max-width:1439px) {
+ :root{
+    --content-max-width: 98%;
+  }
+}
+

theme/index.hbs
+                        <!-- Page table of contents -->
+                        <div class="sidetoc"><nav class="pagetoc"></nav></div>
+