Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The real final todos of guider #19

Merged
merged 69 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
44c91c2
Add logo to theme config
mrjvs Mar 6, 2024
d63ffe7
Change the look and feel of bold text
mrjvs Mar 7, 2024
340d1a9
Restructure main docs site
mrjvs Mar 7, 2024
3d12f93
Rename test text
mrjvs Mar 7, 2024
1e8e996
Style homepage + export icon
mrjvs Mar 8, 2024
613bee1
Add documentation structure
mrjvs Mar 8, 2024
a8c7054
Add icons
mrjvs Mar 8, 2024
907dd1a
Fix minimal theme config
mrjvs Mar 8, 2024
2087141
Installation page cleanup + colors + theme
mrjvs Mar 9, 2024
d5e57c0
Add redirects page and fix theming page
mrjvs Mar 9, 2024
c66dad3
Fix redirects page
mrjvs Mar 9, 2024
543690f
Add SEO page
mrjvs Mar 9, 2024
a0e0260
Add extra install page + landing page.
mrjvs Mar 9, 2024
607e361
Navigation and redirects typo
mrjvs Mar 9, 2024
0b9702f
Added optional sidebar
mrjvs Mar 9, 2024
682a018
Common usecase/multidocs + examples
mrjvs Mar 9, 2024
c99ed0a
Add more pages
mrjvs Mar 9, 2024
acee2ac
Fix typos
mrjvs Mar 9, 2024
82144e7
add markdown pages
mrjvs Mar 10, 2024
8add041
Sketch out sections of the advanced config pages
mrjvs Mar 10, 2024
91d9962
Add deploy pages for docker and github pages
mrjvs Mar 10, 2024
7c21bce
Responsive sidebar & tabs + content footer customization.
mrjvs Mar 10, 2024
fee2c7e
Fix icon alignment
mrjvs Mar 10, 2024
ff03284
Support for groups
mrjvs Mar 10, 2024
4382c72
Allow for sites to be defined without an ID + support for defineTheme…
mrjvs Mar 10, 2024
5db0eea
Update theme configs
mrjvs Mar 10, 2024
57303ec
Make everything themeable
mrjvs Mar 10, 2024
9a228c2
Fix hash navigation offset
mrjvs Mar 10, 2024
26eba87
Add development page + fix icon alignment
mrjvs Mar 10, 2024
8b2219c
Add stub pages
mrjvs Mar 10, 2024
c985d1f
Add logo
mrjvs Mar 10, 2024
8c63a4a
add custom color
mrjvs Mar 10, 2024
fd1d3fb
Colors
mrjvs Mar 10, 2024
440dfc2
Proofreading :) thanks will
mrjvs Mar 10, 2024
425ab74
Fix headings in toc
mrjvs Mar 12, 2024
ff04c43
Callouts page
mrjvs Mar 12, 2024
6a84648
All component doc pages + mentioning frontmatter for making pages
mrjvs Mar 13, 2024
1455f09
Fix default colors
mrjvs Mar 13, 2024
7a8e233
Merge settings correctly
mrjvs Mar 13, 2024
e1e1e91
Fix import
mrjvs Mar 13, 2024
3d4337c
Finalize footers
mrjvs Mar 13, 2024
be314ed
Write advanced pages
mrjvs Mar 14, 2024
ef92883
Development page and customizing layout docs page
mrjvs Mar 14, 2024
67f41a2
Favicon, meta data and adding background pattern to docs
mrjvs Mar 14, 2024
50f5aae
Fix typos, thanks will
mrjvs Mar 14, 2024
8c7bf15
Redirect
mrjvs Mar 15, 2024
ae627a2
Update npm research
mrjvs Mar 16, 2024
67e73b1
Fix some codeblock bugs
mrjvs Mar 16, 2024
eeff21b
Fix number overflow
mrjvs Mar 16, 2024
94b0279
Edit github url
mrjvs Mar 16, 2024
e702860
Update theme config
mrjvs Mar 16, 2024
b486a05
Update documentation on edit repository base
mrjvs Mar 16, 2024
1f43a83
whoops, wrong gitub
mrjvs Mar 16, 2024
3b480b7
Fix error in console
mrjvs Mar 16, 2024
acc0303
Fix sidebar jumping on navigate
mrjvs Mar 16, 2024
418797b
Add optional exact matching to header links (dropdown, tabs, top navi…
mrjvs Mar 16, 2024
3e7a40d
No default selected item for dropdown
mrjvs Mar 16, 2024
c2e4e70
Fix default meta not loading in properly
mrjvs Mar 16, 2024
0059074
Update docs with new meta tag change
mrjvs Mar 16, 2024
1b625a6
Fix z index issues
mrjvs Mar 16, 2024
7a76ccd
Update examples + add more tests to kitchen sink
mrjvs Mar 16, 2024
5dc0cf8
Fix github repository path parsing
mrjvs Mar 16, 2024
07ca400
Add scrollable section if too many tabs in codegroup or tabs
mrjvs Mar 16, 2024
c4bc255
Fix centering 404 page
mrjvs Mar 16, 2024
2f38cb3
Make relative links work, even if linked to mdx files
mrjvs Mar 16, 2024
f62b212
Cleanup docs page + smaller divider
mrjvs Mar 16, 2024
0b7d370
Fix overflow issues on body
mrjvs Mar 16, 2024
0185173
Add basic mobile nav to top nav
mrjvs Mar 16, 2024
8545a2b
Fix some navigation bugs
mrjvs Mar 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 NeatoJS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
59 changes: 59 additions & 0 deletions apps/docs/components/home-card.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.container > * {
margin-bottom: 1rem;
}

.container > *:last-child {
margin-bottom: 0;
}

.card {
display: flex;
gap: .5rem;
border: 1px solid #0F2B33;
border-radius: 15px;
padding: 1.5rem;
transition: border-color 100ms ease-in-out;
}
.card:hover {
border-color: #1e4853;
}

.body {
flex: 1;
}

.right {
display: flex;
align-items: center;
}

.title {
font-size: 1.25rem;
color: white;
margin-bottom: 0.5rem;
font-weight: bold;
display: inline-block;
}
.title:hover {
opacity: 0.75;
}

.desc {
line-height: 1.3;
max-width: 320px;
}

.icon {
font-size: 1.75rem;
margin-top: 0.2rem;
color: #50A0EA;
}

@media screen and (max-width: 740px) {
.card {
flex-direction: column;
}
.right {
margin-top: 2rem;
}
}
40 changes: 40 additions & 0 deletions apps/docs/components/home-card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import type { ReactNode } from 'react';
import { Icon } from '@neato/guider/client';
import Link from 'next/link';
import styles from './home-card.module.css';

function Card(props: {
children?: ReactNode;
right?: ReactNode;
icon: string;
}) {
return (
<div className={styles.card}>
<Icon icon={props.icon} className={styles.icon} />
<div className={styles.body}>{props.children}</div>
<div className={styles.right}>{props.right}</div>
</div>
);
}

function Title(props: { children?: ReactNode; href: string }) {
return (
<Link href={props.href}>
<h1 className={styles.title}>{props.children}</h1>
</Link>
);
}

function Description(props: { children?: ReactNode }) {
return <p className={styles.desc}>{props.children}</p>;
}

export function HomeCardContainer(props: { children?: ReactNode }) {
return <div className={styles.container}>{props.children}</div>;
}

export const HomeCard = {
Card,
Title,
Description,
};
19 changes: 19 additions & 0 deletions apps/docs/components/home.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.home {
max-width: 750px;
margin: 5rem auto;
}

.title {
font-size: 2rem;
color: white;
margin-bottom: 1.5rem;
font-weight: bold;
max-width: 480px;
}

.subtitle {
font-size: 1.125rem;
line-height: 1.3;
max-width: 480px;
margin-bottom: 4rem;
}
20 changes: 20 additions & 0 deletions apps/docs/components/home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { ReactNode } from 'react';
import styles from './home.module.css';

function Container(props: { children?: ReactNode }) {
return <div className={styles.home}>{props.children}</div>;
}

function Title(props: { children?: ReactNode }) {
return <h1 className={styles.title}>{props.children}</h1>;
}

function Subtitle(props: { children?: ReactNode }) {
return <p className={styles.subtitle}>{props.children}</p>;
}

export const Home = {
Container,
Title,
Subtitle,
};
23 changes: 23 additions & 0 deletions apps/docs/components/logo.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.logo img {
height: 2rem;
margin-right: .5rem;
}

.logo {
font-weight: 700;
color: white;
display: flex;
align-items: center;
transition: background-color 100ms ease-in-out, transform 100ms ease-in-out;
border-radius: 5px;
padding: .5rem;
margin-left: -0.5rem;
}

.logo:hover {
background-color: rgb(var(--colors-bgLightest));
}

.logo:active {
transform: scale(1.05);
}
10 changes: 10 additions & 0 deletions apps/docs/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Link from 'next/link';
import styles from './logo.module.css';

export function Logo() {
return (
<Link href="/" className={styles.logo}>
<img src="/logo.svg" /> NeatoJS
</Link>
);
}
6 changes: 2 additions & 4 deletions apps/docs/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { AppProps } from 'next/app';
import '@neato/guider/style.css';
import { createGuiderApp } from '@neato/guider/client';

export default function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}
export default createGuiderApp();
3 changes: 3 additions & 0 deletions apps/docs/pages/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"site": "main"
}
39 changes: 37 additions & 2 deletions apps/docs/pages/docs/config/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
import { createRedirect } from '@neato/guider/client';
import {
Button,
Card,
CardGrid,
GuiderLayout,
Hero,
} from '@neato/guider/client';

export default createRedirect({ to: '/docs/config/guide/why-neat-config' });
export default function LandingPage() {
return (
<GuiderLayout meta={{ layout: 'page' }}>
<Hero>
<Hero.Title>Simple type-safe configuration</Hero.Title>
<Hero.Subtitle>
Configure with json files or environment variables, without losing
type-safety
</Hero.Subtitle>
<Hero.Actions>
<Button to="/docs/config/guide/why-neat-config">Get started</Button>
<Button to="https://github.com/mrjvs/neatojs" type="secondary">
View on github
</Button>
</Hero.Actions>
</Hero>
<CardGrid>
<Card icon="mdi:cube-outline" title="Focus on writing">
Effortlessly create beautiful documentation sites with just markdown.
</Card>
<Card icon="mdi:cube-outline" title="Focus on writing">
Effortlessly create beautiful documentation sites with just markdown.
</Card>
<Card icon="mdi:cube-outline" title="Focus on writing">
Effortlessly create beautiful documentation sites with just markdown.
</Card>
</CardGrid>
</GuiderLayout>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `<GuiderHeader />`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `<GuiderLayout />`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `<GuiderSidebar />`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `<GuiderToc />`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `createNotFoundPage()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `createRedirect()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `useGuiderPage()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `useGuider()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
3 changes: 0 additions & 3 deletions apps/docs/pages/docs/guider/api-reference/index.mdx

This file was deleted.

5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createRedirect } from '@neato/guider/client';

export default createRedirect({
to: '/docs/guider/api-reference/theme/define-theme',
});
5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/meta/structure.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Structure of `_meta.json`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
3 changes: 0 additions & 3 deletions apps/docs/pages/docs/guider/api-reference/test.mdx

This file was deleted.

5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/theme/component.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `component()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `defineTheme()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/theme/directory.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `directory()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/theme/group.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `group()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/theme/link.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `link()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/theme/seperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `seperator()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
5 changes: 5 additions & 0 deletions apps/docs/pages/docs/guider/api-reference/theme/site.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `site()`

<Caution>
This article is a stub, please help by contributing to the docs.
</Caution>
Loading