public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: app-doc/sway-wiki/
@ 2023-10-26  1:24 Haelwenn Monnier
  0 siblings, 0 replies; only message in thread
From: Haelwenn Monnier @ 2023-10-26  1:24 UTC (permalink / raw
  To: gentoo-commits

commit:     03e5a657fbb6ba78baf693dea2fc0d73ed17526a
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu Oct 26 01:22:03 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Thu Oct 26 01:22:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=03e5a657

app-doc/sway-wiki: new package, add 9999

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 app-doc/sway-wiki/sway-wiki-9999.ebuild | 34 +++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/app-doc/sway-wiki/sway-wiki-9999.ebuild b/app-doc/sway-wiki/sway-wiki-9999.ebuild
new file mode 100644
index 0000000000..97083b5177
--- /dev/null
+++ b/app-doc/sway-wiki/sway-wiki-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit git-r3
+
+DESCRIPTION="Wiki of gui-wm/sway, rendered to HTML using kramdown-parser-gfm"
+HOMEPAGE="https://github.com/swaywm/sway/wiki"
+EGIT_REPO_URI="https://github.com/swaywm/sway.wiki.git"
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+BDEPEND="dev-ruby/kramdown-parser-gfm"
+
+# Essentially everything but .git
+DOCS="*.html *.md"
+
+src_prepare() {
+	default
+
+	sed -i 's;https://github.com/swaywm/sway/wiki/;./;' *.md || die
+}
+
+src_compile() {
+	for i in *.md; do
+		kramdown -i GFM "$i" > "${i//.md}.html" || die
+	done
+
+	# FIXME: URLs are missing .html and so aren't properly referring to files
+	# Let's avoid creating an index until this is fixed
+	# ln -s Home.html index.html || die
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-26  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26  1:24 [gentoo-commits] repo/proj/guru:dev commit in: app-doc/sway-wiki/ Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox