Skip to content

Commit ad98f79

Browse files
committed
Initial commit
0 parents  commit ad98f79

9 files changed

Lines changed: 750 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gitsubmodule
4+
directory: "/"
5+
schedule:
6+
interval: daily

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy Hugo site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Install Hugo
22+
run: |
23+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_extended_0.135.0_linux-amd64.deb
24+
sudo dpkg -i ${{ runner.temp }}/hugo.deb
25+
- uses: actions/checkout@v4
26+
with:
27+
submodules: recursive
28+
fetch-depth: 0
29+
- uses: actions/configure-pages@v5
30+
id: pages
31+
- name: Build
32+
working-directory: "./"
33+
env:
34+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
35+
HUGO_ENVIRONMENT: production
36+
run: |
37+
hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}"
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
name: github-pages
41+
path: ./public/
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- uses: actions/deploy-pages@v4
51+
id: deployment

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/public/
2+
/resources/
3+
/.hugo_build.lock

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "themes"]
2+
path = themes
3+
url = https://github.com/minecraft-access/hugo-themes
4+
branch = dev

LICENSE.md

Lines changed: 660 additions & 0 deletions
Large diffs are not rendered by default.

content/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: "Home"
3+
---

hugo.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
languageCode: en
2+
title: "Minecraft Access Server Docs"
3+
disableKinds:
4+
- taxonomy
5+
- term
6+
- rss
7+
theme:
8+
- docs
9+
10+
security:
11+
funcs:
12+
getenv:
13+
- ^GITHUB_REPOSITORY$
14+
- ^GITHUB_REF_NAME$
15+
- ^GITHUB_SHA$

shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
pkgs.mkShell {
4+
nativeBuildInputs = with pkgs.buildPackages; [
5+
hugo
6+
];
7+
}

themes

Submodule themes added at ec104b8

0 commit comments

Comments
 (0)