mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-11 06:29:51 -05:00
* feat(xo-server): serve doc locally * the doc is already distributed from the mono repo * add a build phase to the global yanr build that build a doc with the right prefix * add a http mount doc => embed build * doc(backups): add a space calculator * estimate the space needed for backups * compute the duration protected by immutability
17 lines
499 B
TypeScript
17 lines
499 B
TypeScript
// Build variant for serving the docs *inside* xo-server under the `/docs` route.
|
|
//
|
|
// It only overrides baseUrl so every asset/link is resolved under `/docs/`
|
|
// (the public site keeps baseUrl `/`). trailingSlash stays false to match how
|
|
// the docs' relative links are authored.
|
|
//
|
|
// Rebuild with:
|
|
// yarn build:xo-server
|
|
//
|
|
// Then it is mounted in packages/xo-server/config.toml under [http.mounts].
|
|
import base from './docusaurus.config'
|
|
|
|
export default {
|
|
...base,
|
|
baseUrl: '/docs/',
|
|
}
|