Skip to content

📙 The knowledge base of random tech articles at kb.tomd.xyz

License

Notifications You must be signed in to change notification settings

monodot/knowledge-base

Repository files navigation

knowledge-base

A static site of knowledge, tips and tricks that I've learned over the years, and wanted to gather together in a central place.

You don't need to build this repo. You can just browse the site here: https://kb.tomd.xyz

A small disclaimer

These are my unsanitised, community notes from my own learning. They are shared here for your benefit, for you to read.

No content from these pages should be taken as "best practices", advice, or scripts suitable for running production-level services. Please take time to understand what these scripts are doing to your system(s) before you execute them.

And of course, no warranty provided or liability assumed.

Building for production

Create a local directory to cache build dependencies:

sudo mkdir /usr/local/bundle

Then run a build in a ruby container:

podman run --rm \
    -v "$PWD":/usr/src/site \
    -v /usr/local/bundle:/usr/local/bundle \
    -w /usr/src/site \
    -e JEKYLL_ENV=production \
    docker.io/library/ruby:2.7 /bin/bash -c "bundle install && bundle exec jekyll build"

Developing

To build the site and serve locally:

$ bundle install
$ bundle exec jekyll serve --livereload

The site will now be available at http://localhost:4000.

Writing

How to write things in this static site.

Internal links look like this:

[maven]: {{ site.baseurl }}{% link _articles/maven.md %}

Contributing

Pull requests are welcome! If you see anything that needs improvement, please feel free to submit a PR.

Licence

Code licensed under GNU GPL v3. Content is (c) Tom and contributors.

About

📙 The knowledge base of random tech articles at kb.tomd.xyz

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published