6

Github GitHub - HaoZeke/haozeke.github.io: My org-mode site for quick write-ups

 3 years ago
source link: https://github.com/HaoZeke/haozeke.github.io
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

About

  • This is a standard landing page and blog for my miscellaneous thoughts and essentially links out to all my other work.
  • The theme is based off this theme
  • The rest of the site is configured to work well with doom-emacs, so it uses ox-hugo

Running Locally

After the dependencies are set up below the site can be built and served with rake tasks. Hugo is also expected.

$ rake --tasks
rake clean            # Clean the generated content
rake getPandoc        # Install pandoc
rake hugoBuild        # Build site with Hugo
rake hugoServe[port]  # Serve site with Hugo
rake md               # Orgmode to markdown with Emacs

With Nix

Enter the shell with nix-shell and use a rake task!

Updating Expressions

This typically involves the following:

# Optional, in ~/.config/nix/nix.conf or darwin-configuration.nix
  nix.package = pkgs.nixUnstable;
  nix.extraOptions = ''
    experimental-features = nix-command flakes
  '';

Updating the ruby packages:

nix shell nixpkgs#bundix -c bundix -l

Similarly, the node packages are to be generated with:

nix shell nixpkgs#nodePackages.node2nix -c node2nix -c node.nix

Without Nix

Track the ruby dependencies with rbenv and ruby-build:

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc

Then use them:

rbenv install 2.6.2
eval "$(rbenv init -)"
gem install bundler
bundle

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK