angular-cn/aio/content/marketing
George Kalpakas 304a32b655 fix(docs-infra): limit max content width on "Contributors" and "Cheat sheet" pages (#41051)
Previously, the content width on the "Contributors" page (`/about`) and
the "Cheat sheet" guide (`/guide/cheatsheet`) was unlimited (i.e. the
content would take up all the available space horizontally). This was
not very ergonomic on large screens. Especially on the "Cheat sheet"
guide there was a lot of unnecessary whitespace between the code shown
on the left column and the description shown on the right column.

This commit fixes this by setting a max content width for both pages of
84em (1404px by default). This keeps the content at a more manageable
width and avoids unnecessary whitespace.

Before (contributors): ![contributors page on 2500px before][1]
Before (cheatsheet): ![cheatsheet on 2500px before][2]
After (contributors): ![contributors page on 2500px after][3]
After (cheatsheet): ![cheatsheet on 2500px after][4]

[1]: https://user-images.githubusercontent.com/8604205/109394323-1bb1e800-792f-11eb-9cd6-c5b83e5ae921.png
[2]: https://user-images.githubusercontent.com/8604205/109394329-1fde0580-792f-11eb-91c0-4ed7ad408b17.png
[3]: https://user-images.githubusercontent.com/8604205/109394319-181e6100-792f-11eb-9463-a281dfe80448.png
[4]: https://user-images.githubusercontent.com/8604205/109394330-210f3280-792f-11eb-9837-ddc7a8d01d19.png

PR Close #41051
2021-03-09 08:52:51 -08:00
..
README.md docs: include a note that all entries in contributors.json should be present in alphabetical order (#40369) 2021-01-11 15:32:21 -08:00
about.html fix(docs-infra): limit max content width on "Contributors" and "Cheat sheet" pages (#41051) 2021-03-09 08:52:51 -08:00
analytics.md docs: remove usage of whitelist in cli analytics docs (#38963) 2020-09-28 16:23:06 -04:00
announcements.json docs: update ng-conf announcement to remove livestream link (#36382) 2020-04-01 13:14:42 -07:00
api.html feat(aio): add Table of Contents (toc) component. (#16078) 2017-04-27 15:32:46 -07:00
contribute.html refactor(docs-infra): use more consistent content width on marketing pages (#41051) 2021-03-09 08:52:51 -08:00
contributors.json docs: add eliran eliassy to GDE list (#39521) 2021-02-03 09:06:19 -08:00
docs.md docs: add what is angular topic (#40811) 2021-02-17 11:13:21 -08:00
events.html refactor(docs-infra): use more consistent content width on marketing pages (#41051) 2021-03-09 08:52:51 -08:00
events.json docs: update Angular Global Summit on event pages (#41050) 2021-03-03 10:04:56 -08:00
features.html refactor(docs-infra): use more consistent content width on marketing pages (#41051) 2021-03-09 08:52:51 -08:00
index.html docs: update homepage headline (#40056) 2021-01-06 07:02:30 -08:00
presskit.html docs: remove augury resource (#41107) 2021-03-08 10:00:13 -08:00
resources-contributing.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
resources.html docs(aio): use h1 rather than divs and hide heading anchors 2017-06-07 11:26:27 -07:00
resources.json docs: remove augury resource (#41107) 2021-03-08 10:00:13 -08:00
test.html fix(docs-infra): always default to no linenums in `<aio-code>` (#31674) 2019-07-24 14:38:54 -07:00

README.md

Contributors page

We have an official accounting of who is on the Angular Team, who are "trusted collaborators" (see https://team.angular.io/collaborators), and so on.

The contributors.json should be maintained to keep our "org chart" in a single consistent place.

GDE listings

There are two pages:

About the data

  • Keys in contributors.json should be GitHub handles. (Most currently are, but not all.) This will allow us to use GitHub as the default source for things like name, avatar, etc.
  • Keys are sorted in alphabetical order, please keep the sorting order when adding new entries.
  • Pictures are stored in aio/content/images/bios/<picture-filename>.

Processing the data

Install https://stedolan.github.io/jq/ which is amazing.

for handle in $(jq keys[] --raw-output < aio/content/marketing/contributors.json)
do echo -e "\n$handle\n---------\n"; curl --silent -H "Authorization: token ${TOKEN}" https://api.github.com/users/$handle \
 | jq ".message,.name,.company,.blog,.bio" --raw-output
done

Relevant scripts are stored in aio/scripts/contributors/.