Skip to content

Commit

Permalink
Fixing the partials
Browse files Browse the repository at this point in the history
  • Loading branch information
userbradley committed Aug 26, 2023
1 parent 5624c38 commit 9674882
Show file tree
Hide file tree
Showing 7 changed files with 212 additions and 178 deletions.
16 changes: 2 additions & 14 deletions docs/automation/airflow/airflow-basics.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
---
title: Airflow basics
reviewdate: '2022-01-01'
#reviewdate: '2022-01-01'
outdated: true
---
# Airflow basics

<!--suppress ALL -->













<p id="bkmrk-airflow-exists-for-t">Airflow exists for the sole purpose of removing the need to write a bash or python script, set up a server with a cron job and then run your ETL pipeline. With Airflow we're doing all this under one roof with monitoring and visualization built in.</p>
<p id="bkmrk-%C2%A0"> </p>
<p id="bkmrk-airflow-uses-somethi">Airflow uses something called a DAG (Directed acyclic graph) </p>
Expand Down
71 changes: 0 additions & 71 deletions overrides-dev/main.html

This file was deleted.

90 changes: 90 additions & 0 deletions overrides-dev/partials/content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!--
Copyright (c) 2016-2023 Martin Donath <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
-->

<!-- Tags -->
{% if "material/tags" in config.plugins and tags %}
{% include "partials/tags.html" %}
{% endif %}

<!-- Actions -->
{% include "partials/actions.html" %}

<!--
Hack: check whether the content contains a h1 headline. If it doesn't, the
page title (or respectively site name) is used as the main headline.
-->
{% if "\x3ch1" not in page.content %}
<h1>{{ page.title | d(config.site_name, true)}}</h1>
{% endif %}

{% if page.meta.reviewdate %}
{% set build_date = build_date_utc.strftime('%Y-%m-%d') %}
{% set review_date = page.meta.reviewdate %}
{% set page_url = page.url | urlencode %}
{% set page_title = page.title | urlencode %}
{% if review_date < build_date %}
<div class="admonition warning" role="alert">
<div class="admonition-title">Outdated page</div>
<div class="admonition-content">
<p>This page was set to be reviewed before {{ page.meta.reviewdate }} by the page owner.
<br>
<br>
<a href="mailto:[email protected]?subject=Page%3A%20{{page_title}}%20is%20outdated&body=Hello%2C%0D%0A%0D%0AThe%20page%20{{ page_url }}%20is%20outdated.%0D%0A%0D%0APlease%20update%20it.">Contact the page Owner (opens default mail client)</a> if you require this page to be updated
</div>
</div>
{% endif %}
{% endif %}
{% if page.meta.outdated %}
{% set page_url = page.url | urlencode %}
{% set page_title = page.title | urlencode %}
<div class="admonition warning" role="alert">
<div class="admonition-title">No longer maintained</div>
<div class="admonition-content">
<p>This page no longer gets active maintenance
<br>
<br>
<a href="mailto:[email protected]?subject=Page%3A%20{{page_title}}%20is%20outdated&body=Hello%2C%0D%0A%0D%0AThe%20page%20{{ page_url }}%20is%20outdated.%0D%0A%0D%0APlease%20update%20it.">Contact the page Owner (opens default mail client)</a> if you require this page to be updated
</div>
</div>
{% endif %}

<!-- Page content -->
{{ page.content }}

{% if 'index.md' not in page.file.src_uri %}

<hr>
If you found "<i>{{ page.title }}</i>" useful, <a href="https://www.buymeacoffee.com/userbradley">please consider supporting me!</a>
{% endif %}
<!-- Source file information -->
{% if page.meta and (
page.meta.git_revision_date_localized or
page.meta.revision_date
) %}
{% include "partials/source-file.html" %}
{% endif %}

<!-- Was this page helpful? -->
{% include "partials/feedback.html" %}

<!-- Comment system -->
{% include "partials/comments.html" %}
15 changes: 15 additions & 0 deletions overrides-dev/partials/integrations/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//trace-agent.breadnet.co.uk/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '17']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
93 changes: 0 additions & 93 deletions overrides-prod/main.html

This file was deleted.

90 changes: 90 additions & 0 deletions overrides-prod/partials/content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!--
Copyright (c) 2016-2023 Martin Donath <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
-->

<!-- Tags -->
{% if "material/tags" in config.plugins and tags %}
{% include "partials/tags.html" %}
{% endif %}

<!-- Actions -->
{% include "partials/actions.html" %}

<!--
Hack: check whether the content contains a h1 headline. If it doesn't, the
page title (or respectively site name) is used as the main headline.
-->
{% if "\x3ch1" not in page.content %}
<h1>{{ page.title | d(config.site_name, true)}}</h1>
{% endif %}

{% if page.meta.reviewdate %}
{% set build_date = build_date_utc.strftime('%Y-%m-%d') %}
{% set review_date = page.meta.reviewdate %}
{% set page_url = page.url | urlencode %}
{% set page_title = page.title | urlencode %}
{% if review_date < build_date %}
<div class="admonition warning" role="alert">
<div class="admonition-title">Outdated page</div>
<div class="admonition-content">
<p>This page was set to be reviewed before {{ page.meta.reviewdate }} by the page owner.
<br>
<br>
<a href="mailto:[email protected]?subject=Page%3A%20{{page_title}}%20is%20outdated&body=Hello%2C%0D%0A%0D%0AThe%20page%20{{ page_url }}%20is%20outdated.%0D%0A%0D%0APlease%20update%20it.">Contact the page Owner (opens default mail client)</a> if you require this page to be updated
</div>
</div>
{% endif %}
{% endif %}
{% if page.meta.outdated %}
{% set page_url = page.url | urlencode %}
{% set page_title = page.title | urlencode %}
<div class="admonition warning" role="alert">
<div class="admonition-title">No longer maintained</div>
<div class="admonition-content">
<p>This page no longer gets active maintenance
<br>
<br>
<a href="mailto:[email protected]?subject=Page%3A%20{{page_title}}%20is%20outdated&body=Hello%2C%0D%0A%0D%0AThe%20page%20{{ page_url }}%20is%20outdated.%0D%0A%0D%0APlease%20update%20it.">Contact the page Owner (opens default mail client)</a> if you require this page to be updated
</div>
</div>
{% endif %}

<!-- Page content -->
{{ page.content }}

{% if 'index.md' not in page.file.src_uri %}

<hr>
If you found "<i>{{ page.title }}</i>" useful, <a href="https://www.buymeacoffee.com/userbradley">please consider supporting me!</a>
{% endif %}
<!-- Source file information -->
{% if page.meta and (
page.meta.git_revision_date_localized or
page.meta.revision_date
) %}
{% include "partials/source-file.html" %}
{% endif %}

<!-- Was this page helpful? -->
{% include "partials/feedback.html" %}

<!-- Comment system -->
{% include "partials/comments.html" %}
Loading

0 comments on commit 9674882

Please sign in to comment.