From 74d3c4cbe004ef0c98d09dd86b3ce8cdaf0c8055 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 6 Aug 2025 15:41:07 -0700 Subject: [PATCH 1/2] feat: smooth scrolling --- docs/custom.css | 32 ++++++++++++++++++++++++++++++++ docs/docs.json | 3 +++ 2 files changed, 35 insertions(+) create mode 100644 docs/custom.css diff --git a/docs/custom.css b/docs/custom.css new file mode 100644 index 000000000..ead97dad9 --- /dev/null +++ b/docs/custom.css @@ -0,0 +1,32 @@ +/* Custom CSS for Continue documentation */ + +/* Enable smooth scrolling for anchor links */ +html { + scroll-behavior: smooth; + /* Adjust scroll padding to account for fixed header */ + scroll-padding-top: 80px; +} + +/* Ensure proper spacing for heading anchors */ +h1[id], +h2[id], +h3[id], +h4[id], +h5[id], +h6[id] { + scroll-margin-top: 80px; +} + +/* Optional: Add a subtle highlight effect when navigating to anchors */ +:target { + animation: highlight 2s ease-out; +} + +@keyframes highlight { + 0% { + background-color: rgba(255, 235, 59, 0.3); + } + 100% { + background-color: transparent; + } +} \ No newline at end of file diff --git a/docs/docs.json b/docs/docs.json index 6bbeafc18..a98c84f49 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -337,6 +337,9 @@ "apiKey": "phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs" } }, + "custom": { + "css": ["custom.css"] + }, "redirects": [ { "source": "/hub", From 3657e5d8917ee5287049d167646b300d80312160 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 6 Aug 2025 15:43:54 -0700 Subject: [PATCH 2/2] fix: prettier --- docs/custom.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/custom.css b/docs/custom.css index ead97dad9..b403e827c 100644 --- a/docs/custom.css +++ b/docs/custom.css @@ -29,4 +29,4 @@ h6[id] { 100% { background-color: transparent; } -} \ No newline at end of file +}