Skip to content

Commit 8086e40

Browse files
updated site. documentation is now available. added CI/CD workflow
1 parent 4acf8b0 commit 8086e40

File tree

4 files changed

+39
-67
lines changed

4 files changed

+39
-67
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/update-cf.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update documentation
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Nodejs
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '20.15.0'
18+
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build site
24+
run: npm run build
25+
26+
- name: Deploy to site host
27+
uses: airvzxf/ftp-deployment-action@latest
28+
with:
29+
server: ${{ secrets.FTP_SERVER }}
30+
user: ${{ secrets.FTP_USERNAME }}
31+
password: ${{ secrets.FTP_PASSWORD }}
32+
local_dir: './build'
33+
remote_dir: ${{ secrets.CF_SITE_DIR }}

src/components/Router/Router.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const router = createBrowserRouter(
2525
},
2626
/* ------------------------------------------------------------------------------------------------------ */
2727
/* Blog pages link */
28-
{
28+
/* {
2929
path: "/blog/introducing-cortexflow",
3030
element: <Article1 />,
3131
errorElement: <ErrorPage />
@@ -44,7 +44,7 @@ const router = createBrowserRouter(
4444
path: "/blog/revisiting-the-lambda-architecture",
4545
element: <Article4 />,
4646
errorElement: <ErrorPage />
47-
},
47+
}, */
4848

4949
/* ------------------------------------------------------------------------------------------------------ */
5050
/* NewsLetter */
@@ -53,11 +53,11 @@ const router = createBrowserRouter(
5353
element: <InProgress />,
5454
errorElement: <ErrorPage />,
5555
},
56-
{
56+
/* {
5757
path: "/doc",
5858
element: <InProgress />,
5959
errorElement: <ErrorPage />,
60-
},
60+
}, */
6161
{
6262
path: "/examples",
6363
element: <InProgress />,

src/components/navbar/navabar.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,14 @@ const Homepg = () => {
4848
<li className="dropdown">
4949
<Link to="/">
5050
{" "}
51-
<img
52-
src={comingsoon}
53-
alt="coming soon"
54-
className="comingsoon-flag"
55-
/>
5651
<span>Documentation</span>{" "}
5752
<i className="bi bi-chevron-down toggle-dropdown"></i>
5853
</Link>
5954
<ul>
6055
{
56+
// this must be an href
6157
<li>
62-
<Link to="/doc">Documentation 1</Link>
58+
<a href="/doc/">Documentation 1</a>
6359
</li>
6460
/* <li className="dropdown">
6561
<Link to="#">

0 commit comments

Comments
 (0)