This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 8f59355eb Revert "[KYUUBI #5908] [DOCS] Remove workaround for
malformed table"
8f59355eb is described below
commit 8f59355eb6c0859c930a7150bbcd5bd8252ddc21
Author: Cheng Pan <[email protected]>
AuthorDate: Sun Dec 24 01:53:05 2023 +0800
Revert "[KYUUBI #5908] [DOCS] Remove workaround for malformed table"
This reverts commit 97a0ba461c276425807cc0f9aa7ebb00e15b20e5.
---
docs/_static/css/custom.css | 47 +++++++++++++++++++++++++++++++++++++++++++++
docs/conf.py | 3 ++-
2 files changed, 49 insertions(+), 1 deletion(-)
diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css
new file mode 100644
index 000000000..9352af865
--- /dev/null
+++ b/docs/_static/css/custom.css
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ */
+
+table.docutils {
+ width: 100%;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ border: 0;
+ border-collapse: collapse;
+ table-layout: auto;
+}
+table.docutils th {
+ padding: 1px 8px 1px 5px;
+ border-top: 1px;
+ border-left: 1px;
+ border-right: 1px;
+ border-bottom: 1px solid #aaa;
+}
+table.docutils td {
+ word-break: break-word;
+ min-width: 10%;
+}
+table.docutils tr:hover {
+ background: #efefef;
+}
+table.docutils tbody tr:nth-child(2n) {
+ background: #9EBCE21E;
+}
+table.docutils td:nth-child(1) {
+ width: 25%;
+ word-break: break-all;
+ font-weight: 500;
+}
diff --git a/docs/conf.py b/docs/conf.py
index d75f819b3..eaac1aced 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -126,7 +126,8 @@ pygments_style = 'sphinx'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = []
+html_static_path = ['_static']
+html_css_files = ["css/custom.css"]
htmlhelp_basename = 'Recommonmarkdoc'
github_doc_root = 'https://github.com/apache/kyuubi/tree/master/docs/'