# Obsidian Configuration 1. [Fonts](Fonts.md) 2. [Obsidian-Code-Editor-Overrides](Obsidian-Code-Editor-Overrides.md) 3. Images example: 1. ![another test|600](https://intuitive-ml-images.s3.us-west-1.amazonaws.com/machine_learning/unsupervised/spectral_embeddings/graph_vs_adjacency_matrix.png) 4. New Blog 1. To build, need to essentially follow the steps in this workflow yaml [here](https://github.com/jackyzha0/jackyzha0.github.io/blob/hugo/.github/workflows/deploy.yaml) 2. Install go via brew (make sure it is added to path [here](https://apple.stackexchange.com/questions/41542/adding-a-new-executable-to-the-path-environment-variable)) 3. Install hugo-obsidian from [here](https://github.com/jackyzha0/hugo-obsidian) 4. Make sure that hugo-obsidian binary is accessible ( cd ~/go/bin, then `sudo ln hugo-obsidian /usr/local/bin `) 5. clone https://github.com/NathanielDake/second_brain 6. from repo run `hugo-obsidian -input=content -output=data -index=true` 7. Install hugo on mac via home brew [here](https://gohugo.io/getting-started/installing/) 8. Run `hugo` 9. Run `hugo server` * Inspiration: https://jzhao.xyz/ * Quartz: https://www.reddit.com/r/ObsidianMD/comments/onflb9/quartz_create_and_publish_your_obsidian_vault_for/ ### TODO * New blog lives at `/development/data-science/second_brain` * Vault lives at `~/Library/Mobile Documents/iCloud~md~obsidian/Documents` * Update graph to have better hover controls (find a tutorial) * Decide on a general color them moving forward * Update some of your CSS to reflect this them (fonts, colors, etc) * Remove all of Jacks content, replace with yours * Move your obsidian vault to live in here * Likely, the best thing to do is still have vault live in icloud. But then have a script that is run daily (And can be run manually) that rsyncs everything from that folder to your second_brain content * Can wrap this in a "prep deploy" bash script that syncs everything, builds, then starts a hugo server that you can check on * Determine how to structure you obsidian vault (content, home page, etc, etc) to ensure that only the correct stuff gets added? * https://www.reddit.com/r/ObsidianMD/comments/onflb9/quartz_create_and_publish_your_obsidian_vault_for/ * https://discourse.gohugo.io/t/ignore-a-directory/8880 * Get concepts prepped with agreed upon color palette * Move images to S3 so we don't run into GH limit (do not commit them or they will be in the history) * Script that: scans obsidian vault for images, moves them to S3, grabs link, updates markdown files with correct link 👍🏻 * Need (if you want internal links to work): use this library to make sure that internal links are consistent: https://github.com/derwish-pro/obsidian-consistent-attachments-and-links (markdown supported....) * how the hell does search work? * color scheme... * update all mark down file names to include dashes, NO spaces! This is needed to work with hugo * Convert all relative markdown links to absolute * One approach - add front matter to all md files via python, then use obsidian link converter...maybe it won't error at this point * consider trying to remove all files from the dir that could be causing a problem * May honestly want to just use the functionality that can actually convert to relative, THEN write a script that simply converts to absolute * scan each file * for each file we simply need to know the root, then if a file is marked as right * Ugghhh it's not that easy mother fuck * * get latex to work * Determine Folder structure. Thinking something like: * Posts * Notes (less free form, more structured than thoughts) * Thoughts (rough ideas that you come up with quickly) * Don't publish (likely a `notes/work` structure). * Images need to be resolved. * don't worry about directories in S3 (I think) * Just get things moved to S3, then write a script to * scan S3, get a url for each image, then comb through files and replace any image with the corresponding s3 url * Start putting code and notebooks used for this process somewhere safe * Have this content folder rsync to i cloud * actually, realistically want the main vault that you update to live in i cloud dir. Then, have an rsync command that moves it over to content dir when you want. * Consider using symlink? * consider embedding graph on each post page * Figure out the difference between post and thought template * Places to look for things * Current vault synced via icloud `~/Library/Mobile Documents/iCloud~md~obsidian/Documents/nates_notes` * Updated copy of that vault: `~/development/data-science/nates_notes_tmp` * Vault, updated, moved to content: `~/development/data-science/second_brain/content` * Need to figure out best order of operations to move forward. Current thoughts: * Determine folder structure and start moving things around to the correct folder * Get a good todo list going to keep track of what should go where, what needs to be updated, etc * Take care of images * Write a script that scans for Markdown links, removes dashes. I.e., looks through files for a regex matching `[]()`, and then when it sees it removing any dashes that occur in side the bracket that are not surrounded by spaces * Color pallette [example](https://images.ctfassets.net/xjan103pcp94/3kHHnv7QX3UlU7cDRtPxky/97f3890a1ecadeb7121d84f858c57f22/ImageProcessingAutoscalingClustersRay.jpeg) (really slick, taken from this random post [here](https://www.anyscale.com/blog/autoscaling-clusters-with-ray))