yew/firebase.json
Muhammad Hamza 62e3194d5f
Improve hosted API docs (#2373)
* build up redirects for API docs hosting

* build with all features and documenting config

* fix warnings

* can rustdoc please provide a way to modify the base url?

I want to host the docs at /next/:crate_name, not at /:crate_name ffs

* Don't clean URLs... what is rustdoc doing?

* now it wants to work???

* build a next index page

* unreleased docs banner

* show coverage

* remove ./ ???

* try 2?

* api-docs/ not api-docs-public/

* please
2022-01-15 19:57:35 +01:00

56 lines
1.0 KiB
JSON

{
"hosting": [
{
"target": "website",
"public": "website/build/",
"cleanUrls": true,
"redirects": []
},
{
"target": "api",
"public": "api-docs/dist/",
"redirects": [
{
"source": "/",
"destination": "https://docs.rs/yew",
"type": 302
},
{
"regex": "/(yew_((agent|router)?_?(macro)?))",
"destination": "https://docs.rs/:1",
"type": 302
}
]
},
{
"target": "examples",
"public": "dist",
"rewrites": [
{
"source": "/router/**",
"destination": "/router/index.html"
},
{
"source": "/todomvc/**",
"destination": "/todomvc/index.html"
}
],
"redirects": [
{
"source": "/",
"destination": "https://yew.rs/getting-started/examples",
"type": 302
}
]
}
],
"emulators": {
"hosting": {
"port": 5000
},
"ui": {
"enabled": true
}
}
}