From 5b4c050c0ca32647f77c8878c23f57bb8659a4bf Mon Sep 17 00:00:00 2001 From: gabriel-logan Date: Sat, 30 Mar 2024 01:56:47 -0300 Subject: [PATCH] chore: updating documentation --- docs/src/app/globals.css | 8 ++++ docs/src/app/layout.tsx | 5 ++- docs/src/app/page.tsx | 3 ++ docs/src/app/python/page.tsx | 62 +++++++++++++++++++++++++++ docs/src/components/Scripts/index.tsx | 19 ++++++++ 5 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 docs/src/app/python/page.tsx create mode 100644 docs/src/components/Scripts/index.tsx diff --git a/docs/src/app/globals.css b/docs/src/app/globals.css index 875c01e..47050bf 100644 --- a/docs/src/app/globals.css +++ b/docs/src/app/globals.css @@ -31,3 +31,11 @@ body { text-wrap: balance; } } + +a:hover{ + color: rgb(0, 157, 255); +} + +a:active{ + color: rgb(7, 104, 164); +} diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx index 7458b85..1375e96 100644 --- a/docs/src/app/layout.tsx +++ b/docs/src/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; +import Scripts from "@/components/Scripts"; const inter = Inter({ subsets: ["latin"] }); @@ -18,7 +19,9 @@ export default function RootLayout({ }>) { return ( - {children} + + {children} + ); } diff --git a/docs/src/app/page.tsx b/docs/src/app/page.tsx index 726b689..75b800f 100644 --- a/docs/src/app/page.tsx +++ b/docs/src/app/page.tsx @@ -11,6 +11,9 @@ export default function Home() {
  • Typescript/Javascript
  • +
  • + Python +
  • diff --git a/docs/src/app/python/page.tsx b/docs/src/app/python/page.tsx new file mode 100644 index 0000000..6022633 --- /dev/null +++ b/docs/src/app/python/page.tsx @@ -0,0 +1,62 @@ +import Image from "next/image"; +import Link from "next/link"; + +export default function Readme() { + return ( +
    +
    +
    + + PyPI version + + + License: MIT + + + PyPI downloads + +
    +
    +
    Loganmatic
    +

    + Example usage of the Calculator class: +

    +
    +						{`
    +from loganmatic import loganmatic
    +
    +print("Pi value", loganmatic.Pi)
    +print("Euler value", loganmatic.EulerNumber)
    +print("Absolute value", loganmatic.absoluteValue(-5))
    +print("Factorial", loganmatic.factorial(5))
    +print("Square root", loganmatic.squareRoot(25))
    +print("Cubic root", loganmatic.cubicRoot(27))
    +print("Factors", loganmatic.factor(12))
    +print("Sine", loganmatic.sine(0.5))
    +print("Cosine", loganmatic.cosine(0.5))
    +print("Random number", loganmatic.random_number_between(1, 10))
    +print("Root of linear equation", loganmatic.root_of_first_degree(2, 4))
    +print("Roots of quadratic equation", loganmatic.root_of_second_degree(1, -3, 2))
    +          `}
    +					
    +
    + Go Back +
    +
    + ); +} diff --git a/docs/src/components/Scripts/index.tsx b/docs/src/components/Scripts/index.tsx new file mode 100644 index 0000000..aa69442 --- /dev/null +++ b/docs/src/components/Scripts/index.tsx @@ -0,0 +1,19 @@ +export default function Scripts() { + return ( + <> + + + ); +}