INNER CODE UNIT · JavaScript
siteRootUrl
tradingview/lightweight-charts · website/plugins/docs-markdown/index.js:79
function siteRootUrl(siteUrl, baseUrl) {
return `${siteUrl.replace(/\/+$/, '')}${baseUrl.replace(/\/+$/, '')}`;
}
// ---------------------------------------------------------------------------
// Minimal shapes of the parts of the content-docs plugin output we depend on.
// (The full types live in @docusaurus/plugin-content-docs; we only need these.)
// ---------------------------------------------------------------------------
/**
* @typedef {object} DocMetadata
* @property {string} id
* @property {string} title
* @property {string} source `@site/versioned_docs/version-5.2/panes.md`
* @property {string} permalink `/lightweight-charts/docs/panes`
*/
/**