This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-site.git
The following commit(s) were added to refs/heads/main by this push:
new e6abe70 Try per-directory htaccess
e6abe70 is described below
commit e6abe70ca5d163eed6fe25012c94018396328a12
Author: Houston Putman <[email protected]>
AuthorDate: Fri Apr 30 16:50:04 2021 -0500
Try per-directory htaccess
---
pelicanconf.py | 2 +-
themes/solr/templates/operator/htaccess.template | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/pelicanconf.py b/pelicanconf.py
index 0953bfc..37224b4 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -89,7 +89,7 @@ EXTRA_PATH_METADATA = {}
STATIC_PATHS = ['.']
-TEMPLATE_PAGES = {'htaccess.template': '.htaccess'}
+TEMPLATE_PAGES = {'htaccess.template': '.htaccess',
'operator/htaccess.template': 'operator/.htaccess'}
PLUGIN_PATHS = ['./plugins']
PLUGINS = [
diff --git a/themes/solr/templates/operator/htaccess.template
b/themes/solr/templates/operator/htaccess.template
new file mode 100644
index 0000000..24f11fa
--- /dev/null
+++ b/themes/solr/templates/operator/htaccess.template
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+### Redirects to Apache Nightlies, this will change when they have a separate
area for released artifacts
+Redirect temp "/operator/downloads/crds"
"https://nightlies.apache.org/solr/release/operator/crds"