@@ -9,27 +9,18 @@ point to additional JS/CSS in this directory that are added on each page load. I
99addition, the ` theme ` directory contains files that overwrite their counterparts in
1010each of the default themes included with mdbook.
1111
12- Currently we use these files to generate a floating Table of Contents panel. The code for
13- which was partially taken from
14- [ JorelAli/mdBook-pagetoc] ( https://github.com/JorelAli/mdBook-pagetoc/ )
15- before being modified such that it scrolls with the content of the page. This is handled
16- by the ` table-of-contents.js/css ` files. The table of contents panel only appears on pages
17- that have more than one header, as well as only appearing on desktop-sized monitors.
12+ Currently we use these files to make a few modifications:
1813
19- We remove the navigation arrows which typically appear on the left and right side of the
20- screen on desktop as they interfere with the table of contents. This is handled by
21- the ` remove-nav-buttons .css` file.
14+ * We stylise the chapter titles in the left sidebar by indenting them
15+ slightly so that they are more visually distinguishable from the section headers
16+ ( the bold titles). This is done through the ` indent-section-headers .css` file.
2217
23- Finally, we also stylise the chapter titles in the left sidebar by indenting them
24- slightly so that they are more visually distinguishable from the section headers
25- (the bold titles). This is done through the ` indent-section-headers.css ` file.
26-
27- In addition to these modifications, we have added a version picker to the documentation.
28- Users can switch between documentations for different versions of Synapse.
29- This functionality was implemented through the ` version-picker.js ` and
30- ` version-picker.css ` files.
18+ * We add a version picker pertaining to the different documentation versions
19+ shipped with each version of Synapse. This functionality was implemented through
20+ the ` version-picker.js ` and ` version-picker.css ` files, and is currently the only
21+ requirement for the custom ` theme/ ` .
3122
3223More information can be found in mdbook's official documentation for
3324[ injecting page JS/CSS] ( https://rust-lang.github.io/mdBook/format/config.html )
3425and
35- [ customising the default themes] ( https://rust-lang.github.io/mdBook/format/theme/index.html ) .
26+ [ customising the default themes] ( https://rust-lang.github.io/mdBook/format/theme/index.html ) .
0 commit comments