Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: docs

on:
push:
branches: [main]
paths: [docs/**, mkdocs.yml, .github/workflows/docs.yml]
pull_request:
paths: [docs/**, mkdocs.yml, .github/workflows/docs.yml]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-python@v7.0.0
with:
python-version: "3.13"
cache: pip
cache-dependency-path: docs/requirements.txt
- run: pip install -r docs/requirements.txt
# --strict fails the build on a broken link or a page missing from nav.
- run: mkdocs build --strict
- if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v5.0.0
with:
path: site

deploy:
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5.0.1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ bin/
# the binary a plain `go build` leaves at the root: untracked, it marks every later build +dirty
/berth
/berth.exe

# mkdocs build output
/site/
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mkdocs==1.6.1
mkdocs-material==9.7.7
48 changes: 48 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
site_name: Berth
site_description: Decides who gets your GPU. Engines, games and GPU apps lease the card in turn.
site_url: https://t-crypt.github.io/berth/
repo_url: https://github.com/T-Crypt/berth
repo_name: T-Crypt/berth
edit_uri: edit/main/docs/
copyright: Copyright 2026 Trevin Tindall (T-Crypt). Apache-2.0.

theme:
name: material
# System fonts: the default loads Google Fonts, which hands every visitor's address to Google.
font: false
palette:
scheme: slate
primary: black
accent: light blue
features:
- navigation.instant
- navigation.top
- navigation.footer
- search.highlight
- content.code.copy
- content.action.edit

nav:
- Overview: README.md
- Install: install.md
- Engines: engines.md
- Leasing, games and holds: leasing.md
- Models: models.md
- Gateway: gateway.md
- The harbor and telemetry: harbor.md
- Interfaces: interfaces.md
- Benchmarks: benchmarks.md
- Roadmap: roadmap.md
- FAQ: faq.md

markdown_extensions:
- tables
- attr_list
- md_in_html
- toc:
permalink: true
- pymdownx.superfences

validation:
links:
anchors: warn
Loading