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]

permissions:
actions: read
pages: write
id-token: write

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

jobs:
generate-docs:
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.output.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x

- name: Build
run: dotnet build -c Release

- name: DocFX build
working-directory: docs
run: dnx docfx --yes
continue-on-error: false

- name: Upload assets
uses: actions/upload-pages-artifact@v4
with:
path: docs/_site

- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
8 changes: 8 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/**/obj/
_site
/api/*.yml
/api/.manifest
46 changes: 46 additions & 0 deletions docs/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json",
"metadata": [
{
"src": [
{
"src": "../UnityHelper",
"files": [
"**/*.csproj"
]
}
],
"dest": "api"
}
],
"build": {
"content": [
{
"files": [
"**/*.{md,yml}"
],
"exclude": [
"_site/**"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"output": "_site",
"template": [
"default",
"modern"
],
"globalMetadata": {
"_appName": "",
"_appTitle": "",
"_enableSearch": true,
"pdf": true
}
}
}
21 changes: 21 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
_layout: landing
---

# About Silksong.UnityHelper

Silksong.UnityHelper is a library to help with common Unity operations.

## Usage

Add the following line to your .csproj:

```
<PackageReference Include="Silksong.UnityHelper" Version="1.1.0" />
```

You will also need to add a dependency to your thunderstore.toml:

```
silksong_modding-UnityHelper = "1.1.0"
```
2 changes: 2 additions & 0 deletions docs/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: API
href: api/