Coder Social home page Coder Social logo

dmsimonov / haozeke.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haozeke/haozeke.github.io

0.0 0.0 0.0 265.09 MB

My org-mode site for quick write-ups

Home Page: https://rgoswami.me

License: MIT License

Emacs Lisp 0.15% Makefile 0.22% HTML 25.15% TeX 19.19% Nix 7.45% R 0.08% Shell 0.15% Ruby 0.07% JavaScript 40.77% CSS 6.58% Fortran 0.01% eC 0.04% PowerBuilder 0.04% Assembly 0.11%

haozeke.github.io's Introduction

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

This site uses modular Hugo themes so:

git submodule update --init

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:

# Wit nix shell (v2.4 and up)
nix shell nixpkgs#bundix -c bundix -l
# Without
nix-shell -p bundix --run "bundix -l"

Similarly, the node packages are to be generated with:

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

With the updates done globally:

npm install -g npm-check-updates
ncu -u # Might break!

Without Nix

Conda Environments

Most of the dependencies can be setup via micromamba or another equivalent. The exceptions are:

Ruby

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 3.2.2
eval "$(rbenv init -)"
gem install bundler
bundle

Fix snippets not being part of the sitemap

haozeke.github.io's People

Contributors

haozeke avatar imgbotapp avatar dependabot[bot] avatar lgtm-migrator avatar dependabot-preview[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.