This is an automated email from the ASF dual-hosted git repository. ieugen pushed a commit to branch staging in repository https://gitbox.apache.org/repos/asf/james-site.git
The following commit(s) were added to refs/heads/staging by this push: new cfe1da9 JAMES-3226 #comment Using homepage in james-site, added edit-url cfe1da9 is described below commit cfe1da90052761ac73582d329286ca2febf28c68 Author: Eugen Stan <ieu...@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 <ieu...@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 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 @@ 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 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.