This website uses ...
-
Jekyll
to transformMarkdown
files into "static" files which the browser can understand orHTML/CSS/JS
-
TailwindCSS
1 to styleHTML
-
Install this project's
gems
viabundler
fromGemfile.lock
bundle install
-
Install
nodejs
6 & thustailwindcss
1 -
Run it ...
foreman start
- Style
Python
orMathematica
code blocks
Jekyll
(>3.0) has builtin support Rouge
so the HTML
generated by Jekyll
for things like ...
```python
def hi():
print("hi)
```
... will automatically include classes that Rouge
can hook into for styling.
Rouge
needs me to define CSS
for these classes which I can generate assets/css/syntax.css
via ...
bundle exec rougify style github.dark > assets/css/syntax.css
Footnotes
Footnotes
-
Rather than only styling
HTML
elements viaCSS
orSCSS
files,TailwindCSS
encourages targeting specific elements directly inHTML
viatailwind
classes. It reads theseHTML
files to generateCSS
for you by combining these classes & thus defining things font size, type, colorI use
npm
...
↩ ↩2npm install -D tailwindcss
-
I use
git clone
...git clone git@github.com:rdmolony/rdmolony.github.io.git
... since I prefer to authenticate with
GitHub
viaSSH
↩ -
I use
nix
...
↩nix profile install nixpkgs#ruby
-
Enables installing
gems
fromGemfile
&Gemfile.lock
I use
gem
...gem install bundler
The first time I set this up I had issues which I fixed via
bundle config set --global path "$HOME/.bundle/"
↩ -
foreman
enables running multiple services at the same time - in this casejekyll
&tailwindcss
I use
gem
...
↩gem install foreman
-
A
JavaScript
runtimeI use
nix
...
↩nix profile install nixpkgs#nodejs