Skip to content

Commit 32540bf

Browse files
committed
Adding docs route
Signed-off-by: aryan <[email protected]>
1 parent 188f36f commit 32540bf

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

components/Header.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function Header(props: Headerprops) {
3838
Features
3939
</Link>
4040
<Link
41-
href="https://intelowlproject.github.io/docs/"
41+
href="/docs/"
4242
className="text-white font-SpaceGrotesk font-light text-center invisible md:visible"
4343
>
4444
Docs
@@ -104,7 +104,7 @@ export function Header(props: Headerprops) {
104104
Features
105105
</Link>
106106
<Link
107-
href="https://intelowlproject.github.io/docs/"
107+
href="/docs/"
108108
className="text-white font-SpaceGrotesk font-light text-center hidden md:flex md:justify-center md:flex-row"
109109
>
110110
Docs

components/sections/HeroSection.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function HeroSection(props: HeroSectionProps) {
4949
<span className="text-[#00ADEF]">single API request.</span>
5050
</h2>
5151
<Link
52-
href={"https://intelowlproject.github.io/docs//Installation.html"}
52+
href={"/docs/IntelOwl/installation/"}
5353
className=" transform transition-transform duration-3 hover:scale-110 btn bg-[#00ADEE] hover:bg-blue-700 text-white py-2 mb-12 px-4 text-sm rounded w-32 h-10 mt-8 font-SpaceGrotesk text-center"
5454
>
5555
get started ➔
@@ -97,7 +97,7 @@ export default function HeroSection(props: HeroSectionProps) {
9797
</span>
9898
</h2>
9999
<Link
100-
href={"https://intelowlproject.github.io/docs//Installation.html"}
100+
href={"/docs/"}
101101
className="transform transition-transform duration-3 hover:scale-110 btn bg-[#00ADEE] hover:bg-blue-700 text-white py-2 px-4 rounded w-36 h-10 mt-16 font-SpaceGrotesk text-center"
102102
>
103103
get started ➔

constants/faqdata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const FAQData = [
22
{
33
question: "How can I install IntelOwl?",
44
answer:
5-
'That is super fast and straightforward: follow the guide <a href="https://intelowlproject.github.io/docs//Installation.html" target="_blank">here</a>',
5+
'That is super fast and straightforward: follow the guide <a href="/docs/IntelOwl/installation/" target="_blank">here</a>',
66
},
77
{
88
question:

src/app/docs/page.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"use client";
2+
3+
import { useEffect, useState } from "react";
4+
5+
export default function DocsPage() {
6+
const [isReloaded, setIsReloaded] = useState(false);
7+
useEffect(() => {
8+
if (!isReloaded) {
9+
setIsReloaded(true);
10+
window.location.reload();
11+
}
12+
console.log("ji");
13+
}, []);
14+
15+
return <div>Loading</div>;
16+
}

src/app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function Home() {
6464
</span>
6565
</a>
6666
<a
67-
href="https://intelowlproject.github.io/docs//Usage.html#analyzers"
67+
href="/docs/IntelOwl/usage/#analyzers"
6868
className="transform transition-transform duration-3 hover:scale-105 inline-flex justify-between items-center py-1 px-1 pr-4 mb-7 text-sm text-gray-700 bg-gray-100 rounded-full dark:bg-gray-800 dark:text-white hover:bg-gray-200 dark:hover:bg-gray-700"
6969
role="alert"
7070
>

0 commit comments

Comments
 (0)