1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-30 18:24:35 +01:00

Added path mappings

This commit is contained in:
squidfunk 2019-12-18 16:38:36 +01:00
parent 13ffcb490f
commit c32c7a8a20
11 changed files with 66 additions and 14 deletions

43
package-lock.json generated
View File

@ -397,6 +397,12 @@
"@types/node": "*" "@types/node": "*"
} }
}, },
"@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
"integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=",
"dev": true
},
"@types/lunr": { "@types/lunr": {
"version": "2.3.2", "version": "2.3.2",
"resolved": "https://registry.npmjs.org/@types/lunr/-/lunr-2.3.2.tgz", "resolved": "https://registry.npmjs.org/@types/lunr/-/lunr-2.3.2.tgz",
@ -8581,6 +8587,43 @@
"integrity": "sha512-qSC/t6vfUPqVMkH7wQmRwYbShubAJufUoUynJj8e+AlSXK3+M6rC/OnQ+Mdw6Qd/WYTf46QZDM8nUhxYVJTIPw==", "integrity": "sha512-qSC/t6vfUPqVMkH7wQmRwYbShubAJufUoUynJj8e+AlSXK3+M6rC/OnQ+Mdw6Qd/WYTf46QZDM8nUhxYVJTIPw==",
"dev": true "dev": true
}, },
"tsconfig-paths": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz",
"integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==",
"dev": true,
"requires": {
"@types/json5": "^0.0.29",
"json5": "^1.0.1",
"minimist": "^1.2.0",
"strip-bom": "^3.0.0"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
},
"strip-bom": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
"integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
"dev": true
}
}
},
"tsconfig-paths-webpack-plugin": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/tsconfig-paths-webpack-plugin/-/tsconfig-paths-webpack-plugin-3.2.0.tgz",
"integrity": "sha512-S/gOOPOkV8rIL4LurZ1vUdYCVgo15iX9ZMJ6wx6w2OgcpT/G4wMyHB6WM+xheSqGMrWKuxFul+aXpCju3wmj/g==",
"dev": true,
"requires": {
"chalk": "^2.3.0",
"enhanced-resolve": "^4.0.0",
"tsconfig-paths": "^3.4.0"
}
},
"tslib": { "tslib": {
"version": "1.9.3", "version": "1.9.3",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz",

View File

@ -64,6 +64,7 @@
"svgo": "^1.3.0", "svgo": "^1.3.0",
"ts-loader": "^6.1.2", "ts-loader": "^6.1.2",
"ts-node": "^7.0.1", "ts-node": "^7.0.1",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"tslint": "^5.18.0", "tslint": "^5.18.0",
"tslint-sonarts": "^1.9.0", "tslint-sonarts": "^1.9.0",
"typescript": "^3.7.3", "typescript": "^3.7.3",

View File

@ -24,7 +24,7 @@ import { keys } from "ramda"
import { NEVER, Observable, OperatorFunction, of, pipe } from "rxjs" import { NEVER, Observable, OperatorFunction, of, pipe } from "rxjs"
import { map, scan, shareReplay, switchMap } from "rxjs/operators" import { map, scan, shareReplay, switchMap } from "rxjs/operators"
import { getElement } from "../../utilities" import { getElement } from "utilities"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Types * Types

View File

@ -29,8 +29,8 @@ import {
tap tap
} from "rxjs/operators" } from "rxjs/operators"
import { resetHidden, setHidden } from "../../actions" import { resetHidden, setHidden } from "actions"
import { ViewportOffset } from "../../utilities" import { ViewportOffset } from "utilities"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Functions * Functions

View File

@ -28,7 +28,8 @@ import {
shareReplay shareReplay
} from "rxjs/operators" } from "rxjs/operators"
import { ViewportOffset, ViewportSize } from "../../utilities" import { ViewportOffset, ViewportSize } from "utilities"
import { Header } from "../header" import { Header } from "../header"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------

View File

@ -42,8 +42,9 @@ import {
resetSidebarLock, resetSidebarLock,
setSidebarHeight, setSidebarHeight,
setSidebarLock setSidebarLock
} from "../../actions" } from "actions"
import { ViewportOffset } from "../../utilities" import { ViewportOffset } from "utilities"
import { Main } from "../main" import { Main } from "../main"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------

View File

@ -20,8 +20,9 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import { h } from "../../../extensions" import { h } from "extensions"
import { SearchResult } from "../../../modules" import { SearchResult } from "modules"
import { renderArticleDocument } from "../article" import { renderArticleDocument } from "../article"
import { renderSectionDocument } from "../section" import { renderSectionDocument } from "../section"

View File

@ -20,8 +20,8 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import { h } from "../../../extensions" import { h } from "extensions"
import { ArticleDocument } from "../../../modules" import { ArticleDocument } from "modules"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Data * Data

View File

@ -20,8 +20,8 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import { h } from "../../../extensions" import { h } from "extensions"
import { SectionDocument } from "../../../modules" import { SectionDocument } from "modules"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Data * Data

View File

@ -20,7 +20,8 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import { Search } from "../../../modules" import { Search } from "modules"
import { SearchMessage, SearchMessageType } from "../_" import { SearchMessage, SearchMessageType } from "../_"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------

View File

@ -21,6 +21,7 @@
*/ */
import * as path from "path" import * as path from "path"
import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin"
import { Configuration } from "webpack" import { Configuration } from "webpack"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
@ -74,7 +75,10 @@ function config(args: Configuration): Configuration {
__dirname, __dirname,
path.resolve(__dirname, "node_modules") path.resolve(__dirname, "node_modules")
], ],
extensions: [".ts", ".tsx", ".js", ".json"] extensions: [".ts", ".tsx", ".js", ".json"],
plugins: [
new TsconfigPathsPlugin()
]
}, },
/* Source maps */ /* Source maps */