Peter Bacon Darwin
fc1f6efe0d
build(aio): fix paths to "index" pages
...
Content pages like `tutorial/index.md` were being mapped to `tutorial.index.json`,
which meant that they could only be rendered if you browsed to `/tutorial/index`.
This didn't sit well so now these pages are mapped to `tutorial.json`, which
means that you browser to them via `/tutorial/` or just `/tutorial`.
Fixed #15335
2017-03-21 15:20:28 -05:00
Igor Minar
c9710d4fb5
build(aio): upgrade @angular/cli to 1.0.0-rc.4
2017-03-21 15:20:28 -05:00
Igor Minar
cf16f3b0dd
build(aio): update @angular to 4.0.0-rc.5 and zone.js to 0.8.4
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
a9e91115bf
build(aio): add version into navigation.json
...
The navigation.json is now passed through the dgeni pipeline.
The source file has been moved to `aio/content/navigation.json`
but the generated file will now appear where the original source file
was found, `aio/src/content/navigation.json`.
Everything inside `aio/src/content` is now generated and ignored by git.
The `processNavigationMap` processor in this commit adds the current version
information to the navigation.json file and verifies the relative urls in
the file map to real documents.
The navigationService exposes the versionInfo as an observable, which the
AppComponent renders at the top of the sidenav.
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
90f699fdcf
build(aio): ensure that internal document links work with base href
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
fd7b855cfc
test(aio): fix test descriptions for ordering of processors
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
20aab64c65
test(aio): use MockLogger in AppComponent tests
...
This component sends a lot of messages to the console, which makes the
test run less easy to follow.
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
2eb027a793
build(aio): don't process unnecessary example files in doc-gen
...
This lowers the `yarn docs` processing time by about 40% (from 50 secs
to 30 secs).
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
b0a7bc77ee
build(aio): remove cheatsheet processing and content
...
This will be replaced by a single file migrated from angular.io
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
4e10faf1eb
build(aio): add version into navigation.json
...
The navigation.json is now passed through the dgeni pipeline.
The source file has been moved to `aio/content/navigation.json`
but the generated file will now appear where the original source file
was found, `aio/src/content/navigation.json`.
Everything inside `aio/src/content` is now generated and ignored by git.
The `processNavigationMap` processor in this commit adds the current version
information to the navigation.json file and verifies the relative urls in
the file map to real documents.
The navigationService exposes the versionInfo as an observable, which the
AppComponent renders at the top of the sidenav.
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
a0c6d44e18
build(aio): ensure that internal document links work with base href
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
9bc998c7a1
build(aio): use forked version of Rho rendering engine
...
The original Rho is too strict when it comes to markdown headings.
It requires that there be a blank line separating the heading and the
next paragraph. The forked version here fixes that; but the Rho project
will not merge it as it goes against there basic rules.
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
1a0c6d89b1
build(aio): do not render ignored docs
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
8c12374c4c
build(aio): do not render private classes and members
2017-03-21 15:20:28 -05:00
Stefanie Fluin
45e2126273
refactor(aio): removed dead code
2017-03-21 15:20:28 -05:00
Stefanie Fluin
41497b052d
feat(aio): font change and toolbar shadow
2017-03-21 15:20:28 -05:00
Igor Minar
068cad1c1b
build: update to angular 4.0.0-rc.4 and service-worker@1.0.0-beta.7
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
31ef92fc36
build(aio): fix generated github links
...
The change from `modules` to `packages` needed to be applied to these links.
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
b4081e3713
build(aio): update to dgeni-packages 0.17.0
...
This new version fixes the problem with mistaking
content inside inline HTML blocks as tags
Related to #15199
2017-03-21 15:20:28 -05:00
Peter Bacon Darwin
c8b4a33a7f
ci(aio): lower prerender browser instances
...
Hopefully this will reduce aio test flakes
2017-03-21 15:20:28 -05:00
Ward Bell
a13ddf2e8a
feat(aio): expand nav menu branch of select item on page load
2017-03-21 15:20:28 -05:00
Georgios Kalpakas
d0bc83ca27
build(aio): implement prerendering
...
The current implementation is based on @igorminar's [angular-io-v42][1]. It is
using Protractor to request all docs URLs, let them fallback to `/index.html`
and save the rendered page.
[1]: https://github.com/IgorMinar/angular-io-v42/tree/05508ab3/tools/prerenderer
Fixes #15104
2017-03-17 15:31:22 -05:00
Georgios Kalpakas
b5b2fed54d
refactor(aio): re-arrange npm scripts
2017-03-17 15:31:22 -05:00
Georgios Kalpakas
4cef5dddc6
build(aio): use own `.gitignore` file
2017-03-17 15:31:22 -05:00
Peter Bacon Darwin
6772c913c7
fix(aio): scroll to hash fragment element on URL change
2017-03-15 16:11:30 -07:00
Stefanie Fluin
b11d0119ac
feat(aio): top bar typography, sidenav size
2017-03-15 16:11:30 -07:00
Stefanie Fluin
637a489996
refactor(aio): indent and org cleanup
2017-03-15 16:11:30 -07:00
Stefanie Fluin
c2bd357825
feat(aio): initial design commit
...
Implemented style guide elements to top header bar, side hamburger nav menu, content and search. Consolidated SCSS files to styles folder. Fixed PWA test.
2017-03-15 16:11:30 -07:00
Peter Bacon Darwin
4870f910d6
feat(aio): hide search results when click outside search elements
...
Clicking anywhere except on the search results and the search box will
now hide the search results
Closes #15095
2017-03-15 16:11:30 -07:00
Peter Bacon Darwin
c95a3048ce
fix(aio): `SearchBoxComponent` should send query on click
...
The input may still have focus when the user hits ESC,
causing the search to be hidden.
If the user then clicks on the input again, they would expect
it to reopen the results.
2017-03-15 16:11:30 -07:00
Ward Bell
0e6eb6d719
test(aio): fill in missing API page unit tests
2017-03-15 16:11:30 -07:00
Ward Bell
09574fc285
build(aio): `yarn test --sourcemap=false` for faster dev/test cycles
2017-03-15 16:11:29 -07:00
Georgios Kalpakas
4347cb2119
ci(aio): whitelist 'aio-contributors' for deploying PR previews
2017-03-15 16:11:29 -07:00
Peter Bacon Darwin
f600d4e9e4
refactor(aio): move window:resize handler into component
2017-03-15 16:11:29 -07:00
Peter Bacon Darwin
eaa04354d5
fix(aio): intercept all clicks on anchors
...
Previously we had the `LinkDirective` which intercepted clicks on anchors
outside the doc viewer. Now we intercept "all" link clicks within the app.
2017-03-15 16:11:29 -07:00
Peter Bacon Darwin
3f7cfde476
fix(aio): ignore private exports
...
Closes #14992
2017-03-15 16:11:29 -07:00
Ward Bell
1c1085b140
feat(aio): add google analytics ( #15081 )
2017-03-13 18:08:23 -07:00
Peter Bacon Darwin
ab40fcb068
docs(aio): fix relative links
...
The migrator was updated to automatically fix these links.
See fca5fb0280
and 3927b7a038
The result of this is that, going forward, we should ask
authors to include the path from the base href to the thing
being linked. E.g. guide/architecture#intro
2017-03-13 16:56:23 -07:00
Peter Bacon Darwin
1847550ad1
docs(aio): move cookbooks into guide
...
Also update all docs with migrated versions from latest angular.io
Fixes #14941
2017-03-13 16:56:23 -07:00
Peter Bacon Darwin
6497633529
feat(aio): improve search results functionality
...
* Ensure that all indexed documents are displayed in the search results.
(Previously the guide documents were not appearing because we only showed
results that had a `name` property, rather than a `name` or `title`.)
* Group the results by their containing folder (e.g. api, guide, tutorial, etc).
* Hide the results when the user hits the ESC key.
* Hide the results when the user clicks on a search result
Closes #14852
2017-03-13 16:55:52 -07:00
Pete Bacon Darwin
8850098ea4
build(aio): ensure API docs are generated in the correct place ( #15103 )
...
The move of the source code from modules/@angular to packages, caused a
problem with the path to the API docs.
2017-03-13 16:53:47 -07:00
Peter Bacon Darwin
eedca09d73
build(aio): generate the api-list.json file from the API docs
2017-03-13 16:52:58 -07:00
Peter Bacon Darwin
7b6dbf0952
fix(aio): `LocationService` search should handle corner cases
...
Adds tests and fixes corners cases for both `search()` and `setSearc()`
for things like empty queries and param keys that need encoding.
This commit refactors the `LocationService` to rely upon the `PlatformLocation`
rather than using `window.history` directly. This makes testing easier but also
makes the code simpler since `PlatformLocation` deals with platforms that
do not support history for us.
2017-03-13 16:52:58 -07:00
Pete Bacon Darwin
75147ff008
fix(aio): remove invalid brace from CSS ( #15122 )
2017-03-13 13:36:22 -07:00
Peter Bacon Darwin
e7dab7e6c1
feat(aio): hard code a "Home" image link into the toolbar
...
Closes #15017
2017-03-13 12:55:11 -07:00
Peter Bacon Darwin
26efa3a25c
style(aio): tidy up SCSS files
2017-03-13 12:55:11 -07:00
Pete Bacon Darwin
893652a813
fix(aio): upgrade to zone.js 0.7.8 ( #15099 )
...
This new version supports empty jasmine it clauses.
2017-03-13 12:53:45 -07:00
Georgios Kalpakas
4e1cf5b41a
build(aio): replace all occurrences of env vars on a line in `aio-builds-setup`
2017-03-13 10:30:49 -07:00
Georgios Kalpakas
0c5f893f6e
test(aio): improve test description and expectations
2017-03-13 10:30:49 -07:00
Georgios Kalpakas
17f5f3b32c
ci(aio): fix clean-up script on `ngbuilds.io`
2017-03-13 10:30:49 -07:00
Georgios Kalpakas
3bb59902f7
docs(aio): add more docs about `aio-builds-setup`
2017-03-13 10:30:49 -07:00
Georgios Kalpakas
b804a488c5
feat(aio): make it easy to keep relevant logs outside the docker container
2017-03-13 10:30:49 -07:00
Georgios Kalpakas
cbde75e77b
feat(aio): redirect HTTP to HTTPS
2017-03-13 10:30:49 -07:00
Georgios Kalpakas
413e11fac2
build(aio): remove redundant arg
2017-03-13 10:30:49 -07:00
George Kalpakas
fa1920a02b
feat(aio): enable deep-linking on deployed apps (until prerendering is done) ( #15049 )
2017-03-13 09:35:16 -07:00
Alex Rickabaugh
920b3d259d
feat(aio): support @angular/service-worker using the CLI generated service worker manifest ( #15042 )
2017-03-10 14:05:29 -08:00
Ward Bell
fce55d87d2
feat(aio): add Kapunahele animations v2 ( #15023 )
2017-03-10 14:05:00 -08:00
Jason Aden
2b44854885
build: fix paths for examples tests
2017-03-08 16:29:28 -08:00
Jason Aden
b74ab83d2c
refactor: update paths from modules/@angular to packages
2017-03-08 16:29:28 -08:00
Ward Bell
5ad5301a3e
feat(aio): add API list page ( #14899 )
2017-03-08 13:08:19 -08:00
Georgios Kalpakas
174d4c8ef7
ci(aio): do not deploy PR if preconditions not met
...
This avoids incorrectly failing the build if the PR author is not a member of one of the whitelisted GitHub teams.
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
4ca772eea3
refactor(aio): move scripts into `scripts/` directory
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
b4ec80b21d
docs(aio): document arg for auto-restarting the docker container on boot
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
a4476654aa
refactor(aio): use more intuitive log filepath
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
4210d2b4b1
test(aio): fix e2e tests
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
aa30c50144
feat(aio): make it easier to create a docker image (less variables to overwrite)
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
fd34a58e13
fix(aio): ensure `NGBUILDS_IO_KEY` is not printed
...
Gaining access to another PR's JWT, would allow faking that PR's author wrt to
GitHub team membership verification for as long as the JWT is valid (currently
90 mins).
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
e40f81b564
ci(aio): fail the build if preview deployment fails
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
a3a7cf2090
build(aio): allow overwriting env vars at build time
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
d9d9d9de6f
build(aio): allow passing parameters to `docker build`
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
7e67f37fc4
ci(aio): test aio-builds-setup as part of the `aio` job
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
d275667da0
build(aio): upgrade to latest and pin major pm2 version
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
03a5fd01c9
fix(aio): do not hardcode the domain in preview link comments
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
d28ea80db8
build(aio): always compile before running tests
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
0e9277b4c3
style(aio): change mock value for consistency
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
2796790c7d
feat(aio): verify uploaded builds based on JWT from Travis
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
028b274750
feat(aio): support passing secrets as files to the docker container
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
3ed1f64d43
feat(aio): implement `BuildVerifier`
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
96f11dad18
feat(aio): implement `GithubTeams`
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
060d02eb82
fix(aio): remove unnecessary `repoSlug` parameter from `GithubApi`
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
951e653b0c
feat(aio): implement `GithubApi.getPaginated()`
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
37348989f0
feat(aio): make `githubToken` mandatory for `GithubApi`
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
c5644e5a0d
refactor(aio): add `assertNotMissingOrEmpty()` helper
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
c8d87a936b
feat(aio): add support for HTTPS (certificates provided by host - fallback to self-signed)
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
6b8413f7b3
build(aio): update TypeScript (and other dependencies)
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
bc831ff4a4
feat(aio): check resolution of external URLs in HEALTHCHECK
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
8a8d4fe24f
test(aio): fix typos (repoSlag --> repoSlug)
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
9df9bdc0f5
style(aio): correctly type tuple
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
c8ead9bcd0
refactor(aio): use types intead of interfaces for functions
2017-03-07 18:24:45 -08:00
Georgios Kalpakas
115164033b
ci(aio): add initial implementation for aio-builds setup
2017-03-07 18:24:45 -08:00
Peter Bacon Darwin
ebd446397a
fix(aio): reimplement the top menu dropping into the side bar
...
I couldn't find the CSS for the `.small` class to make it look nice.
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
55189b1b85
refactor(aio): simplify and document the NavigationService
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
b017fbe48e
style(aio): rename local variable
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
0d6aa0caed
style(aio): rename const to camelCase
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
b70c881c00
docs(aio): fix paths to images
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
0d63e2a586
docs(aio): copy devguide images from angular.io
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
d83b7ba4c0
refactor(aio): rename `activeNodes` to `selectedNodes`
...
This keeps the naming consistent with the nav-menu
and nav-item component properties
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
46d6e8d191
fix(aio): reimplement side-nav
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
61ef756ef2
fix(aio): ensure that only one request for navigation.json is made
2017-03-06 22:27:32 -08:00
Peter Bacon Darwin
3529813ca0
fix(aio): move interfaces into their own files to workaround compile weirdness
...
For some reason the tree-shaker is not picking up these interfaces
(perhaps TS is not passing it through) when they are in the same file
as their related services. This results in a distracting warning message.
2017-03-06 22:27:32 -08:00