summaryrefslogtreecommitdiff
path: root/docs/src/components/DocSidebar.tsx
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-07-26 13:41:32 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-26 13:41:32 -0700
commit60a2755c0a93d158fa030ae9883327190b67d190 (patch)
tree741e5bc95f24e1859d44d427319dbf8e63918fb6 /docs/src/components/DocSidebar.tsx
parent23735c53cc59e489cf1d0f528a97c2ce535d0a21 (diff)
downloadastro-60a2755c0a93d158fa030ae9883327190b67d190.tar.gz
astro-60a2755c0a93d158fa030ae9883327190b67d190.tar.zst
astro-60a2755c0a93d158fa030ae9883327190b67d190.zip
some docs site polish (#853)
* some docs polish * attempt to fix theme toggle
Diffstat (limited to 'docs/src/components/DocSidebar.tsx')
-rw-r--r--docs/src/components/DocSidebar.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/components/DocSidebar.tsx b/docs/src/components/DocSidebar.tsx
index 92f34ff61..e1b2a2b17 100644
--- a/docs/src/components/DocSidebar.tsx
+++ b/docs/src/components/DocSidebar.tsx
@@ -2,6 +2,7 @@ import type { FunctionalComponent } from 'preact';
import { h } from 'preact';
import { useState, useEffect, useRef } from 'preact/hooks';
import EditOnGithub from './EditOnGithub';
+import ThemeToggle from './ThemeToggle';
const DocSidebar: FunctionalComponent<{ headers: any[]; editHref: string }> = ({
headers = [],
@@ -104,6 +105,9 @@ const DocSidebar: FunctionalComponent<{ headers: any[]; editHref: string }> = ({
</a>
</li>
</ul>
+ <div style={{margin: '2rem 0', textAlign: 'center'}}>
+ <ThemeToggle />
+ </div>
</div>
</nav>
);