diff --git a/docs/app/@theme/services/text.service.ts b/docs/app/@theme/services/text.service.ts
index b3f219b825..bf83dfd34c 100644
--- a/docs/app/@theme/services/text.service.ts
+++ b/docs/app/@theme/services/text.service.ts
@@ -1,4 +1,5 @@
import { Injectable } from '@angular/core';
+import { Location } from '@angular/common';
import * as marked from 'marked';
import { NgdHighlightService } from './highlight.service';
@@ -10,7 +11,7 @@ export class NgdTextService {
private readonly TITLE_MASK = '^#{1,6}[^#]?(.+)\n';
private readonly STRIP_HTML = '<\\/?[^>]+(>|$)';
- constructor(private highlight: NgdHighlightService) {
+ constructor(private highlight: NgdHighlightService, private location: Location) {
}
mdToSectionsHTML(markdown: string) {
@@ -31,9 +32,10 @@ export class NgdTextService {
mdToHTML(markdown: string) {
return marked
.setOptions({
+ baseUrl: this.location.prepareExternalUrl(''),
langPrefix: 'hljs ',
highlight: (code) => this.highlight.highlight(code),
- })
+ } as any)
.parse(markdown.trim());
}
diff --git a/docs/app/documentation/page/page.component.html b/docs/app/documentation/page/page.component.html
index 80df01b133..d9e9dff442 100644
--- a/docs/app/documentation/page/page.component.html
+++ b/docs/app/documentation/page/page.component.html
@@ -19,6 +19,8 @@
+
Page does not exist.
+
3rd Party Libraries
diff --git a/docs/articles/enabling-theme-system.md b/docs/articles/enabling-theme-system.md
index 109b6cac36..a53e733ca6 100644
--- a/docs/articles/enabling-theme-system.md
+++ b/docs/articles/enabling-theme-system.md
@@ -3,7 +3,7 @@
Note
- If you use our [ngx-admin starter kit](#/docs/guides/install-based-on-starter-kit) then you already have the Advanced setup in place.
+ If you use our [ngx-admin starter kit](docs/guides/install-based-on-starter-kit) then you already have the Advanced setup in place.
@@ -188,6 +188,6 @@ enableDarkTheme() {
## Related Articles
-- [Theme System Concepts](#/docs/guides/theme-system).
-- [Default Theme variables table](#/docs/themes/default).
-- [Cosmic Theme variables table](#/docs/themes/cosmic).
+- [Theme System Concepts](docs/guides/theme-system).
+- [Default Theme variables table](docs/themes/default).
+- [Cosmic Theme variables table](docs/themes/cosmic).
diff --git a/docs/articles/index.md b/docs/articles/index.md
index 07d017ed02..906ca46cb7 100644
--- a/docs/articles/index.md
+++ b/docs/articles/index.md
@@ -49,8 +49,5 @@ That's why we are on a mission to assemble together the most useful modules and
This documentation assumes that you are already familiar with JavaScript/TypeScript, Angular, CSS and Bootstrap.
-## Looking for ng2-admin?
-It's not gone and still supported! The ng2-admin is still available at
GitHub branch.
-
## Have questions?
Didn't find something here? Look through the
issues or simply drop us a line at
contact@akveo.com.
diff --git a/docs/articles/install-into-existing.md b/docs/articles/install-into-existing.md
index 7a3ec0a7e5..8c59f5ab5b 100644
--- a/docs/articles/install-into-existing.md
+++ b/docs/articles/install-into-existing.md
@@ -1,7 +1,7 @@
# Add Into Existing Project
If you don't have any code yet, please consider checking
Angular CLI documentation for help creating your app.
-In case you want to start based on our ngx-admin starter kit, please check out [Based on Starter Kit (ngx-admin)](#/docs/guides/install-based-on-starter-kit) article.
+In case you want to start based on our ngx-admin starter kit, please check out [Based on Starter Kit (ngx-admin)](docs/guides/install-based-on-starter-kit) article.
ngx-admin custom components
@@ -48,7 +48,7 @@ import { NbThemeModule } from '@nebular/theme';
export class AppModule {
```
-Same way you can enable Auth Module (more details under [Auth Module Concepts & Install](#/docs/auth/conceptsinstall) article).
+Same way you can enable Auth Module (more details under [Auth Module Concepts & Install](docs/auth/conceptsinstall) article).
## Install Styles
@@ -67,7 +67,7 @@ Include Bootstrap and default Nebular theme CSS files into your `.angular-cli.js
Advanced Theme System configuration
In this article we describe the very basic styles installation. If you need more advanced features, like theme variables management,
- or even multiple themes switching - check out
Enabling Theme System article.
+ or even multiple themes switching - check out [Enabling Theme System](docs/guides/enable-theme-system) article.
@@ -133,7 +133,7 @@ And done! At this step, you should have a page with a simple layout on it lookin
## Related Articles
-- [Advanced Theme System configuration](#/docs/guides/enable-theme-system)
-- [Nebular UI Kit](#/docs/guides/components-overview#advanced-setup)
-- [NbLayout, NbLayoutColumn, NbLayoutHeader, NbLayoutFooter](#/docs/components/layout)
-- [Deploying to production server](#/docs/guides/server-deployment)
+- [Advanced Theme System configuration](docs/guides/enable-theme-system)
+- [Nebular UI Kit](docs/guides/components-overview#advanced-setup)
+- [NbLayout, NbLayoutColumn, NbLayoutHeader, NbLayoutFooter](docs/components/layout)
+- [Deploying to production server](docs/guides/server-deployment)
diff --git a/docs/articles/install-starter-kit.md b/docs/articles/install-starter-kit.md
index fbf8bbf5d8..430d5548f7 100644
--- a/docs/articles/install-starter-kit.md
+++ b/docs/articles/install-starter-kit.md
@@ -61,10 +61,9 @@ npm run build:prod
```
This will clear up your `dist` folder (where release files are located) and generate a release build.
-Now you can copy the sources from the `dist` folder and use it with any backend framework or simply [put it under a web server](#/docs/guides/server-deployment).
+Now you can copy the sources from the `dist` folder and use it with any backend framework or simply [put it under a web server](docs/guides/server-deployment).
## Related Articles
-- [Deploying to production server](#/docs/guides/server-deployment)
-- [Updating ngx-admin to the latest verion](#/docs/guides/ngx-admin-update)
+- [Deploying to production server](docs/guides/server-deployment)
diff --git a/docs/articles/security-install.md b/docs/articles/security-install.md
index 024b4f2525..ad583101ad 100644
--- a/docs/articles/security-install.md
+++ b/docs/articles/security-install.md
@@ -3,7 +3,7 @@
Note
- If you use our [ngx-admin starter kit](#/docs/guides/install-based-on-starter-kit) then you already have Security module in place.
+ If you use our [ngx-admin starter kit](docs/guides/install-based-on-starter-kit) then you already have Security module in place.
@@ -38,4 +38,4 @@ Great, at this stage we have installed Nebular Security and ready to configure i
## Related Articles
-- Roles & Permissions [Configuration & Usage](#/docs/security/acl-configuration--usage)
+- Roles & Permissions [Configuration & Usage](docs/security/acl-configuration--usage)
diff --git a/docs/articles/security-intro.md b/docs/articles/security-intro.md
index 5ac59c4f8a..0a7a2261d6 100644
--- a/docs/articles/security-intro.md
+++ b/docs/articles/security-intro.md
@@ -26,4 +26,4 @@ Unlike the `Nebular Auth`, which provides a way to `authenticate` a user, `Nebul
## Related Articles
-- Security Module [Installation](#/docs/security/installation)
+- Security Module [Installation](docs/security/installation)
diff --git a/docs/articles/server-deployment.md b/docs/articles/server-deployment.md
index b113795899..0c43e6dd0d 100644
--- a/docs/articles/server-deployment.md
+++ b/docs/articles/server-deployment.md
@@ -12,4 +12,4 @@ More details on how to setup your web-server to better serve the application can
## Related Articles
-- [Backend configuration](#/docs/guides/backend-integration)
+- [Backend configuration](docs/guides/backend-integration)
diff --git a/docs/articles/start.md b/docs/articles/start.md
index bc9fe3e949..a65f29f8b7 100644
--- a/docs/articles/start.md
+++ b/docs/articles/start.md
@@ -7,8 +7,8 @@ Nebular is a set of modules for
An
Based on a current setup of your project and your goals, there are two starting points:
-- **[Starting based on our Nebular Admin starter kit](#/docs/guides/install-based-on-starter-kit)** Consider this tutorial if you are building admin or any other back-office application and you need a template as a good starting kit.
-- **[Adding into existing Angular Project](#/docs/guides/add-into-existing-project)** This tutorial explains how to use Nebular if you already have some Angular code as starting app from scratch.
+- **[Starting based on our Nebular Admin starter kit](docs/guides/install-based-on-starter-kit)** Consider this tutorial if you are building admin or any other back-office application and you need a template as a good starting kit.
+- **[Adding into existing Angular Project](docs/guides/add-into-existing-project)** This tutorial explains how to use Nebular if you already have some Angular code as starting app from scratch.
Please consider creating an issue on GitHub if your use case is not described above. But we kindly ask to always look through the documentation and the list of existing issues first.
diff --git a/package.json b/package.json
index 54fc66ad18..7d2a18f784 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,6 @@
"build": "ng build",
"build:prod": "npm run build -- --prod --aot",
"build:wp": "npm run build:prod -- playground-wp",
- "build:ghpages": "npm run build:prod -- --base-href \"https://akveo.github.io/nebular/\" && ngh",
"build:package": "npm-run-all -s clean:tmp:lib gulp build:ts build:inline-resources build:bundle clean:tmp",
"build:ts": "tsc -p tsconfig.publish.json && ngc -p tsconfig.publish.json",
"build:inline-resources": "gulp inline-resources",