Skip to content

Commit 80f49e3

Browse files
committed
Setup basic structure
1 parent 33fc380 commit 80f49e3

14 files changed

+67
-5
lines changed

docs/hooks.md docs/_advanced_topics/hooks.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
---
2-
title: Hooks
2+
title: Customizatio via Hooks
33
layout: default
4+
nav_order: 1
45
---
56

7+
## Table of contents
8+
{: .no_toc .text-delta }
9+
10+
1. TOC
11+
{:toc}
12+
613
# Hooks
14+
{: .no_toc }
715

816
When integrating tusd into an application, it is important to establish a communication channel between tusd and your main application. For this purpose, tusd provides a hook system which triggers user-defined actions when certain events happen, for example when an upload is created or finished. This simple-but-powerful system enables many uses, such as logging, validation, authorization, and post-processing of the uploaded files.
917

docs/locks.md docs/_advanced_topics/locks.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: Locks
2+
title: Upload Locks
33
layout: default
4+
nav_order: 2
45
---
56

67
# Upload Locks

docs/monitoring.md docs/_advanced_topics/monitoring.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: Monitoring
2+
title: Monitoring tusd
33
layout: default
4+
nav_order: 3
45
---
56

67
# Monitoring tusd

docs/usage-package.md docs/_advanced_topics/usage-package.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: Usage as a package
2+
title: Embedding in Go programs
33
layout: default
4+
nav_order: 4
45
---
56

67
# Using the tusd package programmatically

docs/_config.yml

+22
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,25 @@ gh_edit_repository: "https://github.com/tus/tusd"
2626
gh_edit_branch: "main"
2727
gh_edit_source: docs
2828
gh_edit_view_mode: "edit"
29+
30+
# Define Jekyll collections
31+
collections:
32+
advanced_topics:
33+
permalink: "/:collection/:path/"
34+
output: true
35+
storage_backends:
36+
permalink: "/:collection/:path/"
37+
output: true
38+
getting_started:
39+
permalink: "/:collection/:path/"
40+
output: true
41+
42+
just_the_docs:
43+
# Define which collections are used in just-the-docs
44+
collections:
45+
getting_started:
46+
name: Getting Started
47+
storage_backends:
48+
name: Storage Backends
49+
advanced_topics:
50+
name: Advanced Topics

docs/installation.md docs/_getting_started/installation.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Installation
33
layout: default
4+
nav_order: 1
45
---
56

67
# Installation

docs/usage-binary.md docs/_getting_started/usage-binary.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: Usage as a program
2+
title: Usage
33
layout: default
4+
nav_order: 2
45
---
56

67
# Running tusd

docs/_storage_backends/aws-s3.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: AWS S3
3+
layout: default
4+
nav_order: 3
5+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Azure Cloud Storage
3+
layout: default
4+
nav_order: 4
5+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Google Cloud Storage
3+
layout: default
4+
nav_order: 5
5+
---

docs/_storage_backends/local-disk.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Local Disk
3+
layout: default
4+
nav_order: 2
5+
---

docs/_storage_backends/overview.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Overview
3+
layout: default
4+
nav_order: 1
5+
---

docs/faq.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: FAQ
33
layout: default
4+
nav_order: 2
45
---
56

67
# FAQ

docs/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Home
33
layout: home
4+
nav_order: 1
45
---
56

67
This is a *bare-minimum* template to create a Jekyll site that uses the [Just the Docs] theme. You can easily set the created site to be published on [GitHub Pages] – the [README] file explains how to do that, along with other details.

0 commit comments

Comments
 (0)