Skip to content

Commit d421a9d

Browse files
committed
Documentation now added to Build folder
1 parent 0576e4a commit d421a9d

File tree

4 files changed

+53
-1
lines changed

4 files changed

+53
-1
lines changed

Documentation/hugo-local.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
baseURL = "/"
2+
title = "Overload Documentation"
3+
theme = "hugo-geekdoc"
4+
relativeURLs = true
5+
uglyURLs = true
6+
7+
pluralizeListTitles = false
8+
9+
# Geekdoc required configuration
10+
pygmentsUseClasses = true
11+
pygmentsCodeFences = true
12+
disablePathToLower = true
13+
14+
# Required if you want to render robots.txt template
15+
enableRobotsTXT = true
16+
17+
[caches]
18+
[caches.images]
19+
dir = ':cacheDir/images'
20+
21+
# Needed for mermaid shortcodes
22+
[markup]
23+
[markup.goldmark.renderer]
24+
# Needed for mermaid shortcode
25+
unsafe = true
26+
[markup.tableOfContents]
27+
startLevel = 1
28+
endLevel = 9
29+
30+
[taxonomies]
31+
tag = "tags"
32+
33+
[params]
34+
# (Optional, default false) Collapse all menu entries, can not be overwritten
35+
# per page if enabled. Can be enabled per page via 'geekdocCollapseSection'.
36+
geekdocCollapseAllSections = true

Documentation/premake5.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
project "Documentation"
2+
kind "Makefile"
3+
4+
files {
5+
"premake5.lua",
6+
"hugo.toml",
7+
"hugo-local.toml",
8+
"content/**.md"
9+
}
10+
11+
buildcommands {
12+
"hugo --destination=\"" .. outputdir .. "%{cfg.buildcfg}/%{prj.name}" .. "\" --config hugo-local.toml",
13+
}

Sources/Overload/OvEditor/premake5.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ project "OvEditor"
6262
"OvTools",
6363
"OvUI",
6464
"OvWindowing"
65-
}
65+
}
6666

6767
postbuildcommands {
6868
"for /f \"delims=|\" %%i in ('dir /B /S \"%{dependdir}\\*.dll\"') do xcopy /Q /Y \"%%i\" \"%{outputdir}%{cfg.buildcfg}\\%{prj.name}\"",
6969

70+
"xcopy \"%{outputdir}%{cfg.buildcfg}\\Documentation\" \"%{builddir}%{cfg.buildcfg}\\Documentation\" /y /i /r /e /q",
71+
7072
"rmdir /s /q \"%{builddir}%{cfg.buildcfg}\\Data\"",
7173

7274
"xcopy \"%{resdir}Engine\\*\" \"%{builddir}%{cfg.buildcfg}\\Data\\Engine\" /y /i /r /e /q",

Sources/Overload/premake5.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ group "Overload Apps"
6969
group ""
7070

7171
include "../../Resources"
72+
include "../../Documentation"

0 commit comments

Comments
 (0)