-
I use Obsidian a powerful and extensible knowledge base that works on top of your local folder of plain text files.
-
I use Obsidian git plugin to back up to GitHub
-
The repository uses
Docusaurus 2, a documentation-building tool, that is useful to turn my markdown notes to beautiful sites- I keep my notes in the
/docsfolder ofDocusaurus
- I keep my notes in the
-
Algolia with
Docusaurus 2to add instant search, which is the most useful thing -
Private notes(optional)
- Private notes are either notes that I think aren't ready for publishing to web yet or notes that are Personal like shopping list, so they do not need to be on git or online.
- But still if you want to store them as a backup. you can use the following simple process.
- Use the following command to backup and restore
npm run private_backup- This command zips a folder called Private in docs folder and store them in
private_backupfolder - It also removes old backups, 30 or more days old
- It zips folders using provided password.
- Make sure the script is executable(
private_backup/backup_script.sh) andp7zipis installed already
- This command zips a folder called Private in docs folder and store them in
7z x ./private_backup/{foldername.7z} -o./private_backup- This command decrypts a folder prompted the correct password.
- You can then copy the extract folder called Private to docs dir.
- Obsidian git
- Simple plugin that allows you to back up your Obsidian vault to a remote Git repository (e.g. private repo on GitHub).
- Linter
- An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
- Obsidian-execute-code
- This plugin allows you to execute code snippets in code blocks in your notes. The plugin adds a 'run' button for code blocks in supported languages.
- This is very useful if you have a code snippet on your note and execute it while reading.
- Download Obsidian and install it
- Clone this repo
git clone git@github.com:zekaryas1/notes.git- follow the next Docusaurus setup
- With obsidian open the
\docsfolder - optional -> Install and configure the above plugins
- Start writing notes
This website is built using Docusaurus 2, a modern static website generator.
npm install
$ npm run start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ npm run build
This command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
$ USE_SSH=true npm deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> npm deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
