Relative link in monorepo #6814
Unanswered
BennyEvans
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Indeed, I don't think there's a way to tell Docusaurus to escape the base URL, but it would be useful! As of now, you need to hardcode the entire URL, like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I currently have a site setup as a monorepo such as that below:
The project is built into a single build directory and works well, however, I was wondering if there is a way to specify a relative link in docusarus without the baseURL being applied. My current configuration sets
baseUrl: '/docs/'as the docusaurus docs are served from /docs/ on my website. In the docusaurus config, I'd like to be able to set options likefavicon: '/img/favicon.ico'to point to my websites/img/favicon.icoand not/docs/img/favicon.ico. Currently after building, the baseUrl would be applied and I cannot specify/img/favicon.icoas the favicon address. Similarly, I'd like my docs navbar title to navigate back to the main website using relative URLs. Is there any way to specify a relative URL in docusaurus and tell it to not add the baseUrl?If this isn't currently possible, could this be a feature? Perhaps starting a URL with an ! or some kind of symbol could tell docusaurus not to use baseUrl in this circumstance.
Cheers,
Ben
Beta Was this translation helpful? Give feedback.
All reactions