From nobody Sat May 18 23:55:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1586359326; cv=none; d=zohomail.com; s=zohoarc; b=OoRY7BkPHof4D6Lvbmp7Bqn+RjjPSzp5b34PKMakXW6Rp+qEeqjvL5hyC9H4Zs6eZHtlucUweZZsnofBXz16SU7Wtcwcowzb1YlrkpvdVhskQBoLp/T6N8JTiBj+B5rNiCp7HKxlPkMEO1Vv2gb2bjQCQeBi+kuuLbV6KbUNTxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586359326; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=JJrAASaPnY01WP9rEi9VEFRKEV2djfJwqrtYty/vYjQ=; b=RQKJlU8WWXpBsWG1LZ/GvqWqD5XDnPmNA2McPNVwtuB9HXqkllbOtw3lVhAfkgAya+N+sH7Zncdau3qmfPAs8lTeBDHeZH0cOVhUnjscA3nzjQyfyZ041Ml+d+23dzsvj8arN8m5l1ZD7OvwVsL/TkiXVz7xaBVEizQpix+0dlk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1586359326912606.8600418374618; Wed, 8 Apr 2020 08:22:06 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-115-yVc0OcEIPWqy4hfiYWRIbQ-1; Wed, 08 Apr 2020 11:22:01 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B66F918C8C2C; Wed, 8 Apr 2020 15:21:53 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3649660BFB; Wed, 8 Apr 2020 15:21:53 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 53EA538A1; Wed, 8 Apr 2020 15:21:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 038FLoJh017380 for ; Wed, 8 Apr 2020 11:21:50 -0400 Received: by smtp.corp.redhat.com (Postfix) id 22B559E0DF; Wed, 8 Apr 2020 15:21:50 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3B9E9E0E7; Wed, 8 Apr 2020 15:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586359325; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=JJrAASaPnY01WP9rEi9VEFRKEV2djfJwqrtYty/vYjQ=; b=Arh36Xbvngd6I9fFSbjvD/PwT2cNr1tvs6eaht6Ni5h0JiPYbBQiOIZyjhHLXHNEOukYon /7cvrOVKYGJ6f6ThdcjbRofSy6jPb6ru1Pj/bV8kIaXumcCGC/i/eHu0wpYbeEEIXa5zCN fCZTAjKtnS5lfsr7qmF5eD24gfGODTQ= X-MC-Unique: yVc0OcEIPWqy4hfiYWRIbQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH] docs: add 'edit this page' link to footer of every page Date: Wed, 8 Apr 2020 16:21:41 +0100 Message-Id: <20200408152141.1182150-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" To encourage contributors to make changes to the main website, add a footer link to every page which links to the corresponding source file in git. With gitlab, they are able to edit content directly in the web browser and then submit a merge request. This gives a way to contribute content that is arguably easier than our wiki which requires manual account creation, while this will also benefit from maintainer review. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: J=C3=A1n Tomko --- docs/Makefile.am | 5 +++++ docs/page.xsl | 7 +++++++ docs/site.xsl | 1 + docs/subsite.xsl | 1 + 4 files changed, 14 insertions(+) diff --git a/docs/Makefile.am b/docs/Makefile.am index 61862c4ab7..483414105d 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -429,6 +429,10 @@ manpages/%.html.in: manpages/%.rst %.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \ $(acl_generated) $(AM_V_GEN)name=3D`echo $@ | sed -e 's/.tmp//'`; \ + genhtmlin=3D`echo $@ | sed -e 's/.tmp/.in/'`; \ + rst=3D`echo $@ | sed -e 's/.html.tmp/.rst/'`; \ + src=3D"$$genhtmlin"; \ + test -f "$$genhtmlin" && src=3D"$$rst"; \ dir=3D`dirname $@` ; \ if test "$$dir" =3D "."; \ then \ @@ -438,6 +442,7 @@ manpages/%.html.in: manpages/%.rst style=3Dsubsite.xsl; \ fi; \ $(XSLTPROC) --stringparam pagename $$name \ + --stringparam pagesrc $$src \ --stringparam builddir '$(abs_top_builddir)' \ --stringparam timestamp $(timestamp) --nonet \ $(top_srcdir)/docs/$$style $< > $@ \ diff --git a/docs/page.xsl b/docs/page.xsl index ddae5ab508..6e3ed6c688 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -77,6 +77,7 @@ + <!DOCTYPE html> @@ -150,6 +151,12 @@
+
+

Contribute

+ +

Contact

    diff --git a/docs/site.xsl b/docs/site.xsl index c9d41f2c93..73ddd8ca6b 100644 --- a/docs/site.xsl +++ b/docs/site.xsl @@ -27,6 +27,7 @@ + diff --git a/docs/subsite.xsl b/docs/subsite.xsl index f56ac0491c..bfd34eebd2 100644 --- a/docs/subsite.xsl +++ b/docs/subsite.xsl @@ -17,6 +17,7 @@ + --=20 2.24.1