File tree Expand file tree Collapse file tree 3 files changed +577
-9
lines changed Expand file tree Collapse file tree 3 files changed +577
-9
lines changed Original file line number Diff line number Diff line change 20
20
"serve" : " docusaurus serve" ,
21
21
"write-translations" : " docusaurus write-translations" ,
22
22
"write-heading-ids" : " docusaurus write-heading-ids" ,
23
+ "doc-t-pdf" : " npx docs-to-pdf docusaurus --initialDocURLs='https://docs.databend.com/sql' --contentSelector='article' --paginationSelector='a.pagination-nav__link.pagination-nav__link--next'" ,
23
24
"typecheck" : " tsc"
24
25
},
25
26
"dependencies" : {
35
36
"clsx" : " ^2.0.0" ,
36
37
"copyforjs" : " ^1.0.6" ,
37
38
"databend-logos" : " ^0.0.16" ,
39
+ "docs-to-pdf" : " ^0.6.2" ,
38
40
"docusaurus-plugin-devserver" : " ^1.0.6" ,
39
41
"docusaurus-plugin-sass" : " ^0.2.5" ,
40
42
"prism-react-renderer" : " ^2.3.0" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import ArrowRight from "@site/static/icons/arrowright.svg";
13
13
import { evaluateDocs } from "@site/src/api" ;
14
14
import ThumbsUp from "./ThumbsUp.svg" ;
15
15
import ThumbsDown from "./ThumbsDown.svg" ;
16
+ import clsx from "clsx" ;
16
17
const { TextArea } = Input ;
17
18
export default function DocPaginator ( props ) {
18
19
const { previous, next } = props ;
@@ -96,15 +97,27 @@ export default function DocPaginator(props) {
96
97
} ) }
97
98
>
98
99
{ previous ? (
99
- < Link className = { styles . page } to = { previous ?. permalink } >
100
+ < Link
101
+ className = { clsx (
102
+ styles . page ,
103
+ "pagination-nav__link pagination-nav__link--prev"
104
+ ) }
105
+ to = { previous ?. permalink }
106
+ >
100
107
< ArrowLeft />
101
108
< span > { previous ?. title } </ span >
102
109
</ Link >
103
110
) : (
104
111
< i > </ i >
105
112
) }
106
113
{ next && (
107
- < Link className = { styles . page } to = { next ?. permalink } >
114
+ < Link
115
+ className = { clsx (
116
+ styles . page ,
117
+ "pagination-nav__link pagination-nav__link--next"
118
+ ) }
119
+ to = { next ?. permalink }
120
+ >
108
121
< span > { next ?. title } </ span >
109
122
< ArrowRight />
110
123
</ Link >
You can’t perform that action at this time.
0 commit comments