Skip to content

Commit

Permalink
Back to README style docs for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed May 12, 2020
1 parent 656c047 commit a1f5d41
Show file tree
Hide file tree
Showing 31 changed files with 165 additions and 364 deletions.
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: Changelog
route: /changelog
---

# React Table Changelog

## 7.0.4
Expand Down
31 changes: 13 additions & 18 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: Code of Conduct
route: /code-of-conduct
---

# Contributor Covenant Code of Conduct

## Our Pledge
Expand All @@ -19,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Expand Down
5 changes: 0 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: Contributing
route: /contributing
---

# Contributing

## Questions
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: Getting Started
route: /
---

![React Table Header](https://github.com/tannerlinsley/react-table/raw/master/media/header.png)

<img src='https://github.com/tannerlinsley/react-table/raw/master/media/logo.png' width='300'/>
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useAbsoluteLayout.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useAbsoluteLayout
route: /api/useAbsoluteLayout
menu: API
---

# `useAbsoluteLayout`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useBlockLayout.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useBlockLayout
route: /api/useBlockLayout
menu: API
---

# `useBlockLayout`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useColumnOrder.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useColumnOrder
route: /api/useColumnOrder
menu: API
---

# `useColumnOrder`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useExpanded.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useExpanded
route: /api/useExpanded
menu: API
---

# `useExpanded`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useFilters.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useFilters
route: /api/useFilters
menu: API
---

# `useFilters`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useFlexLayout.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useFlexLayout
route: /api/useFlexLayout
menu: API
---

# `useFlexLayout`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useGlobalFilter.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useGlobalFilter
route: /api/useGlobalFilter
menu: API
---

# `useGlobalFilter`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useGroupBy.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useGroupBy
route: /api/useGroupBy
menu: API
---

# `useGroupBy`

- Plugin Hook
Expand Down
5 changes: 0 additions & 5 deletions docs/api/usePagination.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: usePagination
route: /api/usePagination
menu: API
---
# `usePagination`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useResizeColumns.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useResizeColumns
route: /api/useResizeColumns
menu: API
---

# `useResizeColumns`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useRowSelect.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useRowSelect
route: /api/useRowSelect
menu: API
---

# `useRowSelect`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useRowState.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useRowState
route: /api/useRowState
menu: API
---

# `useRowState`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useSortBy.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useSortBy
route: /api/useSortBy
menu: API
---

# `useSortBy`

- Plugin Hook
Expand Down
6 changes: 0 additions & 6 deletions docs/api/useTable.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: useTable
route: /api/useTable
menu: API
---

# `useTable`

- Required
Expand Down
14 changes: 0 additions & 14 deletions docs/api/useTokenPagination.md

This file was deleted.

6 changes: 1 addition & 5 deletions docs/concepts.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: Concepts
route: /concepts
---

# Concepts

## React Table is a "headless" UI library
Expand Down Expand Up @@ -33,6 +28,7 @@ As of React Table v7, **you the developer** are responsible for rendering your o
---

After reading about React Table's concepts, you should:

- [Follow the Quick Start](./quickstart.mdx)
- [Check Out Some Examples](./examples)
- [Study the API](./api)
5 changes: 0 additions & 5 deletions docs/examples.mdx → docs/examples.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
name: Examples
route: /examples
---

# Examples

- [**Simple**](./examples/simple.mdx) - All of these examples use automatic state management, meaning, they don't hoist any state out of the table or manually control anything. Start here for understanding the basics about how to build your table UI.
Expand Down
12 changes: 12 additions & 0 deletions docs/examples/complex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Complex

These examples are more advanced because they demonstrate how to manually control and respond to the state of the table.

## The "Kitchen Sink"

This example includes Pagination, Sorting, Filtering, Grouping, Expandable Rows and Row Selection so it's called the _Kitchen Sink_.

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/kitchen-sink)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/kitchen-sink)

* Want to add another example? [Submit a PR!](https://github.com/tannerlinsley/react-table/compare)
25 changes: 0 additions & 25 deletions docs/examples/complex.mdx

This file was deleted.

10 changes: 10 additions & 0 deletions docs/examples/controlled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Controlled

These examples are more advanced because they demonstrate how to manually control and respond to the state of the table.

## Pagination (Controlled)

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/pagination-controlled)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/pagination-controlled)

* Want to add another example? [Submit a PR!](https://github.com/tannerlinsley/react-table/compare)
23 changes: 0 additions & 23 deletions docs/examples/controlled.mdx

This file was deleted.

13 changes: 0 additions & 13 deletions docs/examples/simple.mdx → docs/examples/simple.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
name: Simple
route: /examples/simple
menu: Examples
---

# Simple

All of these examples use automatic state management, meaning, they don't hoist any state out of the table or manually control anything. Start here for understanding the basics about how to build your table UI.
Expand All @@ -12,13 +6,6 @@ All of these examples use automatic state management, meaning, they don't hoist

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/basic)
- [Open in CodeSandbox](https://codesandbox.io/embed/github/tannerlinsley/react-table/tree/master/examples/basic)
<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-table/tree/master/examples/basic?autoresize=1&fontsize=14&module=%2Fsrc%2FApp.js&theme=dark"
style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;"
title="tannerlinsley/react-table: basic"
allow="geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
></iframe>

## Footers

Expand Down
36 changes: 36 additions & 0 deletions docs/examples/ui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# UI and Rendering

These examples demonstrate how to use React Table with your favorite UI libraries or tools!

## Virtualized Rows (React-Window)

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/virtualized-rows)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/virtualized-rows)

## Animated (Framer-Motion)

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/animated-framer-motion)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/animated-framer-motion)

## Material-UI

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/material-UI-components)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/material-UI-components)

## Material-UI Enhanced Table

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/material-UI-enhanced-table)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/material-UI-enhanced-table)

## RMWC Table

- [Source](https://github.com/tannerlinsley/react-table/tree/master/examples/rmwc-components)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/rmwc-components)

## Todo

- [ ] Styled-Components
- [ ] CSS
- [ ] Bootstrap

* Want to write one of these examples or add another? [Submit a PR!](https://github.com/tannerlinsley/react-table/compare)
Loading

0 comments on commit a1f5d41

Please sign in to comment.