-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mrjvs/dev
Guider v0.1.4
- Loading branch information
Showing
81 changed files
with
1,816 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
apps/docs/pages/docs/guider/api-reference/components/guider-content-footer.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# `<GuiderContentFooter />` | ||
|
||
React component that will show the currently configured content footer. | ||
|
||
It respects configured `contentFooter` in the layout settings. Read more [about partials](../theme/settings.mdx#about-partials). | ||
|
||
|
||
## Example | ||
|
||
```tsx | ||
<GuiderContentFooter /> | ||
``` | ||
|
||
|
||
## Reference | ||
|
||
```tsx | ||
function GuiderContentFooter(): ReactNode; | ||
``` |
22 changes: 19 additions & 3 deletions
22
apps/docs/pages/docs/guider/api-reference/components/guider-header.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
# `<GuiderHeader />` | ||
|
||
<Caution> | ||
This article is a stub, please help by contributing to the docs. | ||
</Caution> | ||
React component that will show the currently configured navigation partial. | ||
|
||
It respects configured `navigation` in the layout settings. Read more [about partials](../theme/settings.mdx#about-partials). | ||
|
||
|
||
## Example | ||
|
||
```tsx | ||
<div id="custom-header"> | ||
<GuiderHeader /> // [!code focus] | ||
</div> | ||
``` | ||
|
||
|
||
## Reference | ||
|
||
```tsx | ||
function GuiderHeader(): ReactNode; | ||
``` |
62 changes: 59 additions & 3 deletions
62
apps/docs/pages/docs/guider/api-reference/components/guider-layout.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,61 @@ | ||
# `<GuiderLayout />` | ||
|
||
<Caution> | ||
This article is a stub, please help by contributing to the docs. | ||
</Caution> | ||
React component that will show the currently configured layout partial. | ||
|
||
It respects configured `layout` in the layout settings. Read more [about partials](../theme/settings.mdx#about-partials). | ||
|
||
The primary use of this component is to make a non-MDX page look like an MDX page. Don't use it if you're already in an MDX File. | ||
|
||
## Example | ||
|
||
```tsx | ||
<GuiderLayout meta={{ layout: 'page' }}> | ||
<h1>Custom page</h1> | ||
<p>This is a custom page that doesn't use MDX</p> | ||
</GuiderLayout> | ||
``` | ||
|
||
|
||
## Reference | ||
|
||
```tsx | ||
function GuiderLayout(props); | ||
``` | ||
<Field title="props" type="object" required> | ||
The props for this component. Every prop is optional. | ||
|
||
<Field.Properties defaultOpen> | ||
<Field title="meta" type="MetaConf"> | ||
The meta configuration, see [the meta file reference](../meta/structure.mdx) for the contents. | ||
</Field> | ||
<Field title="excerpt" type="string"> | ||
An excerpt of the page, used in meta tags for SEO. | ||
</Field> | ||
<Field title="headings" type="MdxHeadings[]"> | ||
The headings of the page, first depth 1 heading is used as page title for SEO. | ||
|
||
This is also to display the table of contents. | ||
|
||
<Field.Properties> | ||
<Field title="depth" type="number" required> | ||
The depth of the heading. Equals to the amount of hashtags of the heading. | ||
</Field> | ||
<Field title="value" type="string" required> | ||
Text content of the heading. | ||
</Field> | ||
<Field title="data" type="object" required> | ||
Extra data associated with the heading. | ||
|
||
<Field.Properties> | ||
<Field title="id" type="string" required> | ||
The ID of the heading. | ||
</Field> | ||
</Field.Properties> | ||
</Field> | ||
</Field.Properties> | ||
</Field> | ||
<Field title="children" type="ReactNode"> | ||
The children of the react component, it will be displayed as the page contents. | ||
</Field> | ||
</Field.Properties> | ||
</Field> |
19 changes: 19 additions & 0 deletions
19
apps/docs/pages/docs/guider/api-reference/components/guider-logo.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# `<GuiderLogo />` | ||
|
||
React component that will show the currently configured logo. | ||
|
||
It respects configured `logo` in the layout settings. Read more [about partials](../theme/settings.mdx#about-partials). | ||
|
||
|
||
## Example | ||
|
||
```tsx | ||
<GuiderLogo /> | ||
``` | ||
|
||
|
||
## Reference | ||
|
||
```tsx | ||
function GuiderLogo(): ReactNode; | ||
``` |
19 changes: 19 additions & 0 deletions
19
apps/docs/pages/docs/guider/api-reference/components/guider-page-footer.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# `<GuiderPageFooter />` | ||
|
||
React component that will show the currently configured page footer. | ||
|
||
It respects configured `pageFooter` in the layout settings. Read more [about partials](../theme/settings.mdx#about-partials). | ||
|
||
|
||
## Example | ||
|
||
```tsx | ||
<GuiderPageFooter /> | ||
``` | ||
|
||
|
||
## Reference | ||
|
||
```tsx | ||
function GuiderPageFooter(): ReactNode; | ||
``` |
Oops, something went wrong.