GithubHelp home page GithubHelp logo

vongrossi / runbooks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from containersolutions/runbooks

0.0 1.0 0.0 2.31 MB

A collection of step by step guides for fixing common tech problems.

Home Page: https://containersolutions.github.io/runbooks/

License: Other

HTML 48.25% Shell 9.84% Dockerfile 15.27% CSS 26.64%

runbooks's Introduction

Runbooks

The Manifesto

  • We are tired of haphazardly hunting through messy threads of GitHub issues and StackOverflow when we hit a problem

  • We don't want a one-off fix, we want to deepen our understanding of the problem space

  • We want to give people a resource where they can benefit from our experience without taking up our time

What

A collection of step by step guides for fixing common tech problems.

The content is published here

Requirements

Submodules

Hugo uses submodule for themes so when you are cloning this repository you should pass the --recursive flag:

git clone --recursive [email protected]:ContainerSolutions/runbooks.git

Running hugo locally

Docker

If you have docker compose installed you can simply call and you should see the blog at http://localhost:1313/runbooks/

docker-compose up

Local Install (runs really fast)

First install hugo then from this repository run:

hugo serve -D

Github pages deploy

The deploy to Github Pages is controlled by this action. The reference to this is found in .github/workflows/main.yml.

To update the key used

  1. create an SSH key and put the private key into a secret called GIT_DEPLOY_KEY here.
  2. add the public key as a deploy key with write access here.

More granular details are available on the action page.

Debugging

The Hugo docs can occasionally be a bit vague about what methods are available or what they return. There also seems to be quite a bit of push-back to adding general debugging tools. One user has created a theme that includes a partial and a shortcode to work around this limitation.

If you are working from inside a partial or layout file you can include the following partial and pass the property that you wish to inspect. I'm using .File in the example below.

{{ partial "debugprint.html" .File }}

This will show you various properties available via .File.

If working within a content file things are a lot more limited but you can pass the following variants to get appropriate output:

{{< debug "params" >}}
{{< debug "site" >}}
{{< debug param="title" >}}

but generally you will get more use when invoking the debugprint partial directly.

Adding content

Run:

hugo new posts/path/article-name.md

Then git add, commit, raise PR as normal.

License

See LICENSE

runbooks's People

Contributors

ianmiell avatar gerrywastaken avatar sinithh avatar

Watchers

James Cloos 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.