You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2023/03/28 02:02:56 UTC
[james-site] 11/30: JAMES-3226 #comment Using homepage in james-site, added edit-url
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/james-site.git
commit cfe1da90052761ac73582d329286ca2febf28c68
Author: Eugen Stan <ie...@apache.org>
AuthorDate: Fri Jul 31 13:58:04 2020 +0300
JAMES-3226 #comment Using homepage in james-site, added edit-url
Signed-off-by: Eugen Stan <ie...@apache.org>
---
doc-sites/antora-playbook.yml | 10 +++++++++-
doc-sites/build.gradle | 8 +++++++-
docs/modules/ROOT/pages/homepage.adoc | 4 ++++
3 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/doc-sites/antora-playbook.yml b/doc-sites/antora-playbook.yml
index d15e6a7f5..8d982d577 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 84d8a6fca..a1b5581fd 100644
--- a/doc-sites/build.gradle
+++ b/doc-sites/build.gradle
@@ -14,6 +14,7 @@ node {
}
def siteOutputDir = "${buildDir}/site";
+def localAntoraContent = project.hasProperty('localAntoraContent');
task generateDocs(type: NpxTask) {
dependsOn npmInstall
@@ -24,7 +25,12 @@ task generateDocs(type: NpxTask) {
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 000000000..b8c5a272a
--- /dev/null
+++ b/docs/modules/ROOT/pages/homepage.adoc
@@ -0,0 +1,4 @@
+= Welcome to Apache James Project
+
+
+This is a work in progress.
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org