File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,16 +26,6 @@ This command generates static content into the `build` directory and can be serv
2626
2727### Deployment
2828
29- Using SSH :
29+ We are hosting docs on vercel, co you could just use this command :
3030
31- ```
32- $ USE_SSH=true yarn deploy
33- ```
34-
35- Not using SSH:
36-
37- ```
38- $ GIT_USER=<Your GitHub username> yarn deploy
39- ```
40-
41- If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the ` gh-pages ` branch.
31+ - vercel --prod
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ description: Mocking - check how to mock data from backend and display it for us
1818
1919This template uses [ MSW] ( https://mswjs.io/docs ) to mock data.
2020
21- Mocks are automatically generated with orval script - you can check [ docs here] ( /api-connection )
21+ Mocks are automatically generated with orval script - you can check [ docs here] ( /docs/ api-connection )
2222
2323## Enabling mocks
2424
Original file line number Diff line number Diff line change 1+ import styles from './styles.module.css'
2+ import Link from '@docusaurus/Link'
3+ import clsx from 'clsx'
4+
5+ export default function HeaderButtons ( ) {
6+ return (
7+ < div className = { styles . buttonsContainer } >
8+ < Link
9+ className = { clsx (
10+ 'button button--secondary button--lg' ,
11+ styles . button ,
12+ styles . buttonReadDocs
13+ ) }
14+ to = "/docs/overview"
15+ >
16+ Read docs
17+ </ Link >
18+ < Link
19+ className = { clsx ( 'button button--secondary button--lg' , styles . button , styles . buttonTryIt ) }
20+ to = "https://binarapps.online/sign-in"
21+ >
22+ Try it
23+ </ Link >
24+ </ div >
25+ )
26+ }
Original file line number Diff line number Diff line change 1- import styles from '../index .module.css'
1+ import styles from './styles .module.css'
22import Slider from 'react-slick'
33
44const sliderSettings = {
@@ -48,14 +48,16 @@ const sliderImages = [
4848 } ,
4949]
5050
51- export const ImageSlider = ( ) => (
52- < div className = { styles . sliderContainer } >
53- < Slider { ...sliderSettings } >
54- { sliderImages . map ( ( image , index ) => (
55- < div key = { index } className = { styles . imageWrapper } >
56- < img src = { image . src } alt = { image . alt } className = { styles . image } />
57- </ div >
58- ) ) }
59- </ Slider >
60- </ div >
61- )
51+ export default function ImageSlider ( ) {
52+ return (
53+ < div className = { styles . sliderContainer } >
54+ < Slider { ...sliderSettings } >
55+ { sliderImages . map ( ( image , index ) => (
56+ < div key = { index } className = { styles . imageWrapper } >
57+ < img src = { image . src } alt = { image . alt } className = { styles . image } />
58+ </ div >
59+ ) ) }
60+ </ Slider >
61+ </ div >
62+ )
63+ }
Original file line number Diff line number Diff line change 11import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
2- import { HeaderButtons } from './components/HeaderButtons'
3- import { ImageSlider } from './components/ImageSlider'
4- import styles from './index.module.css'
2+
3+ import styles from './styles.module.css'
54import Heading from '@theme/Heading'
65import clsx from 'clsx'
6+ import HeaderButtons from './HeaderButtons'
7+ import ImageSlider from './ImageSlider'
78
8- export function HomepageHeader ( ) {
9+ export default function HomepageHeader ( ) {
910 const { siteConfig } = useDocusaurusContext ( )
1011
1112 return (
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import HomepageFeatures from '@site/src/components/HomepageFeatures'
22import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
3- import { HomepageHeader } from './HomepageHeader '
3+ import HomepageHeader from '@site/src/components/HomePageHeader '
44import Layout from '@theme/Layout'
55
66export default function Home ( ) : JSX . Element {
You can’t perform that action at this time.
0 commit comments