14 Commits

Author SHA1 Message Date
Randall Li
be55e00721 [Material iOS] Accessible URLS: Using allowlist/allowed term instead of whitelist term
PiperOrigin-RevId: 320464795
2020-07-09 13:41:42 -07:00
Yurii Samsoniuk
d18cb18174 Added a script to check that umbrella header are used between components (#2241) 2017-10-25 18:50:56 -04:00
Adrian Secord
5445fb2110 [Scripts] Add readme metadata config check (#1775)
* Added script to list the directories of our components.

* Add check for metadata to the readme check.

* Improved the output format for `list_components` on the terminal.

* Switched `check_components` script to use `list_components`.

* Update list_components
2017-08-11 10:02:19 -04:00
Scott Hyndman
9ed1d4349d Gigantic documentation update. (#1305)
There are more changes to come, but it's time we merged back.

Changes:
* Re-introduces the doc site scripts and files that had been deleted previously.
* Updates contributing docs to reflect doc structure changes.
* Applies common header structure across all component documentation.
* Fixes a bunch of liquid syntax bugs.
* Inlines Front Matter metadata in README.md files as HTML comments. Any file prefixed with

  <!--docs:
  ...yaml
  -->

  Will be converted into Front Matter when generating the site.
* .jekyll_prefix files, which previously stored the data, have been removed.
2017-04-05 10:53:34 -04:00
Will Larche
8963d3eec1 [Scripts] Swift example check fix. (#1278) 2017-03-28 11:51:47 -04:00
Adrian Secord
e8c45d5394 Removed old refs to API docs. (#1084)
* Removed old refs to API docs.

* Removed outdated refs to API docs.
2016-12-15 15:35:13 -05:00
Adrian Secord
f3de3e061b Removed site sources and references. (#1062) 2016-12-14 11:54:38 -05:00
Adrian Secord
120ab517f7 Renamed scripts/naming_convention to convert_name. (#1026) 2016-12-13 19:38:53 -05:00
Will Larche
104052d371 Swift first in readmes and its script (#982)
* [Scripts] Checklist check for Swift first in readme.

* [Checklist] Swift before Objc.
2016-12-08 13:38:01 -05:00
Will Larche
95d4300e8c [Scripts] Checklist example_languages less greedy (#964) 2016-12-07 13:16:34 -05:00
Adrian Secord
6733f7c44b Build out our scripted component checks (#940)
* Add README.md to scripts/check.

* Generalized the check_components script.

* Renamed `missing_readme` to `readme`.
* Added documentation to the `scripts/check` directory.
* Disabled the `scripts/check/missing_example_language` script.

* Cleanup verbose echoing in check_components script.

* Added more verbosity options.

* Added check for accessible URLs.

* Added option parsing.

* Added left-nav checks.

* Added license stanza check.

* Added reporting of failed components to check_components script.

* Added a script to convert between naming conventions.

* Added script to check for videos.

* Added check for video still.

* Added script to check for site icon.

* Added DO NOT SUBMIT check.

* Properly quoted output file paths.

* Added check for examples.

* Updated checklist docs for new script setup.

* Added check for example languages in README.md files.

Deleted old PHP code.

* Added missing exit(-1) from example_languages.

* Added uniform error output to example_languages.
2016-12-05 11:26:17 -05:00
Adrian Secord
8c3af252be Adding AUTHORS and removing CONTRIBUTORS.txt.
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...

Summary:

We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.

Changed copyright statement to include non-Google authors.

Command run:

find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods  \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Added non-source files.

Command run:

grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Reviewers: featherless, O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1415
2016-08-08 08:16:37 -07:00
Jeff Verkoeyen
2cb18a209b Add missing example language check.
Summary:
Example output:

```
Each of the following components is missing example language:
components/FlexibleHeader/README.md:131
components/FlexibleHeader/README.md:159
components/FlexibleHeader/README.md:231
components/FlexibleHeader/README.md:322
components/FlexibleHeader/README.md:352
components/HeaderStackView/README.md:88
components/Ink/README.md:90
components/Ink/README.md:109
components/Ink/README.md:142
components/PageControl/README.md:121
components/PageControl/README.md:170
components/ShadowElevations/README.md:71
components/ShadowLayer/README.md:104
components/ShadowLayer/README.md:125
components/ShadowLayer/README.md:140
components/ShadowLayer/README.md:166
components/Slider/README.md:76
components/Switch/README.md:80
```

Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D572
2016-04-12 14:37:52 -04:00
Jeff Verkoeyen
d82f59976d [checks] Add missing_readme check and check_all runner.
Summary:
Part of https://github.com/google/material-components-ios/issues/257.

Output:

```
Each of the following components is missing readme:
FontDiskLoader
private/Color
private/Icons/icons/ic_arrow_back
private/ThumbTrack
RobotoFontLoader
```

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Subscribers: ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D417
2016-03-30 10:58:29 -04:00