Skip to content

Commit 2624409

Browse files
2 parents 0b5e7be + 7efd3f9 commit 2624409

File tree

5 files changed

+65
-128
lines changed

5 files changed

+65
-128
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 --force
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_1 }}

src/components/Footer/footer.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ const Footer = () => {
3636
<div className="footer-line"></div>
3737
<ul className="footer-list">
3838
<li className="footer-list-objects">
39-
<Link to="https://github.com/CortexFlow/CortexBrain/blob/main/doc.md">
39+
<a href ="/doc/">
4040
Documentation
41-
</Link>
41+
</a>
4242
</li>
4343
<li className="footer-list-objects">
44-
<Link to="/examples">Examples</Link>
44+
<a href="/doc/">Examples</a>
4545
</li>
4646
<li className="footer-list-objects">
47-
<Link to="/use-cases">Use cases</Link>
47+
<a href ="/doc/">Use cases</a>
4848
</li>
4949
</ul>
5050
</div>
@@ -62,17 +62,17 @@ const Footer = () => {
6262
Pull Requests
6363
</Link>
6464
</li>
65-
<li className="footer-list-objects">
65+
{/* <li className="footer-list-objects">
6666
<Link to="/blog">Blog</Link>
67-
</li>
67+
</li> */}
6868
<li className="footer-list-objects">
6969
<Link to="https://github.com/CortexFlow/CortexBrain/discussions">
7070
Discussions
7171
</Link>
7272
</li>
73-
<li className="footer-list-objects">
73+
{/* <li className="footer-list-objects">
7474
<Link to="/newsletter">Newsletter</Link>
75-
</li>
75+
</li> */}
7676
</ul>
7777
</div>
7878
<div className="col-lg-3 col-sm-6">

src/components/Router/Router.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ import { createBrowserRouter } from "react-router-dom";
33
import HomePage from "../HomePage/home";
44
import ErrorPage from "../Pages/ErrorPage";
55
import InProgress from "../Pages/InProgress";
6-
import BlogPage from "../Pages/Blog"
7-
6+
/* import BlogPage from "../Pages/Blog"
7+
*/
88
/* Articles */
9-
import Article1 from "../Blog/Articles/01 Introducing CortexFlow/introducing_cortexflow";
9+
/* import Article1 from "../Blog/Articles/01 Introducing CortexFlow/introducing_cortexflow";
1010
import Article2 from "../Blog/Articles/02 Federated Computational Governance/federated_computational_governance_article";
1111
import Article3 from "../Blog/Articles/03 Discovering LiDar/discovering_lidar_article";
1212
import Article4 from "../Blog/Articles/04 Revisiting Lambda Architecture/revisiting_lambda_architecture";
13-
13+
*/
1414
const router = createBrowserRouter(
1515
[
1616
{
1717
path: "/",
1818
element: <HomePage />,
1919
errorElement: <ErrorPage />,
2020
},
21-
{
21+
/* {
2222
path: "/blog",
2323
element: <BlogPage />,
2424
errorElement: <ErrorPage />,
25-
},
25+
}, */
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: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ const Homepg = () => {
1616
<header id="header" className="header d-flex align-items-center fixed-top">
1717
<div className="container-fluid container-xl position-relative d-flex align-items-center">
1818
<Link to="/" className="logo d-flex align-items-center me-auto">
19-
<img src={logobrain} alt="brain Logo" title="CortexFlow logo" className="brain-logo" />
19+
<img
20+
src={logobrain}
21+
alt="brain Logo"
22+
title="CortexFlow logo"
23+
className="brain-logo"
24+
/>
2025
<h2 className="sitename">CortexFlow</h2>
2126
</Link>
2227
<nav id="navmenu" className="navmenu">
@@ -30,11 +35,9 @@ const Homepg = () => {
3035
<li>
3136
<a href="#about">About</a>
3237
</li>
33-
<li>
34-
<Link to="/blog">
35-
Blog
36-
</Link>
37-
</li>
38+
{/* <li>
39+
<Link to="/blog">Blog</Link>
40+
</li> */}
3841
<li>
3942
<Link to="/newsletter">
4043
<img
@@ -46,56 +49,14 @@ const Homepg = () => {
4649
</Link>
4750
</li>
4851
<li className="dropdown">
49-
<Link to="/">
52+
<a href="/doc/"> {/* this must be a href */}
5053
{" "}
51-
<img
52-
src={comingsoon}
53-
alt="coming soon"
54-
className="comingsoon-flag"
55-
/>
5654
<span>Documentation</span>{" "}
57-
<i className="bi bi-chevron-down toggle-dropdown"></i>
58-
</Link>
59-
<ul>
60-
{
61-
<li>
62-
<Link to="/doc">Documentation 1</Link>
63-
</li>
64-
/* <li className="dropdown">
65-
<Link to="#">
66-
<span>Deep Documentation</span>{" "}
67-
<i className="bi bi-chevron-down toggle-dropdown"></i>
68-
</Link>
69-
<ul>
70-
<li>
71-
<Link to="#">Deep Documentation 1</Link>
72-
</li>
73-
<li>
74-
<Link to="#">Deep Documentation 2</Link>
75-
</li>
76-
<li>
77-
<Link to="#">Deep Documentation 3</Link>
78-
</li>
79-
<li>
80-
<Link to="#">Deep Documentation 4</Link>
81-
</li>
82-
<li>
83-
<Link to="#">Deep Documentation 5</Link>
84-
</li>
85-
</ul>
86-
</li> */
87-
}
88-
{/* <li>
89-
<Link to="#">Documentation 2</Link>
90-
</li>
91-
<li>
92-
<Link to="#">Documentation 3</Link>
93-
</li>
94-
<li>
95-
<Link to="#">Documentation 4</Link>
96-
</li> */}
97-
</ul>
55+
<i className="bi toggle-dropdown"></i>
56+
</a>
9857
</li>
58+
59+
9960
</ul>
10061
<i className="mobile-nav-toggle d-xl-none bi bi-list"></i>
10162
</nav>

0 commit comments

Comments
 (0)