Skip to content

Commit

Permalink
Handle raw html in docs markdown pages (apache#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossturk authored Jul 13, 2022
1 parent 124cd9a commit 5959926
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 13 deletions.
29 changes: 29 additions & 0 deletions landing-pages/site/assets/scss/_docs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* 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.
*/

@media (min-width: 768px) {
.list-providers {
column-count: 2
}
}
@media (min-width: 1000px) {
.list-providers {
column-count: 3
}
}
1 change: 1 addition & 0 deletions landing-pages/site/assets/scss/main-custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@
@import "highlights";
@import "share-social-media";
@import "four-oh-four";
@import "docs";
17 changes: 4 additions & 13 deletions landing-pages/site/content/en/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Apache Airflow Core, which includes webserver, scheduler, CLI and other componen
Providers packages include integrations with third party projects. They are updated independently of the Apache Airflow core.
[Read the documentation >>](/docs/apache-airflow-providers/index.html)

{{< rawhtml >}}

<ul class="list-providers">

<li><a href="/docs/apache-airflow-providers-airbyte/stable/index.html"><code>Airbyte</code></a></li>
Expand Down Expand Up @@ -171,6 +173,8 @@ Providers packages include integrations with third party projects. They are upda

</ul>

{{< /rawhtml >}}

## [Docker stack](/docs/docker-stack/index.html)

Airflow has an official Dockerfile and Docker image published in DockerHub as a convenience package for
Expand All @@ -184,19 +188,6 @@ your own deployments.
Airflow has an official Helm Chart that will help you set up your own Airflow on a cloud/on-prem Kubernetes environment and leverage its scalable nature to support a large group of users. Thanks to Kubernetes, we are not tied to a specific cloud provider.
[Read the documentation >>](/docs/helm-chart/stable/index.html)

<style>
@media (min-width: 768px) {
.list-providers {
column-count: 2
}
}
@media (min-width: 1000px) {
.list-providers {
column-count: 3
}
}
</style>

## [Python API Client](https://github.com/apache/airflow-client-python)

Airflow releases official Python API client that can be used to easily interact with Airflow REST API from Python code.
Expand Down
20 changes: 20 additions & 0 deletions landing-pages/site/layouts/shortcodes/rawhtml.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{/*
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.
*/}}

{{.Inner}}

0 comments on commit 5959926

Please sign in to comment.