Skip to content
Open
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
34 changes: 34 additions & 0 deletions .github/workflows/notify-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Notify thast-docs

# Trigger a rebuild of the documentation hub whenever any file that
# feeds the sptime sync manifest changes on main. Keep this filter
# in sync with the manifest in FiLORUX/thast-docs scripts/sync-docs.mjs.

on:
push:
branches: [main]
paths:
- 'README.md'
- 'LICENSE'

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Dispatch docs-update event
env:
GH_TOKEN: ${{ secrets.DOCS_DISPATCH_TOKEN }}
run: |
curl -fsSL -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/FiLORUX/thast-docs/dispatches" \
-d '{
"event_type": "docs-update",
"client_payload": {
"source_repo": "${{ github.repository }}",
"source_sha": "${{ github.sha }}",
"source_ref": "${{ github.ref }}"
}
}'
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,29 @@ SPTime is a modern, enterprise-grade time synchronisation platform that provides

## Architecture

```
┌─────────────────────────────────────────────────────────────────┐
SPTime Server
├─────────────────────────────────────────────────────────────────┤
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│ │ NTP │ │ NTS │ │ PTP │ │ GPSDO │ │
│ │ Server │ │ Server │ │ GM │ │ (SerialPPS/ │ │
│ │ :123 │ │ :4460 │ │ :319/320│ │ Network/Dummy) │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────────┬─────────┘ │
│ │ │ │ │ │
└─────────────┴──────┬──────┴──────────────────┘ │
│ │
┌───────┴───────┐ │
│ │ Clock Manager │ │
│ (Discipline) │ │
└───────┬───────┘ │
│ │
│ ┌──────────────────┬──────┴──────┬────────────────────────────┐ │
│ │ │ │ │ │
│ │ Web API │ Metrics │ Config │ │
│ │ :8080 │ Prometheus │ YAML │ │
│ └──────────────────┴─────────────┴────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
```mermaid
flowchart TB
subgraph SPTime["SPTime Server"]
NTP["NTP Server<br/>:123"]
NTS["NTS Server<br/>:4460"]
PTP["PTP GM<br/>:319/320"]
GPSDO["GPSDO<br/>(SerialPPS / Network / Dummy)"]

Clock["Clock Manager<br/>(Discipline)"]

Web["Web API<br/>:8080"]
Metrics["Metrics<br/>(Prometheus)"]
Config["Config<br/>(YAML)"]

NTP --> Clock
NTS --> Clock
PTP --> Clock
GPSDO --> Clock

Clock --> Web
Clock --> Metrics
Clock --> Config
end
```

## Quick Start
Expand Down