Skip to content

Commit

Permalink
docs(versioning): add versioning to docs website (#5793)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan-Niklas Wortmann <jan-niklas.wortmann@evorait.com>
  • Loading branch information
niklas-wortmann and Jan-Niklas Wortmann authored Oct 31, 2020
1 parent e968d93 commit 1e1e022
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 147 deletions.
11 changes: 11 additions & 0 deletions docs_app/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"targets": {
"rxjs-dev": {
"hosting": {
"stable": [
"rxjs-dev"
]
}
}
}
}
153 changes: 81 additions & 72 deletions docs_app/content/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,56 +19,56 @@
],

"TopBarNarrow": [],
"SideNav": [
{
"url": "guide/overview",
"title": "Overview",
"tooltip": "RxJS Overview",
"children": [
{
"url": "guide/observable",
"title": "Observables"
"SideNav": [
{
"url": "guide/overview",
"title": "Overview",
"tooltip": "RxJS Overview",
"children": [
{
"url": "guide/observable",
"title": "Observables"
},
{
"url": "guide/observer",
"title": "Observer"
},
{
"url": "guide/observer",
"title": "Observer"
},
{
"url": "guide/operators",
"title": "Operators"
},
{
"url": "guide/subscription",
"title": "Subscription"
},
"url": "guide/operators",
"title": "Operators"
},
{
"url": "guide/subject",
"title": "Subjects"
},
"url": "guide/subscription",
"title": "Subscription"
},
{
"url": "guide/scheduler",
"title": "Scheduler"
"url": "guide/subject",
"title": "Subjects"
},
{
"title": "Testing",
"children": [
{
"url": "guide/testing/marble-testing",
"title": "Marble Testing"
},
{
"url": "guide/testing/internal-marble-tests",
"title": "Contribute tests to RxJS"
}
]
}
]
},
{
"url": "guide/installation",
"title": "Installation",
"tooltip": "Installation"
},
{
"url": "guide/scheduler",
"title": "Scheduler"
},
{
"title": "Testing",
"children": [
{
"url": "guide/testing/marble-testing",
"title": "Marble Testing"
},
{
"url": "guide/testing/internal-marble-tests",
"title": "Contribute tests to RxJS"
}
]
}
]
},
{
"url": "guide/installation",
"title": "Installation",
"tooltip": "Installation"
},
{
"url": "api",
"title": "Reference",
Expand All @@ -79,34 +79,43 @@
"url": "operator-decision-tree",
"title": "Operator Decision Tree"
},
{
"title": "About Version 6",
"children": [
{
"url": "guide/v6/migration",
"title": "Migration"
},
{
"url": "guide/v6/pipeable-operators",
"title": "Pipeable Operators"
},
{
"url": "api/deprecations",
"title": "Deprecations",
"tooltip": "List of Deprecations"
}
]
},
{
{
"title": "About Version 6",
"children": [
{
"url": "guide/v6/migration",
"title": "Migration"
},
{
"url": "guide/v6/pipeable-operators",
"title": "Pipeable Operators"
},
{
"url": "api/deprecations",
"title": "Deprecations",
"tooltip": "List of Deprecations"
}
]
},
{
"url": "resources",
"title": "External Resources",
"tooltip": "External Resources"
},
{
"url": "code-of-conduct",
"title": "Code of Conduct",
"tooltip": "Code of Conduct"
}
],
"docVersions": []
},
{
"url": "code-of-conduct",
"title": "Code of Conduct",
"tooltip": "Code of Conduct"
}
],
"docVersions": [
{
"title": "v7",
"url": "https://next-rxjs.web.app/"
},
{
"title": "v6",
"url": "https://rxjs.dev/"
}
]
}
13 changes: 11 additions & 2 deletions docs_app/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"hosting": {
"public": "dist",
"target": "stable",
"cleanUrls": true,
"redirects": [
//////////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -14,8 +15,16 @@

// Strip off the `.html` extension, because Firebase will not do this automatically any more
// (unless the new URL points to an existing file, which is not necessarily the case here).
{"type": 301, "source": "/:somePath*/:file.html", "destination": "/:somePath*/:file"},
{"type": 301, "source": "/:topLevelFile.html", "destination": "/:topLevelFile"}
{
"type": 301,
"source": "/:somePath*/:file.html",
"destination": "/:somePath*/:file"
},
{
"type": 301,
"source": "/:topLevelFile.html",
"destination": "/:topLevelFile"
}
],
"rewrites": [
{
Expand Down
4 changes: 2 additions & 2 deletions docs_app/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
<aio-nav-menu *ngIf="!isSideBySide" [nodes]="topMenuNarrowNodes" [currentNode]="currentNodes?.TopBarNarrow" [isWide]="false"></aio-nav-menu>
<aio-nav-menu [nodes]="sideNavNodes" [currentNode]="currentNodes?.SideNav" [isWide]="isSideBySide"></aio-nav-menu>

<!-- <div class="doc-version">
<div class="doc-version">
<aio-select (change)="onDocVersionChange($event.index)" [options]="docVersions" [selected]="currentDocVersion"></aio-select>
</div> -->
</div>
</mat-sidenav>

<section class="sidenav-content" [id]="pageId" role="main">
Expand Down
Loading

0 comments on commit 1e1e022

Please sign in to comment.