Skip to content

Commit

Permalink
feat(docs): flatten file structure and all links (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoya authored Aug 13, 2019
1 parent 5a8895b commit 7f7c481
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 36 deletions.
14 changes: 7 additions & 7 deletions packages/docs/PropTables/MarginPropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="margin"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand All @@ -17,7 +17,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="marginTop"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand All @@ -27,7 +27,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="marginRight"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand All @@ -37,7 +37,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="marginBottom"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand All @@ -47,7 +47,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="marginLeft"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand All @@ -57,7 +57,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="marginVertical"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand All @@ -67,7 +67,7 @@ export const MarginPropTable: React.FC = () => (
<PropTable.Prop
name="marginHorizontal"
types={
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>
}
Expand Down
14 changes: 7 additions & 7 deletions packages/docs/PropTables/PaddingPropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="padding"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand All @@ -17,7 +17,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="paddingTop"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand All @@ -27,7 +27,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="paddingRight"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand All @@ -37,7 +37,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="paddingBottom"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand All @@ -47,7 +47,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="paddingLeft"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand All @@ -57,7 +57,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="paddingVertical"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand All @@ -67,7 +67,7 @@ export const PaddingPropTable: React.FC = () => (
<PropTable.Prop
name="paddingHorizontal"
types={
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
}
Expand Down
18 changes: 9 additions & 9 deletions packages/docs/components/SideNav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const SideNav: React.FC = () => {
<SideNavLink href="/Button/ButtonPage" as="/button">
Button
</SideNavLink>
<SideNavLink href="/Form/CheckboxPage" as="/form/checkbox">
<SideNavLink href="/Checkbox/CheckboxPage" as="/checkbox">
Checkbox
</SideNavLink>
<SideNavLink href="/Dropdown/DropdownPage" as="/dropdown">
Expand All @@ -60,19 +60,19 @@ export const SideNav: React.FC = () => {
<SideNavLink href="/Form/FormPage" as="/form">
Form
</SideNavLink>
<SideNavLink href="/Form/InputPage" as="/form/input">
<SideNavLink href="/Input/InputPage" as="/input">
Input
</SideNavLink>
<SideNavLink href="/Link/LinkPage" as="/link">
Link
</SideNavLink>
<SideNavLink href="/Form/RadioPage" as="/form/radio">
<SideNavLink href="/Radio/RadioPage" as="/radio">
Radio
</SideNavLink>
<SideNavLink href="/Form/SelectPage" as="/form/select">
<SideNavLink href="/Select/SelectPage" as="/select">
Select
</SideNavLink>
<SideNavLink href="/Form/TextareaPage" as="/form/textarea">
<SideNavLink href="/Textarea/TextareaPage" as="/textarea">
Textarea
</SideNavLink>
</SideNavGroup>
Expand All @@ -81,10 +81,10 @@ export const SideNav: React.FC = () => {
<SideNavLink href="/Badge/BadgePage" as="/badge">
Badge
</SideNavLink>
<SideNavLink href="/Progress/ProgressBarPage" as="/progress/bar">
<SideNavLink href="/Progress/ProgressBarPage" as="/progress-bar">
Progress Bar
</SideNavLink>
<SideNavLink href="/Progress/ProgressCirclePage" as="/progress/circle">
<SideNavLink href="/Progress/ProgressCirclePage" as="/progress-circle">
Progress Circle
</SideNavLink>
<SideNavLink href="/Tooltip/TooltipPage" as="/tooltip">
Expand All @@ -105,10 +105,10 @@ export const SideNav: React.FC = () => {
<SideNavLink href="/Grid/GridPage" as="/grid">
Grid
</SideNavLink>
<SideNavLink href="/Utilities/MarginPage" as="/utilities/margin">
<SideNavLink href="/Margin/MarginPage" as="/margin">
Margin
</SideNavLink>
<SideNavLink href="/Utilities/PaddingPage" as="/utilities/padding">
<SideNavLink href="/Padding/PaddingPage" as="/padding">
Padding
</SideNavLink>
</SideNavGroup>
Expand Down
18 changes: 9 additions & 9 deletions packages/docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ module.exports = {
'/box': { page: '/Box/BoxPage' },
'/breakpoints': { page: '/Breakpoints/BreakpointsPage' },
'/button': { page: '/Button/ButtonPage' },
'/checkbox': { page: '/Checkbox/CheckboxPage' },
'/colors': { page: '/Colors/ColorsPage' },
'/dropdown': { page: '/Dropdown/DropdownPage' },
'/flex': { page: '/Flex/FlexPage' },
'/form': { page: '/Form/FormPage' },
'/form/checkbox': { page: '/Form/CheckboxPage' },
'/form/input': { page: '/Form/InputPage' },
'/form/radio': { page: '/Form/RadioPage' },
'/form/select': { page: '/Form/SelectPage' },
'/form/textarea': { page: '/Form/TextareaPage' },
'/grid': { page: '/Grid/GridPage' },
'/icons': { page: '/Icons/IconsPage' },
'/input': { page: '/Input/InputPage' },
'/link': { page: '/Link/LinkPage' },
'/margin': { page: '/Margin/MarginPage' },
'/modal': { page: '/Modal/ModalPage' },
'/padding': { page: '/Padding/PaddingPage' },
'/panel': { page: '/Panel/PanelPage' },
'/progress/bar': { page: '/Progress/ProgressBarPage' },
'/progress/circle': { page: '/Progress/ProgressCirclePage' },
'/progress-bar': { page: '/Progress/ProgressBarPage' },
'/progress-circle': { page: '/Progress/ProgressCirclePage' },
'/radio': { page: '/Radio/RadioPage' },
'/select': { page: '/Select/SelectPage' },
'/spacing': { page: '/Spacing/SpacingPage' },
'/tabs': { page: '/Tabs/TabsPage' },
'/textarea': { page: '/Textarea/TextareaPage' },
'/tooltip': { page: '/Tooltip/TooltipPage' },
'/typography': { page: '/Typography/TypographyPage' },
'/utilities/margin': { page: '/Utilities/MarginPage' },
'/utilities/padding': { page: '/Utilities/PaddingPage' },
}),
};
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default () => (

<Text>
You can also specify margins with an object to handle different margins with different{' '}
<NextLink href="/Breakpoint/BreakpointPage" as="/utilities/breakpoints">
<NextLink href="/Breakpoint/BreakpointPage" as="/breakpoints">
breakpoints
</NextLink>
. All values must be of{' '}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default () => (

<Text>
You can also specify paddings with an object to handle different paddings with different{' '}
<NextLink href="/Breakpoint/BreakpointPage" as="/utilities/breakpoints">
<NextLink href="/Breakpoint/BreakpointPage" as="/breakpoints">
breakpoints
</NextLink>
. All values must be of{' '}
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/docs/pages/Spacing/SpacingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default () => {

<Text>
Spacing can be used directly on certain properties that expect a size value, like{' '}
<NextLink href="/Utilities/MarginPage" as="/utilities/margin">
<NextLink href="/Margin/MarginPage" as="/margin">
Margin
</NextLink>{' '}
and{' '}
<NextLink href="/Utilities/PaddingPage" as="/utilities/padding">
<NextLink href="/Padding/PaddingPage" as="/padding">
Padding
</NextLink>
.
Expand Down
File renamed without changes.

0 comments on commit 7f7c481

Please sign in to comment.