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
45 changes: 45 additions & 0 deletions .github/workflows/build-wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'Build Wiki'

on:
repository_dispatch:
types: [build-wiki]
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: master
fetch-depth: 0
persist-credentials: false
- name: Checkout wiki repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: NLog/NLog.wiki
path: _wiki/wiki-src
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.15'
- run: pip install -r _wiki/requirements.txt
- run: mkdocs build --config-file _wiki/mkdocs.yml
- name: Create or update pull request
uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8.1.3
with:
token: ${{ github.token }}
add-paths: wiki/
branch: build-wiki
commit-message: Update Wiki
author: 'NLog.github.io Action <NLog.github.io-action@github.com>'
committer: 'NLog.github.io Action <NLog.github.io-action@github.com>'
title: Update Wiki
body: 'Automated update of the generated wiki site.'
16 changes: 16 additions & 0 deletions _wiki/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
site_name: NLog Wiki
site_url: https://nlog-project.org/wiki
repo_url: https://github.com/NLog/NLog/wiki
docs_dir: wiki-src
site_dir: ../wiki
strict: false
plugins:
- search
- ezlinks
- github-wiki-edit-url
- redirects:
redirect_maps:
index.md: Home.md
theme:
name: readthedocs
logo: https://nlog-project.org/images/NLog-logo-only_small.png
4 changes: 4 additions & 0 deletions _wiki/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdocs
mkdocs-ezlinks-plugin
mkdocs-github-wiki-edit-url
mkdocs-redirects
1 change: 1 addition & 0 deletions _wiki/wiki-src
Submodule wiki-src added at 4a5cd5
Loading