diff --git a/app/assets/stylesheets/wiki.css b/app/assets/stylesheets/wiki.css
index 161cde0c3d..1a0a4a34c1 100644
--- a/app/assets/stylesheets/wiki.css
+++ b/app/assets/stylesheets/wiki.css
@@ -73,6 +73,57 @@ a.navbar-offset {
visibility: hidden;
}
+#toc-menu:hover, .toc-active {
+ background-color: #cbd5e0;
+}
+
+.js-toc {
+ max-height: 339px;
+ max-width: 298px;
+ top: 40px;
+ overflow: auto;
+ line-height: 2;
+ border: 1px solid #e1e4e8;
+}
+
+.toc-list {
+ list-style: none;
+ background-color: #fff;
+ z-index: 2000;
+ margin-bottom: 0;
+ padding: 0px 15px 15px 15px;
+}
+
+.is-collapsible {
+ padding-left: 20px;
+ padding-bottom: 5px;
+ list-style: none;
+}
+
+.toc-list-item {
+ padding: 0;
+ font-weight: initial;
+ text-align: start;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.toc-list-item a {
+ color: #343a40;
+ text-decoration: none;
+}
+
+.toc-list-item a:hover {
+ color: #0c82c4;
+}
+
+@media (max-width: 606px) {
+ .js-toc {
+ max-width: 260px;
+ }
+}
+
@media (max-width: 768px) {
.add-subscriptions {
margin-top:10px;
diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js
index fea19ca379..728a2eb202 100644
--- a/app/javascript/packs/application.js
+++ b/app/javascript/packs/application.js
@@ -20,3 +20,4 @@ console.log('Hello World from Webpacker')
var componentRequireContext = require.context("components", true);
var ReactRailsUJS = require("react_ujs");
ReactRailsUJS.useContext(componentRequireContext);
+const tocbot = require('tocbot');
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb
index a09324c107..591a0e962c 100644
--- a/app/views/wiki/_header.html.erb
+++ b/app/views/wiki/_header.html.erb
@@ -42,6 +42,10 @@
|
#<%= @node.id %>
+
+
+