39 Commits

Author SHA1 Message Date
Jeff Verkoeyen
fbb1f20aa2 Internal change
PiperOrigin-RevId: 332151481
2020-09-16 21:01:21 -07:00
Jeff Verkoeyen
d7ff705337 Drop support for iOS 9.
PiperOrigin-RevId: 326015653
2020-08-11 07:21:40 -07:00
Andrew Overton
f9a72c3df8 [Buttons] Fix a lot of formatting issues with material.io and some broken links
TL;DR -  This PR consists of fixes for broken links, broken image links, and broken Swift/Objective-C code snippets on material.io, and also adds some small copy edits.

Sometimes our documentation renders okay on GitHub, but breaks in the conversion of markdown to HTML/CSS that takes place during material.io deploys. As of yesterday, I'm able to build material.io locally, which allows me _validate_ the documentation changes I will keep making for the material.io work. It also allows me to catch broken links elsewhere, in totally unrelated files. For example, there were broken links in some Shapes documentation that were already blocking the deployment of our docs unbeknownst to us.

Closes https://github.com/material-components/material-components-ios/pull/9963

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/9963 from andrewoverton:fix-formatting-issues cd54e90863274a49068e016547b1bf0b1af3afcb
PiperOrigin-RevId: 305770167
2020-04-09 15:16:14 -07:00
Cody Weaver
15eaf4eafc [MDC/Docs] Remove usage of init with MDCSemanticColor scheme.
We recommend clients explicitly choose the defaults they want.

PiperOrigin-RevId: 302972187
2020-03-25 14:45:29 -07:00
Bryan Oltman
763fc6282c
Update Themer examples to use non-deleted themer (#9245)
Updates the Themer Examples section to reference a Themer class that has not yet been deleted.
2019-12-11 10:57:29 -05:00
Bryan Oltman
63d9650bf5
Update Themer migration guide in README (#9244)
Updates the Themer-to-Theming-Extension migration guide in the themers README to reference a themer that has not yet been deleted.
2019-12-11 10:45:42 -05:00
featherless
0f8ae9011d
[docs/theming] Remove references to Beta (#7260)
None of the theming extensions that we support are in Beta anymore.

Related to https://github.com/material-components/material-components-ios/issues/6652
2019-04-24 21:51:49 +03:00
featherless
7b9e9d37f1
[docs] Add migration guide from Themers to Theming extensions. (#7180)
Closes https://github.com/material-components/material-components-ios/issues/7108

This change adds a migration guide for moving from Themers to Theming Extensions. Part of this migration guide requires that the reader knows which Theming extensions replace which Themer API, so the relevant APIs are being annotated accordingly as part of https://github.com/material-components/material-components-ios/issues/7108.

I considered making a table in the documentation with the API mappings, but realized quite quickly that this table would get out of date and be difficult to maintain, so the information is now present in each to-be-deprecated API's documentation instead.

While annotating the APIs I captured the ones that were missing theming extensions in https://github.com/material-components/material-components-ios/issues/7172. This issue can be used as an epic to track the remaining components that require theming extensions.
2019-04-23 22:03:37 +03:00
Bernardo Ferrari
c7da1f33b3 [Docs] Refactor theming document with improved header for Themers and better section ordering with import dependencies -> how to use them -> examples. (#7240)
Refactor theming document with improved header for Themers and better section ordering with import dependencies -> how to use them -> examples.
Improves 5c14dca53a (#7210).
2019-04-23 21:17:02 +03:00
Cody Weaver
9482dee10a
[Docs] Clean up theming doc (#7191)
This PR will help clients who are using our library what to import if they are using our theming extensions. This also cleans up the ObjectiveC code to use more modern ObjC style.
2019-04-22 13:18:34 -04:00
featherless
5c14dca53a (docs/theming) Move "How to get the code" nearer to the top of the file. (#7210)
Installation and dependency steps are the first step required to use Theming extensions, so it's important that these steps are near the top of the documentation.

Follow-up for https://github.com/material-components/material-components-ios/issues/7074
2019-04-22 11:59:45 -04:00
Yarden Eitan
9e72e954e2
Update theming.md (#7186)
Small improvement to the obj-c code snippet using Swift instead of Objc
2019-04-19 13:56:29 -04:00
featherless
5d880abb2a
[docs] Migrate the theming documentation to the docs folder. (#7173)
The documentation has been reviewed and copy-edited for consistency and accuracy.

Added a theming patterns section that describes a few patterns for theming in the context of an app.

Closes https://github.com/material-components/material-components-ios/issues/7074
2019-04-18 22:38:02 +03:00
Robert Moore
8001cc9de3
Update build environment for Xcode and CocoaPods (#7115)
We are currently stuck on Xcode 10.0 (possibly 10.1) and use CocoaPods 1.6.1. We no longer support CocoaPods 1.5.x, nor do we regularly use Xcode 9.x except for presubmit testing.

Fixes #7143
2019-04-15 12:03:53 -04:00
featherless
a3e215daa7
[ios8]! Drop support for iOS 8 in all components. (#7135)
Closes https://github.com/material-components/material-components-ios/issues/4656

I used the following `grep` to find references to iOS 8:

    grep -rI "8\.0" .
2019-04-12 23:08:35 +03:00
Randall Li
14f96543cd [Docs] Updated the cocoapods version we are using. (#5595) 2018-11-05 16:34:02 -05:00
Randall Li
b436ed4a7b
minor faq copyedit (#5229) 2018-09-26 09:54:47 -04:00
Yarden Eitan
b17bb98f73
update kokoro to 9.0.0 (#4986) 2018-08-31 14:16:01 -04:00
ianegordon
00f2d51d48
Remove outdated tutorial (#3722)
* Remove outdated tutorial

* Remove obsolete link

* Remove tutorial

* Remove link
2018-05-04 12:16:34 -04:00
Jeff Verkoeyen
15d7f006f6 [Theming] Consolidate the theming documentation into one folder on the site. 2018-05-04 12:03:39 -04:00
Josh Estelle
d1ca3b8720 Fix broken link in README.md (#3701)
Fix broken link in README.md 
to iOS component documentation.
2018-05-04 08:53:09 -04:00
Yarden Eitan
14ace47eb7
[Shapes] Added shapes documentation and linkage (#3666)
Pivotal: https://www.pivotaltracker.com/story/show/157013940
2018-05-03 11:25:28 -04:00
featherless
64c907febb
[Theming] Link back to the scheme docs. (#3669) 2018-05-02 19:02:45 -04:00
featherless
30667d2816
[docs] Add link to Themes docs from root docs readme. (#3665) 2018-05-02 17:09:33 -04:00
featherless
037bf7d0f0
Flatten all +Extensions CocoaPods targets into standalone targets. (#3572)
This discourages depending on all of a component's extensions and aligns our targets more closely with how we expect them to be imported and depended upon.

This is a breaking change.

Pivotal story: https://www.pivotaltracker.com/story/show/157118721
2018-05-02 10:20:01 -04:00
featherless
18617943ab
[scripts] Implement a templatized readme generator. (#3601)
This PR adds a new script, `scripts/generate_readme`, which will generate a root README.md file for a component from the component's docs/ content.

The advantages of this script over our current process of writing readmes:

- Documentation articles can be broken out into separate files, making it easier to generate and apply templates.
- Our component readmes now have auto-generated table of contents.
- Our documentation can be written in plain markdown with minimal material.io html magic.
- Having docs in separate files doesn't result in multiple "component pages" on material.io - everything ends up in a single component document on the site. E.g. the "Color Theming" article no longer shows up as its own link on material.io.

Example usage:

```bash
./scripts/generate_readme ActivityIndicator
```

---

The script makes the following assumptions:

A component has the following directory structure:

```
components/
  Component/
    README.md <- The component's main readme.
                 This is the readme that will show up on material.io.
    docs/
      README.md       <- A skeletal readme with links to other docs files.
      some-article.md <- An article that may be linked to.
```

`components/Component/docs/README.md` is treated as a standard markdown file, with the additional interpretations:

```
* [Text](url)
Treated as an icon list for the material.io website.
If the url links to any go/design- url, the link will use the spec icon

- [Text](some-article.md)
Indicates that the linked article should be added verbatim to the main README.md

<!-- toc -->
A table of contents should be generated here.
```

The script then does the following:

1. Generates a template README from the component's .vars file.
2. Appends the component's docs/README.md to the readme.
3. Rewrites any asset and relative url paths.
4. Transforms all `* [text](link)`-formatted link lists into icon-list lists.
4b. If an icon list url points to a design site, the spec icon will be used for the list item.
5. Replaces every `- [text](link)`-formatted link list item with the contents of the file.
6. Generates a table of contents if `<!-- toc -->` is found. The table of contents will include all level 2 and 3 headers found after the toc tag.
7. Copies the output to the component's root README.md.

The implication of this script is that we can now write documentation as small files which are easier to templatize. These smaller files can be aggregated together into a single larger README.md that is consumable by the material.io website.

Example of table of contents on material.io:

<img width="460" alt="screen shot 2018-05-01 at 9 07 31 am" src="https://user-images.githubusercontent.com/45670/39473887-1fa6c85c-4d1f-11e8-8620-d6b151a315c6.png">
2018-05-01 14:24:29 -04:00
Adrian Secord
7a7293883f
Remove space after triple-backtick Markdown syntax. (#3577) 2018-04-29 09:00:53 -04:00
Adrian Secord
7f09c94e46
s/www.material.io/material.io/g (#3576) 2018-04-28 11:32:54 -04:00
Adrian Secord
72045ffd6d
[Docs] Updated known short link destination URLs to use short links. (#3575)
* Updated known shortlink destination URLs to use short links.

* Updated stray links in the CHANGELOG.md.

* Fixed FAB shortlink.

* Applied replacements to everything outside of components/.
2018-04-28 11:27:59 -04:00
featherless
7d6aebdcbe
Remove references to MDCRaisedButton from the home page. (#3536) 2018-04-27 11:23:19 -04:00
featherless
83a57051bb
Add a first draft of the Theming doc. (#3532)
Pivotal story: https://www.pivotaltracker.com/story/show/156387074
2018-04-27 10:22:35 -04:00
featherless
c61a2535c1
Move all docs into the docs/ folder. (#3537)
This removes the `howto/` folder entirely and makes our github doc layout match our website doc layout more closely.
2018-04-26 23:14:35 -04:00
Martin Petrov
3762aecee3 use modern selectors (#2207) 2017-10-17 10:29:14 -04:00
Adrian Secord
fb32dccf2d Replace usage of new with alloc init to match the style guide. (#2033)
https://github.com/google/styleguide/blob/gh-pages/objcguide.md#avoid-new
2017-09-25 10:46:44 -04:00
Adrian Secord
068d29f0bc Replace "pixel-perfect" with "accurate". (#1413)
Fixes internal issue 38176020.
2017-05-09 18:14:04 -04:00
Scott Hyndman
1571a1b9ee [Docs] Nests components in the navigation as spec'd. (#1404)
Also took the opportunity to remove an unneeded liquid style
application.
2017-05-09 11:49:44 -04:00
Scott Hyndman
1bec0a903a [Docs] Misc. cleanup (#1403)
* [Docs] Changes an icon list class name.

* [Docs] Adds annotations to all installation code snippets.

* [Docs] Fixes screenshot sizes in PageControl README.

* [Docs] Fixes a broken link on the homepage.

* [Docs] Adds a stable repository branch field to the site metadata.

Used to link to the GitHub source tree.

* [Docs] Specify platform in docs root title.
2017-05-08 18:05:05 -04:00
Scott Hyndman
5aa79ab252 [Docs] Docsite config updates and improved index styling (#1367)
* [Docs] Adds two additional fields to the docsite config.

* [Docs] Adds benefits and styling to the docsite index.
2017-05-05 12:28:30 -04:00
Scott Hyndman
4a011e75a5 [Docs] Docstravaganza (#1330)
* [Docs] Adds platform configuration for the doc site.

* [Docs] Adds path metadata for documentation site.

This field is used to determine where the file will appear in the
doc site.

* [Docs] Updates Material guideline links to latest URL.

material.google.com -> material.io/guidelines

* [Docs] Introduces a separate component index for the docsite.

* [Docs] Changes the directory used for site generation.

* [Docs] Moves documentation-site-only Markdown into its own directory.

* [Docs] Changes material.io links to use https.

* [Docs] Renames the howto and contributing docsite sections to docs.

* [Docs] Adds a navTitle field to the collection editing/styling pages.

* [Docs] Changes the FAQ heading to be one size bigger.

* [Docs] Changes the tutorial title.

* [Docs] Adds icons to three more components.

* [Docs] Introduces a root component directory called /catalog/.

* [Docs] Adds an icon to the AnimationTiming component.

* [Docs] Adds an icon for the typography component.

* [Docs] Reformats the docsite index.
2017-05-01 17:27:38 -04:00