8000 Unify code urls. · oscjack/rabbitmq-tutorials@1636942 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1636942

Browse files
committed
Unify code urls.
1 parent e597bd3 commit 1636942

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

github.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ dot:
1111
opts: '-Gbgcolor=transparent -Gtruecolor=true'
1212

1313
pygments: false
14+
15+
examples_url: http://github.com/rabbitmq/rabbitmq-tutorials/blob/master

python/tutorial-one.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ The queue name is specified by the `routing_key` variable:
217217
{% endhighlight %}
218218

219219

220-
[(full send.py source)](http://github.com/rabbitmq/rabbitmq-tutorials/blob/master/python/send.py)
220+
[(full send.py source)]({{ examples_url }}/python/send.py)
221221

222222
### Receiving
223223

@@ -312,7 +312,7 @@ whenever necessary.
312312

313313
{% endhighlight %}
314314

315-
[(full receive.py source)](http://github.com/rabbitmq/rabbitmq-tutorials/blob/master/python/receive.py)
315+
[(full receive.py source)]({{ examples_url }}/python/receive.py)
316316

317317
### Putting it all together
318318

python/tutorial-three.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ it's value is ignored for `fanout` exchanges. Here goes the code for
249249
body=message)
250250
print " [x] Sent %r" % (message,)
251251
{% endhighlight %}
252+
[(full emit_log.py source)]({{ examples_url }}/python/emit_log.py)
252253

253254
As you see, we avoided declaring exchange. If the `logs` exchange
254255
isn't created at the time this code is executed the message will be
@@ -285,6 +286,7 @@ The code for `receive_logs.py`:
285286

286287
pika.asyncore_loop()
287288
{% endhighlight %}
289+
[(full receive_logs.py source)]({{ examples_url }}/python/receive_logs.py)
288290

289291

290292
We're done. If you want to save logs to a file, just open a console and type:

python/tutorial-two.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ Final code of our `new_task.py` script:
287287
))
288288
print " [x] Sent %r" % (message,)
289289
{% endhighlight %}
290+
[(full new_task.py source)]({{ examples_url }}/python/new_task.py)
291+
290292

291293
And our worker:
292294

@@ -315,6 +317,7 @@ And our worker:
315317

316318
pika.asyncore_loop()
317319
{% endhighlight %}
320+
[(full worker.py source)]({{ examples_url }}/python/worker.py)
318321

319322

320323
Using message acknowledgments and `prefetch_count` you may set up

0 commit comments

Comments
 (0)
0