Skip to content

Commit

Permalink
apache#41532 - added custom css for google providers
Browse files Browse the repository at this point in the history
  • Loading branch information
geraj1010 committed Nov 10, 2024
1 parent 7d59687 commit 0ad8fcb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions docs/apache-airflow-providers-google/static/warnings.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*!
* 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.
*/

div.admonition.warning {
background: #e8cccc;
font-weight: bolder;
}

.rst-content .warning .admonition-title {
background: #cc341d;
}
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _get_rst_filepath_from_path(filepath: pathlib.Path):
if PACKAGE_NAME in ["apache-airflow", "helm-chart"]:
html_static_path = [f"{PACKAGE_NAME}/static"]
else:
html_static_path = []
html_static_path = ["apache-airflow-providers-google/static"]

html_static_path.append("sphinx_design/static/") # Style overrides for the sphinx-design extension.

Expand Down Expand Up @@ -863,3 +863,5 @@ def skip_util_classes(app, what, name, obj, skip, options):
def setup(sphinx):
if "autoapi.extension" in extensions:
sphinx.connect("autoapi-skip-member", skip_util_classes)

sphinx.add_css_file('warnings.css')

0 comments on commit 0ad8fcb

Please sign in to comment.