From 2c34414b14fd2fb8e028520ba2d49e76ccf6cf3b 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 +++ source | 2 +- 5 files changed, 13 insertions(+), 2 deletions(-) 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)$ diff --git a/source b/source index d3cbcc984..4587cce98 160000 --- a/source +++ b/source @@ -1 +1 @@ -Subproject commit d3cbcc9848f99da73b9820d3b5dff541b45a6ec0 +Subproject commit 4587cce9808ef18f97b089ac605779a727b7f091