Skip to content

Commit

Permalink
Correct links for deploy on various deployment environment.
Browse files Browse the repository at this point in the history
  - Change API reference link to relative link
  - Correct links to other components, all links to other components should end with "/"
  - Update icon-links on home, tutorial and components page
  • Loading branch information
yeelan0319 committed Apr 26, 2016
1 parent c15fd0c commit 2b6f7f4
Show file tree
Hide file tree
Showing 22 changed files with 63 additions and 62 deletions.
10 changes: 5 additions & 5 deletions components/AppBar/README.md
Expand Up @@ -23,8 +23,8 @@ navigation experience.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/AppBar/apidocs/Classes/MDCAppBarContainerViewController.html">MDCAppBarContainerViewController</a></li>
<li class="icon-link"><a href="/components/AppBar/apidocs/Protocols/MDCAppBarParenting.html">MDCAppBarParenting</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCAppBarContainerViewController.html">MDCAppBarContainerViewController</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCAppBarParenting.html">MDCAppBarParenting</a></li>
</ul>

- - -
Expand Down Expand Up @@ -57,9 +57,9 @@ $ pod install
The App Bar is a composite component that initializes and provides access to instances of the
following components:

- [Flexible Header](../FlexibleHeader)
- [Header Stack View](../HeaderStackView)
- [Navigation Bar](../NavigationBar)
- [Flexible Header](../FlexibleHeader/)
- [Header Stack View](../HeaderStackView/)
- [Navigation Bar](../NavigationBar/)

The provided view hierarchy looks like so:

Expand Down
4 changes: 2 additions & 2 deletions components/ButtonBar/README.md
Expand Up @@ -12,8 +12,8 @@ The Button Bar is a view that represents a list of UIBarButtonItems as horizonta
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/ButtonBar/apidocs/Classes/MDCButtonBar.html">MDCButtonBar</a></li>
<li class="icon-link"><a href="/components/ButtonBar/apidocs/Protocols/MDCButtonBarDelegate.html">MDCButtonBarDelegate</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCButtonBar.html">MDCButtonBar</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCButtonBarDelegate.html">MDCButtonBarDelegate</a></li>
</ul>


Expand Down
8 changes: 4 additions & 4 deletions components/Buttons/README.md
Expand Up @@ -25,10 +25,10 @@ floating action button.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/Buttons/apidocs/Classes/MDCFlatButton.html">MDCFlatButton</a></li>
<li class="icon-link"><a href="/components/Buttons/apidocs/Classes/MDCFloatingButton.html">MDCFloatingButton</a></li>
<li class="icon-link"><a href="/components/Buttons/apidocs/Classes/MDCRaisedButton.html">MDCRaisedButton</a></li>
<li class="icon-link"><a href="/components/Buttons/apidocs/Classes/MDCButton.html">MDCButton</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCFlatButton.html">MDCFlatButton</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCFloatingButton.html">MDCFloatingButton</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCRaisedButton.html">MDCRaisedButton</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCButton.html">MDCButton</a></li>
</ul>


Expand Down
6 changes: 3 additions & 3 deletions components/CollectionCells/README.md
Expand Up @@ -21,8 +21,8 @@ Collection view cell classes that adhere to Material design layout and styling.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/CollectionCells/apidocs/Classes/MDCCollectionViewCell.html">MDCCollectionViewCell</a></li>
<li class="icon-link"><a href="/components/CollectionCells/apidocs/Classes/MDCCollectionViewTextCell.html">MDCCollectionViewTextCell</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCCollectionViewCell.html">MDCCollectionViewCell</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCCollectionViewTextCell.html">MDCCollectionViewTextCell</a></li>
</ul>

- - -
Expand All @@ -36,5 +36,5 @@ Collection view cell classes that adhere to Material design layout and styling.

## Usage

Please see the [Collections](../Collections) component for more information about using Collection
Please see the [Collections](../Collections/) component for more information about using Collection
Cells. We do not presently support using Collection Cells as a standalone component.
2 changes: 1 addition & 1 deletion components/CollectionLayoutAttributes/README.md
Expand Up @@ -12,7 +12,7 @@ Allows passing layout attributes to the cells and supplementary views.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/CollectionLayoutAttributesCells/apidocs/Classes/MDCCollectionViewLayoutAttributes.html">MDCCollectionViewLayoutAttributes</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCCollectionViewLayoutAttributes.html">MDCCollectionViewLayoutAttributes</a></li>
</ul>

- - -
Expand Down
14 changes: 7 additions & 7 deletions components/Collections/README.md
Expand Up @@ -21,12 +21,12 @@ Collection view classes that adhere to Material design layout and styling.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/Collections/apidocs/Classes/MDCCollectionViewController.html">MDCCollectionViewController</a></li>
<li class="icon-link"><a href="/components/Collections/apidocs/Protocols/MDCCollectionViewEditing.html">MDCCollectionViewEditing</a></li>
<li class="icon-link"><a href="/components/Collections/apidocs/Protocols/MDCCollectionViewEditingDelegate.html">MDCCollectionViewEditingDelegate</a></li>
<li class="icon-link"><a href="/components/Collections/apidocs/Classes/MDCCollectionViewFlowLayout.html">MDCCollectionViewFlowLayout</a></li>
<li class="icon-link"><a href="/components/Collections/apidocs/Protocols/MDCCollectionViewStyling.html">MDCCollectionViewStyling</a></li>
<li class="icon-link"><a href="/components/Collections/apidocs/Protocols/MDCCollectionViewStylingDelegate.html">MDCCollectionViewStylingDelegate</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCCollectionViewController.html">MDCCollectionViewController</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCCollectionViewEditing.html">MDCCollectionViewEditing</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCCollectionViewEditingDelegate.html">MDCCollectionViewEditingDelegate</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCCollectionViewFlowLayout.html">MDCCollectionViewFlowLayout</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCCollectionViewStyling.html">MDCCollectionViewStyling</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCCollectionViewStylingDelegate.html">MDCCollectionViewStylingDelegate</a></li>
</ul>

- - -
Expand Down Expand Up @@ -276,7 +276,7 @@ self.styler.gridColumnCount = 2
The styler allows customizing cell separators for the entire collection view. Individual
cell customization is also available by using an `MDCCollectionViewCell` cell or a subclass of it.
Learn more by reading the section on [Cell Separators](../CollectionCells/#cell-separators) in the
[CollectionCells](../CollectionCells) component.
[CollectionCells](../CollectionCells/) component.

<!--<div class="material-code-render" markdown="1">-->
#### Objective-C
Expand Down
10 changes: 5 additions & 5 deletions components/FlexibleHeader/README.md
Expand Up @@ -24,11 +24,11 @@ UIScrollViewDelegate events.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/FlexibleHeader/apidocs/Classes/MDCFlexibleHeaderContainerViewController.html">MDCFlexibleHeaderContainerViewController</a></li>
<li class="icon-link"><a href="/components/FlexibleHeader/apidocs/Classes/MDCFlexibleHeaderView.html">MDCFlexibleHeaderView</a></li>
<li class="icon-link"><a href="/components/FlexibleHeader/apidocs/Classes/MDCFlexibleHeaderViewController.html">MDCFlexibleHeaderViewController</a></li>
<li class="icon-link"><a href="/components/FlexibleHeader/apidocs/Protocols/MDCFlexibleHeaderViewDelegate.html">MDCFlexibleHeaderViewDelegate</a></li>
<li class="icon-link"><a href="/components/FlexibleHeader/apidocs/Protocols/MDCFlexibleHeaderViewLayoutDelegate.html">MDCFlexibleHeaderViewLayoutDelegate</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCFlexibleHeaderContainerViewController.html">MDCFlexibleHeaderContainerViewController</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCFlexibleHeaderView.html">MDCFlexibleHeaderView</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCFlexibleHeaderViewController.html">MDCFlexibleHeaderViewController</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCFlexibleHeaderViewDelegate.html">MDCFlexibleHeaderViewDelegate</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCFlexibleHeaderViewLayoutDelegate.html">MDCFlexibleHeaderViewLayoutDelegate</a></li>
</ul>


Expand Down
2 changes: 1 addition & 1 deletion components/FontDiskLoader/README.md
Expand Up @@ -25,7 +25,7 @@ Registers a single custom font asset from disk

<ul class="icon-list">
<li class="icon-link">
<a href="/apidocs/<FontDiskLoader>/Classes/MDCFontDiskLoader.html">
<a href="apidocs/<FontDiskLoader>/Classes/MDCFontDiskLoader.html">
MDCFontDiskLoader
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion components/HeaderStackView/README.md
Expand Up @@ -22,7 +22,7 @@ bar views.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/HeaderStackView/apidocs/Classes/MDCHeaderStackView.html">MDCHeaderStackView</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCHeaderStackView.html">MDCHeaderStackView</a></li>
</ul>


Expand Down
6 changes: 3 additions & 3 deletions components/Ink/README.md
Expand Up @@ -22,9 +22,9 @@ outward from the user's touch.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/Ink/apidocs/Classes/MDCInkTouchController.html">MDCInkTouchController</a></li>
<li class="icon-link"><a href="/components/Ink/apidocs/Classes/MDCInkView.html">MDCInkView</a></li>
<li class="icon-link"><a href="/components/Ink/apidocs/Protocols/MDCInkTouchControllerDelegate.html">MDCInkTouchControllerDelegate</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCInkTouchController.html">MDCInkTouchController</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCInkView.html">MDCInkView</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCInkTouchControllerDelegate.html">MDCInkTouchControllerDelegate</a></li>
</ul>


Expand Down
4 changes: 2 additions & 2 deletions components/NavigationBar/README.md
Expand Up @@ -19,8 +19,8 @@ label or a custom title view.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/NavigationBar/apidocs/Classes/MDCNavigationBar.html">MDCNavigationBar</a></li>
<li class="icon-link"><a href="/components/NavigationBar/apidocs/Protocols/MDCUINavigationItemObservables.html">MDCUINavigationItemObservables</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCNavigationBar.html">MDCNavigationBar</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCUINavigationItemObservables.html">MDCUINavigationItemObservables</a></li>
</ul>


Expand Down
2 changes: 1 addition & 1 deletion components/PageControl/README.md
Expand Up @@ -23,7 +23,7 @@ desired animation of the control.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/PageControl/apidocs/Classes/MDCPageControl.html">MDCPageControl</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCPageControl.html">MDCPageControl</a></li>
</ul>


Expand Down
6 changes: 3 additions & 3 deletions components/README.md
Expand Up @@ -12,13 +12,13 @@ interface components for iOS. These components implement Google's
and are developed by a team of iOS engineers and UX designers at Google.


- [Development Guide](/howto/)
- [Development Guide]({{ site.folder }}/howto/)
<!--{: .icon-guide }-->

- [Code Samples](/howto/#sample-code)
- [Code Samples]({{ site.folder }}/howto/tutorial/#sample-code)
<!--{: .icon-sample }-->

- [Stack Overflow](http://stackoverflow.com/questions/tagged/material-components-ios)
- [Stack Overflow "material-components-ios"](http://stackoverflow.com/questions/tagged/material-components-ios)
<!--{: .icon-stackoverflow }-->

- [Github](https://github.com/google/material-components-ios/)
Expand Down
2 changes: 1 addition & 1 deletion components/RobotoFontLoader/README.md
Expand Up @@ -30,7 +30,7 @@ The Roboto Font Loader lazy loads the Roboto font.

<ul class="icon-list">
<li class="icon-link">
<a href="/components/RobotoFontLoader/apidocs/Classes/MDCRobotoFontLoader.html">
<a href="apidocs/Classes/MDCRobotoFontLoader.html">
MDCRobotoFontLoader
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion components/ShadowElevations/README.md
Expand Up @@ -18,7 +18,7 @@ This component provides the most commonly-used Material Design elevations.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/ShadowElevations/apidocs/Constants.html">ShadowElevations Constants</a></li>
<li class="icon-link"><a href="apidocs/Constants.html">ShadowElevations Constants</a></li>
</ul>


Expand Down
6 changes: 3 additions & 3 deletions components/ShadowLayer/README.md
Expand Up @@ -25,7 +25,7 @@ return `MDCShadowLayer`.

`elevation` sets the diffusion level of the shadow. The higher the shadow elevation, the more
diffused the shadow becomes. Elevation uses points as a unit to specify height. Common shadow
elevations are defined in [MDCShadowElevations](../ShadowElevations) and range from 0 to 24 points.
elevations are defined in [MDCShadowElevations](../ShadowElevations/) and range from 0 to 24 points.
The shadow diffusion effect diminishes as elevations exceed 24 points.

Set `shadowMaskEnabled` to ensure the interior, non-shadow portion of the layer is visible.
Expand All @@ -46,8 +46,8 @@ shadow that adheres to defined height and light source principles.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/ShadowLayer/apidocs/Classes/MDCShadowLayer.html">MDCShadowLayer</a></li>
<li class="icon-link"><a href="/components/ShadowLayer/apidocs/Classes/MDCShadowMetrics.html">MDCShadowMetrics</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCShadowLayer.html">MDCShadowLayer</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCShadowMetrics.html">MDCShadowMetrics</a></li>
</ul>


Expand Down
2 changes: 1 addition & 1 deletion components/Slider/README.md
Expand Up @@ -22,7 +22,7 @@ or discrete set of values.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/Slider/apidocs/Classes/MDCSlider.html">MDCSlider</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCSlider.html">MDCSlider</a></li>
</ul>

- - -
Expand Down
9 changes: 4 additions & 5 deletions components/Switch/README.md
Expand Up @@ -23,8 +23,8 @@ that `MDCSwitch` objects have an intrinsic size and are not resizable.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/Switch/apidocs/Classes/MDCSwitch.html">MDCSwitch</a></li>
<li class="icon-link"><a href="/components/Switch/apidocs/Functions.html">Global Functions</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCSwitch.html">MDCSwitch</a></li>
<li class="icon-link"><a href="apidocs/Functions.html">Global Functions</a></li>
</ul>


Expand Down Expand Up @@ -79,8 +79,8 @@ import MaterialComponents

<!--<div class="material-code-render" markdown="1">-->
### Objective C
~~~ objc

~~~ objc
- (void)viewDidLoad {
[super viewDidLoad];

Expand All @@ -95,8 +95,8 @@ import MaterialComponents
- (void)didChangeSliderValue:(id)sender {
...
}

~~~

#### Swift
~~~ swift
override func viewDidLoad() {
Expand All @@ -112,6 +112,5 @@ import MaterialComponents
func didChangeSwitchValue(senderSwitch:MDCSwitch) {
NSLog("did change value: %@", senderSwitch.on);
}

~~~
<!--</div>-->
14 changes: 8 additions & 6 deletions components/Typography/README.md
Expand Up @@ -22,11 +22,11 @@ from the Material Design specifications.
### API Documentation

<ul class="icon-list">
<li class="icon-link"><a href="/components/Typography/apidocs/Classes/MDCTypography.html">MDCTypography</a></li>
<li class="icon-link"><a href="/components/FontDiskLoader/apidocs/Classes/MDCFontDiskLoader.html">MDCFontDiskLoader</a></li>
<li class="icon-link"><a href="/components/RobotoFontLoader/apidocs/Classes/MDCRobotoFontLoader.html">MDCRobotoFontLoader</a></li>
<li class="icon-link"><a href="/components/Typography/apidocs/Classes.html#/c:objc(cs)MDCSystemFontLoader">MDCSystemFontLoader</a></li>
<li class="icon-link"><a href="/components/Typography/apidocs/Protocols/MDCTypographyFontLoader.html">MDCTypographyFontLoader</a></li>
<li class="icon-link"><a href="apidocs/Classes/MDCTypography.html">MDCTypography</a></li>
<li class="icon-link"><a href="../FontDiskLoader/apidocs/Classes/MDCFontDiskLoader.html">MDCFontDiskLoader</a></li>
<li class="icon-link"><a href="../RobotoFontLoader/apidocs/Classes/MDCRobotoFontLoader.html">MDCRobotoFontLoader</a></li>
<li class="icon-link"><a href="apidocs/Classes.html#/c:objc(cs)MDCSystemFontLoader">MDCSystemFontLoader</a></li>
<li class="icon-link"><a href="apidocs/Protocols/MDCTypographyFontLoader.html">MDCTypographyFontLoader</a></li>
</ul>

## Installation
Expand Down Expand Up @@ -286,15 +286,17 @@ func application(application: UIApplication, didFinishLaunchingWithOptions launc

#### The default FontLoaer
If no font loader has been set, Typography attempts to use the Material
[RobotoFontLoader](https://github.com/google/material-components-ios/tree/develop/components/FontDiskLoader)
[RobotoFontLoader](../FontDiskLoader/)
which results in Roboto fonts being used when text styles are requested. If that runtime check
fails to find MDCRobotoFontLoader, the Material MDCSystemFontLoader font is used resulting in San
Francisco or Helvetica being used.

If your Podfile.lock has:

~~~ bash
MaterialComponents/RobotoFontLoader
~~~

Then one of your specs depends on RobotoFontLoader and the Roboto will be used if no font loader has
been set. If you set your own Font Loader it is recomened that you not pull in the Roboto Font
Loader Component because that will add font assets to your app that you will not use.
4 changes: 2 additions & 2 deletions howto/README.md
Expand Up @@ -9,10 +9,10 @@ section: howto
Material Components iOS should be immediately useable out of the box with
Apple's standard development tool chain.

- [Tutorial](/howto/tutorial/)
- [Tutorial]({{ site.folder }}/howto/tutorial/)
<!--{: .icon-guide }-->

- [Build environment](/howto/build-env/)
- [Build environment]({{ site.folder }}/howto/build-env/)
<!--{: .icon-guide }-->
<!-- TODO Correct icon -->
<!--{: .icon-list }-->
2 changes: 1 addition & 1 deletion howto/tutorial/README.md
Expand Up @@ -693,7 +693,7 @@ Also see our examples and catalog apps that are in the project to show how to us
advanced features.


- [Read the Component Documentation](/components/)
- [Read the Component Documentation]({{ site.folder }}/components/)
<!--{: .icon-components }-->

- [Stack Overflow "material-components-ios"](http://stackoverflow.com/questions/tagged/material-components-ios)
Expand Down
8 changes: 4 additions & 4 deletions site-index.md
Expand Up @@ -3,7 +3,7 @@ title: "Material Components for iOS"
layout: "homepage"
---

![Material Components Pesto App](/images/hero_exampleapp.png)
![Material Components Pesto App]({{ site.folder }}/images/hero_exampleapp.png)
<!--{: #heroimg }-->

# Material Components for&nbsp;iOS
Expand Down Expand Up @@ -131,13 +131,13 @@ An easy way to create beautiful apps with modular and customizable UI&nbsp;compo

5. ## What's next?

- [Read the Development Guide](/howto/)
- [Read the Development Guide]({{ site.folder }}/howto/)
<!--{: .icon-guide }-->

- [View the Component Documentation](/components/)
- [View the Component Documentation]({{ site.folder }}/components/)
<!--{: .icon-components }-->

- [Explore our Code Samples](/howto/#sample-code)
- [Explore our Code Samples]({{ site.folder }}/howto/tutorial/#sample-code)
<!--{: .icon-sample }-->
<!--{: .icon-list }-->
<!--{: .step-sequence }-->

0 comments on commit 2b6f7f4

Please sign in to comment.