Skip to content

Commit 041ec13

Browse files
authored
add edit link to page (#13)
1 parent d47f88b commit 041ec13

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

antora-playbook.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ site:
77
google_analytics: 'G-TFFQQ60TMD'
88
google_site_verification: 'gB-OZuT18mmNEL-k5UNMHmNWQX5Wv46GnWWs1XZxZeE'
99
content:
10-
edit_url: false
10+
edit_url: ~
1111
sources:
1212
- url: ./
1313
start_path: ROOT
1414
- url: ./
1515
start_path: opendj
16+
edit_url: https://github.com/OpenIdentityPlatform/OpenDJ/edit/master/opendj-doc-generated-ref/src/main/asciidoc
1617
- url: ./
1718
start_path: openig
19+
edit_url: https://github.com/OpenIdentityPlatform/OpenIG/edit/master/openig-doc/src/main/asciidoc
1820
- url: ./
1921
start_path: openam
22+
edit_url: https://github.com/OpenIdentityPlatform/OpenAM/edit/master/openam-documentation/openam-doc-source/src/main/asciidoc
2023
- url: ./
2124
start_path: openidm
25+
edit_url: https://github.com/OpenIdentityPlatform/OpenIDM/edit/master/openidm-doc/src/main/asciidoc
2226
ui:
2327
bundle:
2428
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{#if (and (not (eq page.module 'ROOT')) page.editUrl) }}
2+
<div class="edit-this-page"><a href="{{page.editUrl}}/{{page.module}}/{{page.relativeSrcPath}}">Edit this Page</a></div>
3+
{{/if}}

0 commit comments

Comments
 (0)