Skip to content

Commit

Permalink
inital mdBook try
Browse files Browse the repository at this point in the history
  • Loading branch information
KGB33 committed Feb 18, 2024
1 parent f36561d commit 81d010f
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 16 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Docs
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# contents: write # To push a branch
pages: write # To push to a GitHub Pages site
id-token: write # To update the deployment status
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir mdbook
curl -sSL $url | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Build Book
run: |
mdbook build docs
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'docs/book'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ cilium.yaml
secrets.yaml

vendor/

# mdBook
book/
6 changes: 6 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[book]
authors = ["Kelton Bassingthwaite"]
language = "en"
multilingual = false
src = "src"
title = "Homelab Docs"
3 changes: 0 additions & 3 deletions docs/index.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Summary

- [Secrets](./secrets.md)
5 changes: 5 additions & 0 deletions docs/src/secrets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Secrets

## Terraform Proxmox API

## Kubernetes Sealed Secrets
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@
pyPkgs.ansible-core
pyPkgs.ansible
pyPkgs.kubernetes
pkgs.ansible-lint
pkgs.opentofu
pkgs.ansible-language-server
pkgs.talosctl
pkgs.kubectl
pkgs.kubeseal
pkgs.ansible-lint
pkgs.argocd
pkgs.cilium-cli
pkgs.jq
pkgs.yq-go
pkgs.argocd
pkgs.jsonnet
pkgs.jsonnet-bundler
pkgs.just
pkgs.kubectl
pkgs.kubeseal
pkgs.mdbook
pkgs.opentofu
pkgs.talosctl
pkgs.yq-go
];
};

Expand Down

0 comments on commit 81d010f

Please sign in to comment.