File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
node-version : 16
21
21
cache : yarn
22
- cache-dependency-path : ' documentation /yarn.lock'
22
+ cache-dependency-path : ' ** /yarn.lock'
23
23
24
24
- name : Build
25
25
run : |
Original file line number Diff line number Diff line change 1
1
import { useRouter } from 'next/router' ;
2
+ import { useConfig } from 'nextra-theme-docs' ;
2
3
3
4
export default {
4
5
logo : < strong > Dashlane CLI</ strong > ,
@@ -19,8 +20,26 @@ export default {
19
20
const { asPath } = useRouter ( ) ;
20
21
if ( asPath !== '/' ) {
21
22
return {
22
- titleTemplate : '%s - Dashlane CLI'
23
+ titleTemplate : '%s - Dashlane CLI' ,
23
24
} ;
24
25
}
26
+ } ,
27
+ head : ( ) => {
28
+ const { asPath, defaultLocale, locale } = useRouter ( ) ;
29
+ const { frontMatter } = useConfig ( ) ;
30
+ const url =
31
+ 'https://dashlane.github.io/dashlane-cli' +
32
+ ( defaultLocale === locale ? asPath : `/${ locale } ${ asPath } ` ) ;
33
+
34
+ return (
35
+ < >
36
+ < meta property = "og:url" content = { url } />
37
+ < meta property = "og:title" content = { frontMatter . title || 'Dashlane CLI' } />
38
+ < meta
39
+ property = "og:description"
40
+ content = { frontMatter . description || 'Learn how to access your Dashlane vault and API endpoints from the command line.' }
41
+ />
42
+ </ >
43
+ ) ;
25
44
}
26
45
} ;
You can’t perform that action at this time.
0 commit comments