Skip to content

Commit 68123db

Browse files
authored
Initial commit
0 parents  commit 68123db

File tree

6 files changed

+69
-0
lines changed

6 files changed

+69
-0
lines changed

.github/workflows/dispatch.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Markdown content update
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
trigger:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Trigger Workflow in Another Repository
12+
run: |
13+
curl -L \
14+
-X POST \
15+
-H "Accept: application/vnd.github+json" \
16+
-H "Authorization: Bearer ${{ secrets.REPO_PAT }}" \
17+
-H "X-GitHub-Api-Version: 2022-11-28" \
18+
https://api.github.com/repos/${{ vars.REPO }}/dispatches \
19+
-d "{\"event_type\": \"TRIGGER_BUILD\"}"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
.obsidian
3+
.stfolder

archetypal-heading.jpg

29.1 KB
Loading

content/Getting started.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Getting Started
2+
Your first piece of content.
3+
4+
## What to do next
5+
* Put local Images into `attachments`
6+
* Add / Sync Vault content here
7+
8+
> **When new content is pushed to this repo, the host will rebuild.**
9+
10+
## Have you connected this repo to your host instance?
11+
* follow the maintanence guide (where is it - idk yet - ask in Discord)

content/attachments/.readme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory is for image alignment against this particluar vault.

readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Example Static Content Repo For Wiki Instances
2+
![Arcetypal Repo](archetypal-heading.jpg)
3+
1. Sync Markdown content into `content` directory to be consumed by private Wiki Instance.
4+
2. Markdown can be Frontmatter decorated.
5+
3. Ensure Repo emits `dispatch.yml` to trigger workflow in order to rebuild site once content updates.
6+
* create repo secret: `REPO_PAT` : `paste in org PAT - github_pat_***`
7+
* requires Organisaztion PAT
8+
* Read access to metadata
9+
* Read & Write to Contents
10+
* create repo variable: `REPO`: `owner/wiki-content--example`
11+
* create repo variable: `EVENT` and use value: `TRIGGER_BUILD`
12+
4. Connect workflows with other REPO by having a consuming end:
13+
*workflow*
14+
```
15+
on:
16+
repository_dispatch:
17+
types:
18+
- TRIGGER_BUILD
19+
```
20+
### Frontmatter
21+
Current available fields:
22+
```
23+
---
24+
description: SEO powers for wiki specific page
25+
published: true # also defaults to true (sets visibility)
26+
pin: 1111 # will lock page privately behind a hash
27+
tags: ['blog']
28+
---
29+
```
30+
31+
---
32+
## Welcome to Community content
33+
34+
This would be a community facing **public** repo.
35+
Rules and regs in order to submit PRs

0 commit comments

Comments
 (0)