JAMES-3226 #comment Using homepage in james-site, added edit-url
Signed-off-by: Eugen Stan <ieugen@apache.org>
diff --git a/doc-sites/antora-playbook.yml b/doc-sites/antora-playbook.yml
index d15e6a7..8d982d5 100644
--- a/doc-sites/antora-playbook.yml
+++ b/doc-sites/antora-playbook.yml
@@ -1,33 +1,41 @@
site:
title: Apache James
url: https://james.apache.org/
- start_page: main::index.adoc
+ start_page: james-site::homepage.adoc
content:
sources:
- url: https://gitbox.apache.org/repos/asf/james-hupa.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: https://gitbox.apache.org/repos/asf/james-jdkim.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: https://gitbox.apache.org/repos/asf/james-jsieve.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: https://gitbox.apache.org/repos/asf/james-jspf.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: https://gitbox.apache.org/repos/asf/james-mime4j.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: https://gitbox.apache.org/repos/asf/james-project.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: https://gitbox.apache.org/repos/asf/james-postage.git
branches: master
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
- url: ./../
branches: HEAD
start_path: docs
+ edit_url: '{web_url}/blob/{refname}/{path}'
ui:
bundle:
url: ./../antora-ui/build/ui-bundle.zip
diff --git a/doc-sites/build.gradle b/doc-sites/build.gradle
index 84d8a6f..a1b5581 100644
--- a/doc-sites/build.gradle
+++ b/doc-sites/build.gradle
@@ -14,6 +14,7 @@
}
def siteOutputDir = "${buildDir}/site";
+def localAntoraContent = project.hasProperty('localAntoraContent');
task generateDocs(type: NpxTask) {
dependsOn npmInstall
@@ -24,7 +25,12 @@
outputs.dir(siteOutputDir)
command = 'antora'
- args = ['antora-playbook.yml', '--stacktrace']
+
+ if (localAntoraContent) {
+ args = ['antora-playbook-local.yml', '--stacktrace']
+ } else {
+ args = ['antora-playbook.yml', '--stacktrace']
+ }
}
task copySomeFiles(type: Copy) {
diff --git a/docs/modules/ROOT/pages/homepage.adoc b/docs/modules/ROOT/pages/homepage.adoc
new file mode 100644
index 0000000..b8c5a27
--- /dev/null
+++ b/docs/modules/ROOT/pages/homepage.adoc
@@ -0,0 +1,4 @@
+= Welcome to Apache James Project
+
+
+This is a work in progress.