Skip to content

Commit b7a825a

Browse files
committed
Substitute in |release| in example code automatically
Fixes #203
1 parent fa7a6a9 commit b7a825a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/config/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ A callback function that allows you to apply your own filters to determine if th
122122
Putting it all together
123123
~~~~~~~~~~~~~~~~~~~~~~~
124124

125-
.. code-block:: html
125+
.. parsed-literal::
126126
127127
<!DOCTYPE html>
128128
<html>
129129
<head>
130130
<title>Awesome stuff happening here</title>
131-
<script src="//cdn.ravenjs.com/1.1.11/jquery,native/raven.min.js"></script>
131+
<script src="//cdn.ravenjs.com/|release|/jquery,native/raven.min.js"></script>
132132
<script>
133133
var options = {
134134
logger: 'my-logger',

docs/install/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Raven is distributed in a few different methods, and should get included after a
55

66
So for example:
77

8-
.. code-block:: html
8+
.. parsed-literal::
99
1010
<script src="jquery.js"></script>
11-
<script src="//cdn.ravenjs.com/1.1.14/jquery,native/raven.min.js"></script>
11+
<script src="//cdn.ravenjs.com/|release|/jquery,native/raven.min.js"></script>
1212
<script>Raven.config('...').install();</script>
1313
<script src="app.js"></script>
1414
@@ -21,9 +21,9 @@ We serve our own builds off of `Fastly <http://www.fastly.com/>`_. They are acce
2121

2222
Our CDN distributes builds with and without :doc:`plugins </plugins/index>`.
2323

24-
.. code-block:: html
24+
.. parsed-literal::
2525
26-
<script src="//cdn.ravenjs.com/1.1.14/raven.min.js"></script>
26+
<script src="//cdn.ravenjs.com/|release|/raven.min.js"></script>
2727
2828
**We highly recommend trying out a plugin or two since it'll greatly improve the chances that we can collect good information.**
2929

0 commit comments

Comments
 (0)