You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2021/07/05 12:59:53 UTC

[mesos] branch master updated: Added asf.yaml configuration for the new website handling.

This is an automated email from the ASF dual-hosted git repository.

qianzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new ad02e47  Added asf.yaml configuration for the new website handling.
ad02e47 is described below

commit ad02e47ae55b70904c84e46db5688b9359785c2e
Author: Andreas Peters <ap...@aventer.biz>
AuthorDate: Mon Jul 5 20:53:53 2021 +0800

    Added asf.yaml configuration for the new website handling.
    
    This patch will persist the .asf.yaml configuration for the new website
    publishing mechanism (https://github.com/apache/mesos-site/pull/2).
    
    This closes #399
---
 site/config.rb           | 6 ++++++
 site/source/asf.yaml.erb | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/site/config.rb b/site/config.rb
index 04bc7aa..01ea84a 100644
--- a/site/config.rb
+++ b/site/config.rb
@@ -59,3 +59,9 @@ page "/api/*", :directory_index => false
 activate :directory_indexes
 activate :syntax
 activate :livereload
+
+page "asf.yaml", :layout => false
+
+after_build do
+  File.rename 'publish/asf.yaml', 'publish/.asf.yaml'
+end
diff --git a/site/source/asf.yaml.erb b/site/source/asf.yaml.erb
new file mode 100644
index 0000000..0735550
--- /dev/null
+++ b/site/source/asf.yaml.erb
@@ -0,0 +1,2 @@
+publish:
+  whoami: asf-site