mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 20:46:58 +02:00
fix(v2): make proper path to pages in TS (#2334)
This commit is contained in:
parent
590de95234
commit
68a5cd5df1
4 changed files with 33 additions and 1 deletions
|
@ -61,7 +61,7 @@ export function objectWithKeySorted(obj: Object) {
|
|||
}
|
||||
|
||||
const indexRE = /(^|.*\/)index\.(md|js|jsx|ts|tsx)$/i;
|
||||
const extRE = /\.(md|js)$/;
|
||||
const extRE = /\.(md|js|tsx)$/;
|
||||
|
||||
/**
|
||||
* Convert filepath to url path.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue