• Stars
    star
    233
  • Rank 166,371 (Top 4 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GitHub Action to deploy an MkDocs site to GitHub Pages

GitHub Action to deploy an MkDocs site to GitHub Pages

GitHub Badge

This GitHub action will deploy your MkDocs site as GitHub Pages, using the Material theme. It assumes that an mkdocs.yml file is present in the top-level directory and the source files (Markdown, etc.) are in the docs/ folder. You can use mhausenblas/mkdocs-template as a template.

Before you start, make sure you enable GitHub pages via the repo settings.

There are two methods for generating and building your gh-pages branch: use either a PERSONAL_TOKEN which is loaded with a personal access token containing repo privileges, or using GITHUB_TOKEN which is a token provided by the GITHUB API with sufficient privileges to perform repo-related operations.

Building with PERSONAL_TOKEN

Generate a personal access token (scope repo) and create a secret in your repository settings with the name PERSONAL_TOKEN and the value of the token generated.

Note that this is an account-level token that has access to update any repo owned by you, so be sure to avoid sharing it.

Building with GITHUB_TOKEN

This action supports building and deploying with a GITHUB_TOKEN. This token is automatically generated by Github Actions when a workflow runs so it is convenient.

It is more secure than a personal token, since you never actually see the value of the GITHUB_TOKEN and also the GITHUB_TOKEN is scoped to only work for a single repo.

You may need to give the GITHUB_TOKEN write permission. Go to your repository's Settings > Actions > General > Workflow Permissions and select Read and write permissions.

Note that for this approach, Github Pages will be enabled in Settings but you will not have a URL displayed or environment tab yet. So change the Github Pages settings to another target and then back again to gh-pages (if that is your branch to serve) - then you will see a URL. This step is only needed on the first deploy and no action is needed later on.

Alternative GITHUB_DOMAIN

In case this action should be used in a Github Enterprise environment you can overwrite the github.com domain with your corresponding Github Enterprise domain name by specifying the GITHUB_DOMAIN environment variable.

Custom domain for github pages

MkDocs can be deployed to github pages using a custom domain, if you populate a CUSTOM_DOMAIN environment variable. This will generate a CNAME file, which will be placed inside the /docs folder.

https://www.mkdocs.org/user-guide/deploying-your-docs/#custom-domains

Custom File Pathing of Mkdocs file

This action supports deployment of mkdocs with different file path , if you populate a CONFIG_FILE environment variable. This is important if you have mkdocs file in another folder such as if you have mkdocs.yml in a path docs/mkdocs.yml. Without populating this, the deployment assumes that mkdocs.yml is on the root folder.

Installing extra packages

Some Python packages require C bindings. These packages can be installed using the EXTRA_PACKAGES variable. The EXTRA_PACKAGES variable will be passed to the apk add command of Alpine Linux before running pip install to install the Python packages.

Installing mkdocs plugins

If you use some mkdocs plugins like codeinclude then you need to define it as dependency in the typical python way with a requirements.txt file. In the sample above you need to add the line mkdocs-codeinclude-plugin. Then you need to link the file using the REQUIREMENTS variable.

Example usage

name: Publish docs via GitHub Pages
on:
  push:
    branches:
      - main

jobs:
  build:
    name: Deploy docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout main
        uses: actions/checkout@v2

      - name: Deploy docs
        uses: mhausenblas/mkdocs-deploy-gh-pages@master
        # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CUSTOM_DOMAIN: optionaldomain.com
          CONFIG_FILE: folder/mkdocs.yml
          EXTRA_PACKAGES: build-base
          # GITHUB_DOMAIN: github.myenterprise.com
          REQUIREMENTS: folder/requirements.txt

More Repositories

1

cinf

Command line tool to view namespaces and cgroups, useful for low-level container prodding
Go
455
star
2

dnpipes

Distributed Named Pipes
Go
452
star
3

lambda-architecture.net

A repository of information, examples and good practices around the Lambda Architecture
CSS
369
star
4

kboom

The Kubernetes scale & soak load tester
Go
301
star
5

reshifter

Kubernetes cluster state management
CSS
295
star
6

burry.sh

Cloud Native Infrastructure BackUp & RecoveRY
Go
260
star
7

rbac.dev

A collection of good practices and tools for Kubernetes RBAC
223
star
8

schema-org-rdf

Schema.org in RDF
HTML
185
star
9

k8s-sec

Kubernetes Security: from Image Hygiene to Network Policies
145
star
10

cidrchk

CLI tool for CIDR range operations (check, generate)
Go
133
star
11

kubed-sh

A cloud native Kubernetes cluster shell for the casual user
Go
97
star
12

krs

A command line tool for capturing and serializing Kubernetes resource statistics in OpenMetrics format
Go
95
star
13

kube-rpi

Kubernetes on Raspberry Pi 4 with 64-bit OS
82
star
14

the-container-security-book

The Container Security Book—a free book for practitioners
82
star
15

modern-linux.info

Learning Modern Linux book website
Shell
80
star
16

cn-ref

A collection of tools and references around container networking
78
star
17

rbIAM

A unified IAM+Kubernetes RBAC access control exploration tool
Go
75
star
18

5stardata.info

Information around TimBL's 5 star Open Data plan
HTML
70
star
19

eksphemeral

A simple Amazon EKS manager for ephemeral clusters
Go
66
star
20

stateful-kubernetes

All Thingz Stateful Apps & Tooling in Kubernetes
HTML
66
star
21

kn

A collection of shell functions for Kubernetes native dabbling
Shell
50
star
22

right-size-guide

A CLI tool providing memory & CPU recommendations for containerized apps
Go
48
star
23

l2i

The Lambda Layer Inspector (L2I)
Go
43
star
24

rbacadabra

A collection of RBAC recipes and tips & tricks
42
star
25

zdd-lab

DC/OS Zero Downtime Deployments Lab
Shell
39
star
26

simpleservice

A simple service for testing container orchestration setups
Python
35
star
27

yages

Yet another gRPC echo server (YAGES)
Go
34
star
28

troubleshooting-k8s-apps

Troubleshooting Kubernetes Applications
HTML
33
star
29

kubectl-in-action

Tips and Tricks around using kubectl to manage your Kubernetes cluster
29
star
30

usn-app

UberSocialNet—applying the Lambda Architecture
Python
29
star
31

o11y-in-action.cloud

Cloud Observability in Action
Go
26
star
32

web.instata

Turn your POTD into Web data
Python
26
star
33

canihaznonprivilegedcontainers.info

Advocacy site for the uptake of using non-privileged containers
24
star
34

omnidator

Translates Schema.org annotated data formats (microdata, CSV, etc.) into other data formats (JSON, RDF, etc.)
Python
24
star
35

mehdb

Educational Kubernetes-native NoSQL datastore using StatefulSet and persistent volumes
Go
23
star
36

k8s-autoscale

Kubernetes Autoscaling Experiments
JavaScript
23
star
37

turtled

A simple online RDF Turtle editor
JavaScript
22
star
38

nase

A PoC for native Kubernetes secrets support via AWS Secrets Manager
Go
21
star
39

hadoop-data-ingestion

Renders options for ingesting data into Hadoop
21
star
40

operator-101

A step-by-step walkthrough of bootstrapping a Kubernetes operator
19
star
41

mkdocs-template

A template for MkDocs publishing via GitHub Action
19
star
42

mrlin

mrlin is 'MapReduce processing of Linked Data' … because it's magic
Python
17
star
43

gitops101

GitOps 101
16
star
44

m-shop

Marathon/Docker deployment of a Web application incl. analytics using the ELK stack
JavaScript
15
star
45

ld-in-couch

Enables you to store, process and query Linked Data in Apache CouchDB.
Python
15
star
46

s3-echoer

Reads input from stdin and uploads it to an existing S3 bucket
Go
14
star
47

kruiser

A proxy that transparently exposes gRPC Kubernetes services cluster-externally
Go
14
star
48

imgn

From monolith to containerized microservices to serverless
Go
14
star
49

otel-adoption-survey-2022

OpenTelemetry Adoption Survey 2022
14
star
50

arn.services

Utility service for Amazon Resource Names (ARNs)
Go
13
star
51

tride

turning tabular data into entities
Python
13
star
52

apache-drill-frontend

A front-end for Apache Drill
JavaScript
13
star
53

aws-tmux

AWS status for tmux
Shell
13
star
54

apache-drill-sandbox

A collection of experiments and recipes around Apache Drill
12
star
55

fosdem2018-godevroom-networkingdeepdive

FOSDEM 2018 Go devroom, Networking deepdive—From net.Dial to gRPC
Go
12
star
56

http-range-14-burner

A collection of http-range-14 facts to produce an infographic about resources spent over the past 10y
11
star
57

go4systasks

Using the Go programming language for system tasks
Go
11
star
58

aws-container-security-survey-2020

AWS container security survey 2020
11
star
59

awsometag

A tool to tag AWS resources in a unified manner
Go
11
star
60

aws-container-security-survey-2019

Questions and results of the AWS container security survey 2019
11
star
61

boring-is-cool

Advocacy site for boring technology
HTML
10
star
62

mc

A Simple Mesos-DNS Client
Python
10
star
63

temporal-opa

Temporal reasoning with OPA
Open Policy Agent
10
star
64

using-client-go

A versioned collection of snippets showing how to use client-go
Go
10
star
65

Racoon

Rapid-appraisal crawler for original open data nuggets
Python
9
star
66

apache-big-data-cheat-sheet

A cheat sheet for Big Data technologies at and from The Apache Software Foundation
9
star
67

kubecuddler

A simple Go package wrapping kubectl invocations
Go
8
star
68

madr

Linked Open Data Mobile AugmenteD Reality
Python
8
star
69

go4ops

Go for ops
Go
8
star
70

marvin

A demonstrator for a nanoservices-based application on DC/OS
JavaScript
8
star
71

addrable

Addressable tabular data on the Web
JavaScript
7
star
72

dromedar

Apache Drill On Apache Mesos
Python
7
star
73

ref.otel.help

Collection of OpenTelemetry good practices, tutorials, docs
Python
7
star
74

odc2011

Local Planning Explorer Ireland
PHP
7
star
75

school-explorer

Presents information about schools to help parents to decide where to send their kids to
PHP
7
star
76

RDF2x

A collection of converters from RDF to data formats
6
star
77

openshift-cheat-sheet

Cheat sheet for OpenShift
6
star
78

dependentjobs

DependentJobs for Kubernetes
Go
6
star
79

influxdb-dweet.io

Experiment to ingest data from dweet.io into InfluxDB
Python
6
star
80

fallacies-of-distributed-gomputing

The Fallacies Of Distributed Gomputing—talk at GopherCon 2017
Go
6
star
81

container-networking

Container Networking
5
star
82

ld-profiler

Dirt-simple Linked Data access profiler
Python
5
star
83

sparqlbin.com

A generic SPARQL processor and sharing tool.
Python
5
star
84

letsgo

Let's Go! is a hands-on introduction into the Go programming language
Go
5
star
85

clump

A cluster dump tool
Go
5
star
86

bigdatainthecloud.info

The Q&A site for devops, developers and analysts that deal with Big Data processing in cloud computing environments.
5
star
87

shodan

An event-sourcing-based RDF datastore and processor
Python
4
star
88

aws-cli-fu

Collection of my favorite AWS CLI calls
4
star
89

2018-state-of-faas-on-kube

KubeCon Europe 2018—Lightning Talk: The State Of FaaS on Kubernetes
4
star
90

qrcan

Query Resolver & Comprehensive Archive Network
JavaScript
4
star
91

kaput

Kubernetes Attack and Policy Underminer Tool
Go
4
star
92

hdt-online

A simple HDT converter online service
JavaScript
4
star
93

cloudnaive.online

All things infosec concerning *nix, containers, Kubernetes, and serverless computing
4
star
94

funcnstein

a multi-platform tool for managing functions
3
star
95

sdx

Seamless Developer Experience
Go
3
star
96

util-containers

A collection of utility container images
3
star
97

github-api-fetcher

Fetches data from the public GitHub API and ingests it into various sinks
Go
3
star
98

containerz.info

Advocacy website around Linux containers
HTML
3
star
99

noteless

A e2e demo of serverless technologies
Go
3
star
100

rdfxml.info

An advocacy site to inform people about the drawbacks of RDF/XML
3
star