summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--book.toml2
-rw-r--r--docs/website_files/remove-nav-buttons.css8
2 files changed, 9 insertions, 1 deletions
diff --git a/book.toml b/book.toml
index 7255bf8372..b21b647526 100644
--- a/book.toml
+++ b/book.toml
@@ -27,6 +27,6 @@ site-url = "/synapse/"
 
 # Additional HTML, JS, CSS that's injected into each page of the book.
 # More information is available in docs/website_files/README.md
-additional-css = ["docs/website_files/table-of-contents.css"]
+additional-css = ["docs/website_files/table-of-contents.css", "docs/website_files/remove-nav-buttons.css"]
 additional-js = ["docs/website_files/table-of-contents.js"]
 theme = "docs/website_files/theme"
\ No newline at end of file
diff --git a/docs/website_files/remove-nav-buttons.css b/docs/website_files/remove-nav-buttons.css
new file mode 100644
index 0000000000..4b280794ea
--- /dev/null
+++ b/docs/website_files/remove-nav-buttons.css
@@ -0,0 +1,8 @@
+/* Remove the prev, next chapter buttons as they interfere with the
+ * table of contents.
+ * Note that the table of contents only appears on desktop, thus we
+ * only remove the desktop (wide) chapter buttons.
+ */
+.nav-wide-wrapper {
+    display: none
+}
\ No newline at end of file