Integration of docusaurus and obsidian vault
Done until now:
- Creation of vault
- Initializing and pushing git
- Creating initial structure, tags, notes
Left
- Nested tags to sidebar mapping
- Creating git submodule inside docu.
- Read more about docu. plugin and sidebar
So todos, now,
- Read more about docu sidebar ✅ 2024-07-22
- Read more about docu plugins ✅ 2024-07-23
- Read more from gpt on docusaurus sidebar-plugin ✅ 2024-07-23
- Create submodule, import ✅ 2024-07-23
- Start planning then executing mapping ✅ 2024-07-23
Notes on sidebar:
You can, however, use the
sidebar_label
Markdown front matter within that doc, which has higher precedence over thelabel
key in the sidebar item.
export default {
mySidebar: [
// Normal syntax:
{
type: 'doc',
id: 'doc1', // document ID
label: 'Getting started', // sidebar label
},
// Shorthand syntax:
'doc2', // document ID
],
};
In the build script {the npm script} will
- copy all files from src/2024... To docs/2024...
- Generate a sidebar.json which can be imported in sidebar.ts
- Create a var at top level (for what?)
- Go through each file `
- Read 1st 5 line max
- Write necessary metadata (like
sidebar_label
, ) { Metadata API } - Create a key value pair for each document key: id, value: {name: doc name, tags: (all, including nested)}
- From the nested tags () -> sidebar folder structure (inside links can be repeated, but files are not) { docs sidebar - what to do }
- Spew out sidebar.json
- I don't need any plugins, not yet anyway
Reference: