From c51ad67f0d7e85142ba24031b37613cb50a5dabf Mon Sep 17 00:00:00 2001 From: "Alan v. Drake" Date: Fri, 19 Jul 2024 14:31:30 +0200 Subject: [PATCH] Pull md files from source repo instead of wiki --- .gitmodules | 2 +- Makefile.am | 1 + html/css/main.css | 7 +++++++ html/template.html5 | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 81d55c66a..d37b330e5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "source"] path = source - url = https://github.com/adventuregamestudio/ags-manual.wiki.git + url = https://github.com/adventuregamestudio/ags-manual-source.git diff --git a/Makefile.am b/Makefile.am index ba9c543d6..35d381160 100644 --- a/Makefile.am +++ b/Makefile.am @@ -94,6 +94,7 @@ metadata.lua: $(METADATA_FILES) --lua-filter "$(srcdir)/lua/insert_anchors.lua" \ --template "$(srcdir)/html/template.html5" \ --variable footer="$(FOOTER)" \ + --variable editlink="https://github.com/adventuregamestudio/ags-manual-source/blob/master/${*F}.md" \ --table-of-contents \ --section-divs \ --css "css/normalize.css" \ diff --git a/html/css/main.css b/html/css/main.css index d4d5b022d..01ab5cb0d 100644 --- a/html/css/main.css +++ b/html/css/main.css @@ -508,6 +508,13 @@ header li { margin-bottom: 4px; } +/* edit this page link */ +.edit-link { + display: inline-flex; + margin-top: 2.5em; + gap:10px; +} + /* code highlighting */ main {min-width:0;} /* trick to avoid code blocks expanding main area */ pre > code.sourceCode { white-space: pre; position: relative; } diff --git a/html/template.html5 b/html/template.html5 index d882b8552..7e4c1e91d 100644 --- a/html/template.html5 +++ b/html/template.html5 @@ -114,6 +114,9 @@ $endif$
$body$ +$if(toc)$ + Edit this page +$endif$
$for(include-after)$