Skip to content

Commit

Permalink
docs: add 'latest' note
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Sep 8, 2023
1 parent 991518f commit 5e4caf6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "!layout.html" %}
{% extends "!base.html" %}

{% block footer %}
{{ super() }}
{% block scripts %}
{{super()}}
<!-- Cloudflare Web Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "b5047b826dff4e4db4b9193bb47eec37"}'></script><!-- End Cloudflare Web Analytics -->
{% endblock %}
{% endblock %}

9 changes: 9 additions & 0 deletions docs/source/_templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "!page.html" %}

{% block content %}
<!-- only if config release version is 'latest' -->
{% if release == 'latest' %}
<div class="latest-note"> You are reading the <i>latest</i> version of the documentation. Functionality described here, is only available in the latest version of the LMQL. </div>
{% endif %}
{{super()}}
{% endblock %}
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@
"title": "Community",
"url": "https://discord.gg/7eJP4fcyNT"
}
],
}
]
}
3 changes: 2 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Welcome To LMQL
===================================

.. raw:: html

<div class="subtitle"><img class="inline-logo" src="_static/images/lmql.svg"/> LMQL is a programming language for large language model interaction.</div>
Expand Down Expand Up @@ -137,3 +137,4 @@ To learn more about LMQL, select one of the following sections or navigate the d
Discord <https://discord.gg/7eJP4fcyNT>
GitHub Issues <https://github.com/eth-sri/lmql/issues>
E-Mail <mailto:[email protected]>

0 comments on commit 5e4caf6

Please sign in to comment.