We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ec6fc commit c143d17Copy full SHA for c143d17
src/components/LLMButtons/index.tsx
@@ -1,13 +1,13 @@
1
-import React from 'react';
2
import { useLocation } from '@docusaurus/router';
+import React from 'react';
3
4
import CopyForLLM from './CopyForLLM';
5
import styles from './styles.module.css';
6
import ViewAsMarkdown from './ViewAsMarkdown';
7
8
export default function LLMButtons() {
9
const location = useLocation();
10
-
+
11
// Don't render LLMButtons if we're on a markdown view
12
if (location.pathname.endsWith('.md')) {
13
return null;
0 commit comments