Skip to content

Commit 554fff3

Browse files
committed
Maintenance update
Added d2 dagger module and created HLD for hugo docs. Added section for HLD Compressed the intro.mp4 video header for faster loading
1 parent 6fea479 commit 554fff3

File tree

7 files changed

+930
-1
lines changed

7 files changed

+930
-1
lines changed

dagger.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"source": "github.com/sagikazarmark/daggerverse/arc@b45dbd7448bb967aca4a538af9ce7f042abf0316",
99
"pin": "b45dbd7448bb967aca4a538af9ce7f042abf0316"
1010
},
11+
{
12+
"name": "d2",
13+
"source": "github.com/pjmagee/daggerverse/d2",
14+
"pin": "686b0f41e55f3e32b2e43546f1adac33ac271eb1"
15+
},
1116
{
1217
"name": "gh",
1318
"source": "github.com/sagikazarmark/daggerverse/gh@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd",

dagger/HLD.d2

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
dota2helper: "DOTA 2 Helper" {
2+
httpListener: "HTTP Listener"
3+
timers: "Timers" {
4+
explanation: |md
5+
Users configured timers
6+
|
7+
}
8+
audio: "Audio" {
9+
mp3
10+
wav
11+
}
12+
overlay: "Overlay UI"
13+
}
14+
15+
dota2: "DOTA 2" {
16+
game: "Game Session"
17+
gsi: "Game State Integration" {
18+
explanation: |md
19+
- gamestate_integration_d2helper.cfg
20+
- other_integration.cfg
21+
|
22+
}
23+
}
24+
25+
dota2.game -> dota2.gsi: "Load dota2Helper config file"
26+
dota2 -> dota2Helper.httpListener: "Send 1s interval updates to DOTA 2 Helper"
27+
dota2helper.httpListener -> dota2helper.timers: "Game updates used to calculate timers"
28+
dota2helper.overlay -> dota2helper.timers: "Render timer updates in overlay"
29+
dota2helper.timers -> dota2helper.audio: "Queue audio on timer trigger"
30+

dagger/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ func New() *Dota2Helper {
6565
}
6666
}
6767

68+
func (m *Dota2Helper) HldToSvg() *dagger.File {
69+
return dag.D2(dagger.D2Opts{
70+
Format: "svg",
71+
File: dag.CurrentModule().Source().File("HLD.d2"),
72+
}).Render().File("HLD.d2.svg")
73+
}
74+
6875
func (m *Dota2Helper) GetSuffix(rid Rid) string {
6976
for _, setting := range m.PublishSettings {
7077
for _, output := range setting.Outputs {

docs/assets/cover/intro.mp4

-6.71 MB
Binary file not shown.

docs/content/en/homepage/hld.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "High Level Design"
3+
weight: 10
4+
header_menu: false
5+
---
6+
7+
---
8+
9+
From a technical standpoint, the DOTA 2 Helper app is a simple app that utilises a small amount of web technology and a bit of GSI to provide a few key features.
10+
11+
The underlying technology is .NET with Avalonia UI and a few other open source libraries.
12+
13+
The diagram below shows the high level design of the app.
14+
15+
![High Level Design](HLD.d2.svg)
16+
17+
Diagram created using [D2](https://d2diagrams.net/)

docs/layouts/shortcodes/carousel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<section id="carousel">
22
<div class="carousel">
33
<div class="carousel-track">
4-
{{ range resources.Match "images/*" }}
4+
{{ range resources.Match "images/*.png" }}
55
<div class="carousel-slide">
66
<img src="{{ .RelPermalink }}" alt="Screenshot">
77
</div>

docs/static/HLD.d2.svg

Lines changed: 870 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)