ClickHouse/website/templates/docs/machine-translated.html
Ivan Blinkov 21d8b6288d
[docs] generate AMP versions for docs articles (#10732)
* Refactoring in preparation for AMP support

* infrastructure for AMP validation

* Add Metrika counter on AMP page + adjust layout

* more content fixes

* improve amp layout

* improve navigation

* Move converting admonitions to generation time

* strict amp test check

* Batch AMP validation

* Add date published/modified to docs articles and their ld+json meta

* few more content fixes

* improve ld+json meta

* adjust margins

* skip published/modified for stable release docs

* adapt single page mode

* update po

* skip published/modified for single page docs

* update po

* adjust layout

* adjust layout
2020-05-08 11:04:09 +03:00

12 lines
915 B
HTML

{% if page.meta.machine_translated %}
<div class="alert alert-primary" role="alert">
<p class="display-5 mb-2">{{ _('Help wanted!') }}</p>
<p class="lead">{{ _('The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable.') }} <a href="{{ page.abs_url.replace('/' + language + '/', '/en/') }}" class="alert-link">{{ _('You can also use the original English version as a reference.') }}</a></p>
<p class="lead">
<a class="btn btn-lg btn-primary text-white" href="{{ page.edit_url }}" target="_blank" rel="external nofollow noreferrer">
{{ _('Help ClickHouse documentation by editing this page') }}
</a>
</p>
</div>
{% endif %}