Skip to content

Commit

Permalink
README.rst syntax highlight code
Browse files Browse the repository at this point in the history
  • Loading branch information
intermittentnrg authored and amotl committed Apr 21, 2024
1 parent 1679701 commit 7051a1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ multiple scenarios.
Synopsis
========

A scenario definition::
A scenario definition:

.. code:: python
AnimationScenario(
grafana_url="https://play.grafana.org/",
Expand Down Expand Up @@ -259,7 +261,9 @@ in a more general way yet. Challenge accepted!

Time warp
=========
At this programs' core is the code to `set time range in Grafana`_::
At this programs' core is the code to `set time range in Grafana`_:

.. code:: javascript
timeSrv = angular.element('grafana-app').injector().get('timeSrv');
timeSrv.setTime({from: "2015-10-01", to: "2018-12-31"});
Expand Down

0 comments on commit 7051a1d

Please sign in to comment.