4907d644bb
Previously, each marketing page used a different limit for its content's width (if it had a limit at all) and implemented the width limiting in a different way. Besides resulting in an inconsistent UX, this also made it difficult to apply site-wide layout changes. This commit makes the limit for most marketing pages consistent and uses the same CSS class to make it easier to apply site-wide changes in the future. The chosen limit is slightly larger than that of docs pages (62.5em/1000px vs 50em/800px), because marketing pages have a different type of content and layout (i.e. images, multi-column layout, etc.). Finally, this commit also removes obsolete wrapper elements, CSS classes and CSS styles, that are no longer necessary after the changes. Notably, the homepage (`/`) and the "Contributors" page (`/about`) have remained unchanged, because the former has its own layout that is different from other marketing pages and the latter would offer a worse UX with a small content width limit (as the one used on other marketing pages). The content widths of the rest of the marketing pages change slightly as a result of the changes in this commit, but not in a way that would have a negative impact on UX. More specifically: | Page (URL) | Size before | Size after | |:--------------|------------:|-----------:| | `/contribute` | 880px | 1000px | | `/events` | unlimited | 1000px | | `/features` | 996px | 1000px | | `/presskit` | 800px | 1000px | | `/resources` | 800px | 1000px | PR Close #41051 |
||
---|---|---|
.. | ||
README.md | ||
about.html | ||
analytics.md | ||
announcements.json | ||
api.html | ||
contribute.html | ||
contributors.json | ||
docs.md | ||
events.html | ||
events.json | ||
features.html | ||
index.html | ||
presskit.html | ||
resources-contributing.md | ||
resources.html | ||
resources.json | ||
test.html |
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:
-
https://developers.google.com/experts/all/technology/angular (Googlers: source at http://google3/googledata/devsite/content/en/experts/all/technology/angular.html) which is maintained by Dawid Ostrowski based on a spreadsheet https://docs.google.com/spreadsheets/d/1_Ls2Kle7NxPBIG8f3OEVZ4gJZ8OCTtBxGYwMPb1TUVE/edit#gid=0.
-
Ours: https://angular.io/about?group=GDE which is derived from
contributors.json
.
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/
.