mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 14:52:29 +02:00
feat(core): hash router option - browse site offline (experimental) (#9859)
This commit is contained in:
parent
b73ad1ece5
commit
17f3e02a42
38 changed files with 1018 additions and 266 deletions
|
@ -90,6 +90,30 @@ describe('normalizeUrl', () => {
|
|||
input: ['http://foobar.com', '', 'test', '/'],
|
||||
output: 'http://foobar.com/test/',
|
||||
},
|
||||
{
|
||||
input: ['http://foobar.com/', '', 'test', '/'],
|
||||
output: 'http://foobar.com/test/',
|
||||
},
|
||||
{
|
||||
input: ['http://foobar.com', '#', 'test'],
|
||||
output: 'http://foobar.com/#/test',
|
||||
},
|
||||
{
|
||||
input: ['http://foobar.com/', '#', 'test'],
|
||||
output: 'http://foobar.com/#/test',
|
||||
},
|
||||
{
|
||||
input: ['http://foobar.com', '/#/', 'test'],
|
||||
output: 'http://foobar.com/#/test',
|
||||
},
|
||||
{
|
||||
input: ['http://foobar.com', '#/', 'test'],
|
||||
output: 'http://foobar.com/#/test',
|
||||
},
|
||||
{
|
||||
input: ['http://foobar.com', '/#', 'test'],
|
||||
output: 'http://foobar.com/#/test',
|
||||
},
|
||||
{
|
||||
input: ['/', '', 'hello', '', '/', '/', '', '/', '/world'],
|
||||
output: '/hello/world',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue