[PATCH] docs: build: Fix links to 'edit this page' for kbase/manpages/internals

Peter Krempa posted 1 patch 3 years, 7 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/8729d48978407323c6aea7260a5ac37af9876be6.1597659513.git.pkrempa@redhat.com
docs/internals/meson.build | 2 +-
docs/kbase/meson.build     | 2 +-
docs/manpages/meson.build  | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
[PATCH] docs: build: Fix links to 'edit this page' for kbase/manpages/internals
Posted by Peter Krempa 3 years, 7 months ago
Commit 862cf2ace4f04dadc175caacc74448e96c625ccb modified the generator
to base edit links in the root of the repository but forgot to add the
'docs/' prefix to the code generating kbase articles, manpages and the
internals documentation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 docs/internals/meson.build | 2 +-
 docs/kbase/meson.build     | 2 +-
 docs/manpages/meson.build  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/internals/meson.build b/docs/internals/meson.build
index 169cc5d5f0..5d008dec5b 100644
--- a/docs/internals/meson.build
+++ b/docs/internals/meson.build
@@ -24,7 +24,7 @@ foreach name : internals_in_files
       subsite_xsl,
       '@INPUT@',
       '@OUTPUT@',
-      'internals' / html_in_file,
+      'docs/internals' / html_in_file,
     ],
     depends: [ aclperms_gen ],
     depend_files: [ page_xsl ],
diff --git a/docs/kbase/meson.build b/docs/kbase/meson.build
index d7f254e163..e836a8a022 100644
--- a/docs/kbase/meson.build
+++ b/docs/kbase/meson.build
@@ -37,7 +37,7 @@ foreach name : docs_kbase_files
       subsite_xsl,
       '@INPUT@',
       '@OUTPUT@',
-      'kbase' / rst_file,
+      'docs/kbase' / rst_file,
     ],
     depends: [ aclperms_gen ],
     depend_files: [ page_xsl ],
diff --git a/docs/manpages/meson.build b/docs/manpages/meson.build
index 8295e9e5ea..3888bb8efe 100644
--- a/docs/manpages/meson.build
+++ b/docs/manpages/meson.build
@@ -118,7 +118,7 @@ foreach data : docs_man_files
       subsite_xsl,
       '@INPUT@',
       '@OUTPUT@',
-      'manpages' / rst_in_file,
+      'docs/manpages' / rst_in_file,
     ],
     depends: [ aclperms_gen ],
     depend_files: [ page_xsl ],
-- 
2.25.4

Re: [PATCH] docs: build: Fix links to 'edit this page' for kbase/manpages/internals
Posted by Pavel Hrdina 3 years, 7 months ago
On Mon, Aug 17, 2020 at 12:18:33PM +0200, Peter Krempa wrote:
> Commit 862cf2ace4f04dadc175caacc74448e96c625ccb modified the generator
> to base edit links in the root of the repository but forgot to add the
> 'docs/' prefix to the code generating kbase articles, manpages and the
> internals documentation.
> 
> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
> ---
>  docs/internals/meson.build | 2 +-
>  docs/kbase/meson.build     | 2 +-
>  docs/manpages/meson.build  | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>