build(aio): rename src/content to src/generated

This commit will definitely require a clean up of your
working folder:

```
cd aio
git clean -xdf
yarn setup
```
This commit is contained in:
Peter Bacon Darwin
2017-05-03 13:55:00 +01:00
committed by Matias Niemelä
parent 1cfb263ee3
commit 5b96fb9320
56 changed files with 234 additions and 230 deletions

View File

@ -90,7 +90,7 @@ describe('ApiService', () => {
it('should connect to the server w/ expected URL', () => {
service.fetchSections();
expect(backend.connectionsArray.length).toEqual(1);
expect(backend.connectionsArray[0].request.url).toEqual('content/docs/api/api-list.json');
expect(backend.connectionsArray[0].request.url).toEqual('generated/docs/api/api-list.json');
});
it('should refresh the #sections observable w/ new content on second call', () => {

View File

@ -8,6 +8,7 @@ import 'rxjs/add/operator/map';
import 'rxjs/add/operator/takeUntil';
import { Logger } from 'app/shared/logger.service';
import { DOC_CONTENT_URL_PREFIX } from 'app/documents/document.service';
export interface ApiItem {
name: string;
@ -29,7 +30,7 @@ export interface ApiSection {
@Injectable()
export class ApiService implements OnDestroy {
private apiBase = 'content/docs/api/';
private apiBase = DOC_CONTENT_URL_PREFIX + 'api/';
private apiListJsonDefault = 'api-list.json';
private firstTime = true;
private onDestroy = new Subject();