File tree Expand file tree Collapse file tree 5 files changed +29
-34
lines changed
apify-docs-theme/src/theme Expand file tree Collapse file tree 5 files changed +29
-34
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ function Footer() {
3030 return (
3131 < footer className = { clsx ( styles . footer , style ) } >
3232 < div className = { styles . container } >
33- < div className = { clsx ( " row" , styles . top ) } >
33+ < div className = { clsx ( ' row' , styles . top ) } >
3434 { links . map ( ( column , i ) => (
3535 < div key = { i } className = { `col col--2` } >
3636 < FooterLinksColumn { ...{ column } } />
3737 </ div >
3838 ) )
3939 }
4040 </ div >
41- < div className = { clsx ( " row" , styles . bottom ) } >
41+ < div className = { clsx ( ' row' , styles . bottom ) } >
4242 < div className = "col col--6" >
4343 < a href = "https://apify.com" target = { '_blank' } rel = { 'dofollow noreferrer' } >
4444 < span className = { styles . logo } > </ span >
Original file line number Diff line number Diff line change 1- import { useLocation } from '@docusaurus/router' ;
21// cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
32import Layout from '@docusaurus/theme-classic/lib/theme/Layout/index' ;
4- import useBaseUrl from '@docusaurus/useBaseUrl' ;
53import React from 'react' ;
64
75export default function LayoutWrapper ( props ) {
8- const baseUrl = useBaseUrl ( '/' ) ;
9- const currentPath = useLocation ( ) . pathname . replace ( new RegExp ( `^${ baseUrl } ` ) , '' ) ;
10-
116 return (
127 < div style = { {
138 margin : 0 ,
Original file line number Diff line number Diff line change 1- import styles from '../CTA /styles.module.css' ;
1+ import styles from './styles.module.css' ;
22
33export default function NavbarCTA ( ) {
44 return (
5- < a href = "https://console.apify.com" className = { styles . getStarted } > Get started</ a >
5+ < a href = "https://console.apify.com" className = { styles . getStarted } > Get started</ a >
66 ) ;
77}
Original file line number Diff line number Diff line change 11import { useNavbarMobileSidebar , useThemeConfig } from '@docusaurus/theme-common/internal' ;
2-
32import IconClose from '@theme/Icon/Close' ;
43import NavbarLogo from '@theme/Navbar/Logo' ;
54import NavbarSearch from '@theme/Navbar/Search' ;
@@ -15,28 +14,28 @@ export default function NavbarMobileSidebarHeader() {
1514 const searchBarItem = items . find ( ( item ) => item . type === 'search' ) ;
1615
1716 return (
18- < >
19- < div className = "navbar-sidebar__brand" >
20- < NavbarLogo />
21- < button
22- type = "button"
23- className = "clean-btn navbar-sidebar__close"
24- onClick = { ( ) => mobileSidebar . toggle ( ) }
25- aria-label = "Close navigation bar"
26- >
27- < IconClose />
28- </ button >
29- </ div >
30- < div className = "navbar-sidebar__actions" >
31- < div className = "navbar-sidebar__actions__container" >
32- < NavbarCTA />
33- { ! searchBarItem && (
34- < NavbarSearch >
35- < SearchBar />
36- </ NavbarSearch >
37- ) }
38- </ div >
39- </ div >
40- </ >
17+ < >
18+ < div className = "navbar-sidebar__brand" >
19+ < NavbarLogo />
20+ < button
21+ type = "button"
22+ className = "clean-btn navbar-sidebar__close"
23+ onClick = { ( ) => mobileSidebar . toggle ( ) }
24+ aria-label = "Close navigation bar"
25+ >
26+ < IconClose />
27+ </ button >
28+ </ div >
29+ < div className = "navbar-sidebar__actions" >
30+ < div className = "navbar-sidebar__actions__container" >
31+ < NavbarCTA />
32+ { ! searchBarItem && (
33+ < NavbarSearch >
34+ < SearchBar />
35+ </ NavbarSearch >
36+ ) }
37+ </ div >
38+ </ div >
39+ </ >
4140 ) ;
4241}
Original file line number Diff line number Diff line change 1+ import './styles.css' ;
2+
13import BrowserOnly from '@docusaurus/BrowserOnly' ;
24import RouterLink from '@docusaurus/Link' ;
35import { useHistory , useLocation } from '@docusaurus/router' ;
46import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
57import React , { useCallback } from 'react' ;
68
79import { ApifySearch } from '@apify/docs-search-modal' ;
8- import './styles.css' ;
910
1011/**
1112 * Tests whether the given href is pointing to the current docusaurus instance (so we can use the router link).
You can’t perform that action at this time.
0 commit comments