23 Commits

Author SHA1 Message Date
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