1.9 KiB
1.9 KiB
Docusaurus Settings
Docusaurus is the tool that generates the website that hosts docs in cloud and OSS. Here are some quick relevant guides using docusaurus at Airbyte.
I want to change the sidebar
- OSS: sidebar is generated in a JSON blob here
- OSS: Here is a guide to the JSON blob structure
- Cloud: sidebar is autogenerated
- folders will become dropdown items
- if there is a
README.mdin the folder- it will be the default view
- the first
# headingwill be the folder title
- if there is not a
README.mdin the folder name of folder will be the drop down name
But how do I change the links on top?
- go to one of these config files
- Copy an existing JSON object like this but change the values a bit so people don't think you copied my homework
{
href: 'https://theuselessweb.com',
position: 'left',
label: 'A collection of useless websites',
},
- test locally following this guide
Updating docusaurus
For security and an occasional cool features you may want to update docusaurus. From time to time docusaurus will suggest you do just that. It is a reasonable decision to copy the update command docusaurus suggests. It should look something like this:
yarn upgrade @docusaurus/core@latest @docusaurus/plugin-google-gtag@latest @docusaurus/preset-classic@latest
Keep in mind this won't update dependencies. The upside is that the dependencies probably won't break.
The downside is that they probably also contain known security vulnerabilities.
