Skip to content

Commit

Permalink
[Docs] Add page title
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Feb 8, 2016
1 parent 484f038 commit 646f790
Show file tree
Hide file tree
Showing 51 changed files with 179 additions and 17 deletions.
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"native:development": "node_modules/react-native/packager/packager.sh --reset-cache",
"android:setup-port": "adb reverse tcp:8081 tcp:8081"
},
"dependencies": {},
"dependencies": {
"react-title-component": "^1.0.1"
},
"devDependencies": {
"babel-eslint": "^4.1.6",
"babel-plugin-transform-react-constant-elements": "^6.3.13",
Expand Down
13 changes: 5 additions & 8 deletions docs/src/app/components/master.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import React from 'react';
import Title from 'react-title-component';

import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-button';
import {Spacing} from 'material-ui/lib/styles';
import {
StylePropable,
StyleResizable,
} from 'material-ui/lib/mixins';
import {StylePropable, StyleResizable} from 'material-ui/lib/mixins';

import {
Colors,
getMuiTheme,
} from 'material-ui/lib/styles';
import {Colors, getMuiTheme} from 'material-ui/lib/styles';

import AppLeftNav from './app-left-nav';
import FullWidthSection from './full-width-section';
Expand Down Expand Up @@ -172,6 +168,7 @@ const Master = React.createClass({

return (
<div>
<Title render="Material-UI" />
<AppBar
onLeftIconButtonTouchTap={this.handleTouchTapLeftIconButton}
title={title}
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/AppBar/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -22,6 +24,7 @@ const descriptions = {

const AppBarPage = () => (
<div>
<Title render={(previousTitle) => `App Bar - ${previousTitle}`} />
<MarkdownElement text={appBarReadmeText} />
<CodeExample
code={appBarExampleIconCode}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -22,6 +24,7 @@ const descriptions = {

const AutoCompletesPage = () => (
<div>
<Title render={(previousTitle) => `Auto Complete - ${previousTitle}`} />
<MarkdownElement text={autoCompleteReadmeText} />
<CodeExample
code={autoCompleteExampleSimpleCode}
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Avatar/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -13,6 +15,7 @@ const description = 'Examples of `Avatar` using an image, [Font Icon](/#/compone

const AvatarsPage = () => (
<div>
<Title render={(previousTitle) => `Avatar - ${previousTitle}`} />
<MarkdownElement text={avatarReadmeText} />
<CodeExample
code={avatarExampleSimpleCode}
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Badge/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -21,6 +23,7 @@ const descriptions = {

const BadgePage = () => (
<div>
<Title render={(previousTitle) => `Badge - ${previousTitle}`} />
<MarkdownElement text={badgeReadmeText} />
<CodeExample
title="Simple examples"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Card/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand Down Expand Up @@ -26,6 +28,7 @@ const descriptions = {

const CardPage = () => (
<div>
<Title render={(previousTitle) => `Card - ${previousTitle}`} />
<MarkdownElement text={cardReadmeText} />
<CodeExample
title="Card components example"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Checkbox/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -15,6 +17,7 @@ const description = 'The second example is selected by default using the `defaul

const CheckboxPage = () => (
<div>
<Title render={(previousTitle) => `Checkbox - ${previousTitle}`} />
<MarkdownElement text={checkboxReadmeText} />
<CodeExample
title="Examples"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -18,6 +20,7 @@ const descriptions = {

const CircleProgressPage = () => (
<div>
<Title render={(previousTitle) => `Circular Progress - ${previousTitle}`} />
<MarkdownElement text={circleProgressReadmeText} />
<CodeExample
title="Indeterminate progress"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/DatePicker/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand Down Expand Up @@ -29,6 +31,7 @@ const descriptions = {

const DatePickerPage = () => (
<div>
<Title render={(previousTitle) => `Date Picker - ${previousTitle}`} />
<MarkdownElement text={datePickerReadmeText} />
<CodeExample
title="Simple examples"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Dialog/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -25,6 +27,7 @@ const descriptions = {

const DialogPage = () => (
<div>
<Title render={(previousTitle) => `Dialog - ${previousTitle}`} />
<MarkdownElement text={dialogReadmeText} />
<CodeExample
title="Simple dialog"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Divider/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -23,6 +25,7 @@ const descriptions = {
const DividerPage = () => {
return (
<div>
<Title render={(previousTitle) => `Divider - ${previousTitle}`} />
<MarkdownElement text={dividerReadmeText} />
<CodeExample
title="Form divider"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -23,6 +25,7 @@ const descriptions = {

const DropDownMenuPage = () => (
<div>
<Title render={(previousTitle) => `Drop Down Menu - ${previousTitle}`} />
<MarkdownElement text={dropDownMenuReadmeText} />
<CodeExample
title="Simple example"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/FlatButton/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -19,6 +21,7 @@ const descriptions = {

const FlatButtonPage = () => (
<div>
<Title render={(previousTitle) => `Flat Button - ${previousTitle}`} />
<MarkdownElement text={flatButtonReadmeText} />
<CodeExample
title="Simple examples"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -15,6 +17,7 @@ const descriptions = {

const FloatingActionButtonPage = () => (
<div>
<Title render={(previousTitle) => `Floating Action Button - ${previousTitle}`} />
<MarkdownElement text={floatingButtonReadmeText} />
<CodeExample description={descriptions.simple} code={floatingButtonExampleSimpleCode}>
<FloatingButtonExampleSimple />
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/FontIcon/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -20,6 +22,7 @@ const descriptions = {

const FontIconPage = () => (
<div>
<Title render={(previousTitle) => `Font Icon - ${previousTitle}`} />
<MarkdownElement text={iconReadmeText} />
<CodeExample
title="Custom icon font"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/GridList/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -19,6 +21,7 @@ const descriptions = {

const GridListPage = () => (
<div>
<Title render={(previousTitle) => `Grid List - ${previousTitle}`} />
<MarkdownElement text={gridListReadmeText} />
<CodeExample
title="Simple example"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/IconButton/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -24,6 +26,7 @@ const descriptions = {

const IconButtonPage = () => (
<div>
<Title render={(previousTitle) => `Icon Button - ${previousTitle}`} />
<MarkdownElement text={iconButtonReadmeText} />
<CodeExample
title="Simple example"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/IconMenu/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -21,6 +23,7 @@ const descriptions = {

const IconMenusPage = () => (
<div>
<Title render={(previousTitle) => `Icon Menu - ${previousTitle}`} />
<MarkdownElement text={iconMenuReadmeText} />
<CodeExample
title="Icon Menu positioning"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/LeftNav/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -23,6 +25,7 @@ const descriptions = {

const LeftNavPage = () => (
<div>
<Title render={(previousTitle) => `Left Nav - ${previousTitle}`} />
<MarkdownElement text={leftNavReadmeText} />
<CodeExample
title="Docked example"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -18,6 +20,7 @@ const descriptions = {

const LinearProgressPage = () => (
<div>
<Title render={(previousTitle) => `Linear Progress - ${previousTitle}`} />
<MarkdownElement text={linearProgressReadmeText} />
<CodeExample
title="Indeterminate progress"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/List/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand Down Expand Up @@ -42,6 +44,7 @@ const descriptions = {

const ListPage = () => (
<div>
<Title render={(previousTitle) => `List - ${previousTitle}`} />
<MarkdownElement text={listReadmeText} />
<CodeExample
title="Simple list"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Menu/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand Down Expand Up @@ -29,6 +31,7 @@ const descriptions = {

const MenuPage = () => (
<div>
<Title render={(previousTitle) => `Menu - ${previousTitle}`} />
<MarkdownElement text={menuReadmeText} />
<CodeExample
title="Simple examples"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Paper/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -20,6 +22,7 @@ const descriptions = {

const PaperPage = () => (
<div>
<Title render={(previousTitle) => `Paper - ${previousTitle}`} />
<MarkdownElement text={paperReadmeText} />
<CodeExample
title="Simple example"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/Popover/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -22,6 +24,7 @@ const descriptions = {

const PopoverPage = () => (
<div>
<Title render={(previousTitle) => `Popover - ${previousTitle}`} />
<MarkdownElement text={popoverReadmeText} />
<CodeExample
title="Simple example"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/app/components/pages/components/RadioButton/Page.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import Title from 'react-title-component';

import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
Expand All @@ -15,6 +17,7 @@ const description = 'The second button is selected by default using the `default

const RadioButtonPage = () => (
<div>
<Title render={(previousTitle) => `Radio Button - ${previousTitle}`} />
<MarkdownElement text={radioButtonReadmeText} />
<CodeExample
title="Examples"
Expand Down
Loading

0 comments on commit 646f790

Please sign in to comment.