Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 341337f

Browse files
authored
Merge pull request #1231 from NativeScript/niliev/readme
refactor: README links + redirect for base Angular link
2 parents 5e55698 + 98685c3 commit 341337f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ This documentation is built using [Jekyll](https://jekyllrb.com/docs/home/). Mor
2424

2525
There are two versions of the NativeScript documentation that generate similar output: `nativescript` and `angular`. The former builds the vanilla NativeScript docs at [docs.nativescript.org](https://docs.nativescript.org/), while the latter discusses Angular-specific topics at [docs.nativescript.org/angular/start/introduction](https://docs.nativescript.org/angular/start/introduction).
2626

27-
2827
Most of the content in this repository is shared between the two environments, but occasionally you may need to add environment-specific content. When you have this need you have a few options.
2928

3029
1. If you would like a page to appear in a single environment, add an `environment: angular` or `environment: nativescript` property to that page's front matter. Pages marked with an `environment` property will appear in a single environment, and pages _not_ marked with an `environment` property will be shared across all environments.

build/nginx.conf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,14 @@ http {
9999
rewrite ^/publishing/publishing-android-apps $proto://$host_and_port/tooling/publishing/publishing-android-apps permanent;
100100
rewrite ^/publishing/publishing-ios-apps $proto://$host_and_port/tooling/publishing/publishing-ios-apps permanent;
101101

102+
# Redirect base Angular link
103+
rewrite ^/angular$ $proto://$host_and_port/angular/start/introduction permanent;
104+
102105
# Redirect Angular Code Samples to UI Widgets
103106
rewrite ^/angular/code-samples/ui/(.*) $proto://$host_and_port/angular/ui/ng-ui-widgets/$1 permanent;
104107
rewrite ^/angular/code-samples/ui/layouts $proto://$host_and_port/angular/ui/layouts/layout-containers permanent;
105108

106-
# Redirect Angular code-samples (that were outside UI section)
109+
# Redirect Angular Code Samples (that were outside UI section)
107110
rewrite ^/angular/cookbook/application $proto://$host_and_port/angular/ng-framework-modules/application permanent;
108111
rewrite ^/angular/cookbook/application-settings $proto://$host_and_port/angular/ng-framework-modules/application-settings permanent;
109112
rewrite ^/angular/cookbook/color $proto://$host_and_port/angular/ng-framework-modules/color permanent;
@@ -151,7 +154,7 @@ http {
151154
rewrite ^/angular/tutorial/ng-chapter-6 $proto://$host_and_port/angular/start/tutorial/ng-chapter-5 permanent;
152155
rewrite ^/angular/tutorial/ng-chapter-7 $proto://$host_and_port/angular/start/ng-next-steps permanent;
153156

154-
# Redirect the JavaScript Groceris tutorial links
157+
# Redirect the JavaScript Groceries tutorial links
155158
rewrite ^/tutorial/chapter-0 $proto://$host_and_port/start/hello-world/chapter-0 permanent;
156159

157160
# Redirect .html extension

0 commit comments

Comments
 (0)