mirror of
https://github.com/chenasraf/massarg.git
synced 2026-05-18 01:39:05 +00:00
docs: update
This commit is contained in:
@@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic'
|
||||
|
||||
const config: Config = {
|
||||
title: 'Massarg',
|
||||
tagline: 'Dinosaurs are cool',
|
||||
tagline: 'Flexible, powerful, and simple command/argument parser for CLI applications',
|
||||
favicon: 'img/favicon.ico',
|
||||
|
||||
// Set the production url of your site here
|
||||
@@ -100,7 +100,7 @@ const config: Config = {
|
||||
navbar: {
|
||||
title: 'Massarg',
|
||||
logo: {
|
||||
alt: 'My Site Logo',
|
||||
alt: 'Massarg Logo',
|
||||
src: 'img/logo.svg',
|
||||
},
|
||||
items: [
|
||||
@@ -110,6 +110,11 @@ const config: Config = {
|
||||
position: 'left',
|
||||
label: 'Docs',
|
||||
},
|
||||
{
|
||||
href: 'https://npmjs.com/package/massarg',
|
||||
label: 'NPM',
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
href: 'https://github.com/chenasraf/massarg',
|
||||
label: 'GitHub',
|
||||
@@ -145,6 +150,10 @@ const config: Config = {
|
||||
{
|
||||
title: 'More',
|
||||
items: [
|
||||
{
|
||||
label: 'NPM',
|
||||
href: 'https://npmjs.com/package/massarg',
|
||||
},
|
||||
{
|
||||
label: 'GitHub',
|
||||
href: 'https://github.com/chenasraf/massarg',
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import clsx from 'clsx';
|
||||
import Link from '@docusaurus/Link';
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
import Layout from '@theme/Layout';
|
||||
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
||||
import Heading from '@theme/Heading';
|
||||
import clsx from 'clsx'
|
||||
import Link from '@docusaurus/Link'
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
|
||||
import Layout from '@theme/Layout'
|
||||
import HomepageFeatures from '@site/src/components/HomepageFeatures'
|
||||
import Heading from '@theme/Heading'
|
||||
|
||||
import styles from './index.module.css';
|
||||
import styles from './index.module.css'
|
||||
|
||||
function HomepageHeader() {
|
||||
const {siteConfig} = useDocusaurusContext();
|
||||
const { siteConfig } = useDocusaurusContext()
|
||||
return (
|
||||
<header className={clsx('hero hero--primary', styles.heroBanner)}>
|
||||
<div className="container">
|
||||
@@ -17,27 +17,26 @@ function HomepageHeader() {
|
||||
</Heading>
|
||||
<p className="hero__subtitle">{siteConfig.tagline}</p>
|
||||
<div className={styles.buttons}>
|
||||
<Link
|
||||
className="button button--secondary button--lg"
|
||||
to="/docs/intro">
|
||||
Docusaurus Tutorial - 5min ⏱️
|
||||
<Link className="button button--secondary button--lg" to="/docs/api">
|
||||
Read the Docs
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
export default function Home(): JSX.Element {
|
||||
const {siteConfig} = useDocusaurusContext();
|
||||
const { siteConfig } = useDocusaurusContext()
|
||||
return (
|
||||
<Layout
|
||||
title={`Hello from ${siteConfig.title}`}
|
||||
description="Description will go into a meta tag in <head />">
|
||||
description="Description will go into a meta tag in <head />"
|
||||
>
|
||||
<HomepageHeader />
|
||||
<main>
|
||||
<HomepageFeatures />
|
||||
</main>
|
||||
</Layout>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user