We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update Hello World example to align with TryPyramid.com
We've updated the Hello World example on https://trypyramid.com per https://github.com/Pylons/trypyramid.com/pull/205 so we should update it on our official docs.

Verify that line numbers and narrative still align in docs whenever a `literalinclude` of Python files occurs.

- [x] README.rst
- [x] docs/designdefense.rst
- [x] docs/index.rst
- [x] docs/narr/helloworld.py
- [x] docs/narr/hellotraversal.py (take care to adapt code)
- [x] docs/narr/configuration.rst ("Declarative Configuration" section only)
- [x] docs/narr/firstapp.rst
- [x] docs/narr/hellotraversal.rst
- [x] docs/quick_tour/hello_world/app.py
- [x] docs/quick_tour.rst ("Hello World" section only)

Note that I excluded `docs/quick_tutorial/*` because it deliberately starts with imperative configuration, then introduces declarative configuration in [Step 7](http://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/views.html).

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/quick_tour/hello_world/app.py`
Content:
```
1 from wsgiref.simple_server import make_server
2 from pyramid.config import Configurator
3 from pyramid.response import Response
4 
5 
6 def hello_world(request):
7     return Response('<h1>Hello World!</h1>')
8 
9 
10 if __name__ == '__main__':
11     with Configurator() as config:
12         config.add_route('hello', '/')
13         config.add_view(hello_world, route_name='hello')
14         app = config.make_wsgi_app()
15     server = make_server('0.0.0.0', 6543, app)
16     server.serve_forever()
17
```

Path: `docs/narr/helloworld.py`
Content:
```
1 from wsgiref.simple_server import make_server
2 from pyramid.config import Configurator
3 from pyramid.response import Response
4 
5 
6 def hello_world(request):
7     return Response('Hello %(name)s!' % request.matchdict)
8 
9 if __name__ == '__main__':
10     with Configurator() as config:
11         config.add_route('hello', '/hello/{name}')
12         config.add_view(hello_world, route_name='hello')
13         app = config.make_wsgi_app()
14     server = make_server('0.0.0.0', 8080, app)
15     server.serve_forever()
16
```

Path: `docs/narr/hellotraversal.py`
Content:
```
1 from wsgiref.simple_server import make_server
2 from pyramid.config import Configurator
3 from pyramid.response import Response
4 
5 class Resource(dict):
6     pass
7 
8 def get_root(request):
9     return Resource({'a': Resource({'b': Resource({'c': Resource()})})})
10 
11 def hello_world_of_resources(context, request):
12     output = "Here's a resource and its children: %s" % context
13     return Response(output)
14 
15 if __name__ == '__main__':
16     config = Configurator(root_factory=get_root)
17     config.add_view(hello_world_of_resources, context=Resource)
18     app = config.make_wsgi_app()
19     server = make_server('0.0.0.0', 8080, app)
20     server.serve_forever()
21 
22 
23
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docs/narr/hellotraversal.py b/docs/narr/hellotraversal.py
--- a/docs/narr/hellotraversal.py
+++ b/docs/narr/hellotraversal.py
@@ -2,21 +2,24 @@
 from pyramid.config import Configurator
 from pyramid.response import Response
 
+
 class Resource(dict):
     pass
 
+
 def get_root(request):
     return Resource({'a': Resource({'b': Resource({'c': Resource()})})})
 
+
 def hello_world_of_resources(context, request):
     output = "Here's a resource and its children: %s" % context
     return Response(output)
 
+
 if __name__ == '__main__':
-    config = Configurator(root_factory=get_root)
-    config.add_view(hello_world_of_resources, context=Resource)
-    app = config.make_wsgi_app()
-    server = make_server('0.0.0.0', 8080, app)
+    with Configurator() as config:
+        config.set_root_factory(get_root)
+        config.add_view(hello_world_of_resources, context=Resource)
+        app = config.make_wsgi_app()
+    server = make_server('0.0.0.0', 6543, app)
     server.serve_forever()
-
-
diff --git a/docs/narr/helloworld.py b/docs/narr/helloworld.py
--- a/docs/narr/helloworld.py
+++ b/docs/narr/helloworld.py
@@ -4,12 +4,13 @@
 
 
 def hello_world(request):
-    return Response('Hello %(name)s!' % request.matchdict)
+    return Response('Hello World!')
+
 
 if __name__ == '__main__':
     with Configurator() as config:
-        config.add_route('hello', '/hello/{name}')
+        config.add_route('hello', '/')
         config.add_view(hello_world, route_name='hello')
         app = config.make_wsgi_app()
-    server = make_server('0.0.0.0', 8080, app)
+    server = make_server('0.0.0.0', 6543, app)
     server.serve_forever()
diff --git a/docs/quick_tour/hello_world/app.py b/docs/quick_tour/hello_world/app.py
--- a/docs/quick_tour/hello_world/app.py
+++ b/docs/quick_tour/hello_world/app.py
@@ -4,7 +4,7 @@
 
 
 def hello_world(request):
-    return Response('<h1>Hello World!</h1>')
+    return Response('Hello World!')
 
 
 if __name__ == '__main__':

{"golden_diff": "diff --git a/docs/narr/hellotraversal.py b/docs/narr/hellotraversal.py\n--- a/docs/narr/hellotraversal.py\n+++ b/docs/narr/hellotraversal.py\n@@ -2,21 +2,24 @@\n from pyramid.config import Configurator\n from pyramid.response import Response\n \n+\n class Resource(dict):\n     pass\n \n+\n def get_root(request):\n     return Resource({'a': Resource({'b': Resource({'c': Resource()})})})\n \n+\n def hello_world_of_resources(context, request):\n     output = \"Here's a resource and its children: %s\" % context\n     return Response(output)\n \n+\n if __name__ == '__main__':\n-    config = Configurator(root_factory=get_root)\n-    config.add_view(hello_world_of_resources, context=Resource)\n-    app = config.make_wsgi_app()\n-    server = make_server('0.0.0.0', 8080, app)\n+    with Configurator() as config:\n+        config.set_root_factory(get_root)\n+        config.add_view(hello_world_of_resources, context=Resource)\n+        app = config.make_wsgi_app()\n+    server = make_server('0.0.0.0', 6543, app)\n     server.serve_forever()\n-\n-\ndiff --git a/docs/narr/helloworld.py b/docs/narr/helloworld.py\n--- a/docs/narr/helloworld.py\n+++ b/docs/narr/helloworld.py\n@@ -4,12 +4,13 @@\n \n \n def hello_world(request):\n-    return Response('Hello %(name)s!' % request.matchdict)\n+    return Response('Hello World!')\n+\n \n if __name__ == '__main__':\n     with Configurator() as config:\n-        config.add_route('hello', '/hello/{name}')\n+        config.add_route('hello', '/')\n         config.add_view(hello_world, route_name='hello')\n         app = config.make_wsgi_app()\n-    server = make_server('0.0.0.0', 8080, app)\n+    server = make_server('0.0.0.0', 6543, app)\n     server.serve_forever()\ndiff --git a/docs/quick_tour/hello_world/app.py b/docs/quick_tour/hello_world/app.py\n--- a/docs/quick_tour/hello_world/app.py\n+++ b/docs/quick_tour/hello_world/app.py\n@@ -4,7 +4,7 @@\n \n \n def hello_world(request):\n-    return Response('<h1>Hello World!</h1>')\n+    return Response('Hello World!')\n \n \n if __name__ == '__main__':\n", "issue": "Update Hello World example to align with TryPyramid.com\nWe've updated the Hello World example on https://trypyramid.com per https://github.com/Pylons/trypyramid.com/pull/205 so we should update it on our official docs.\r\n\r\nVerify that line numbers and narrative still align in docs whenever a `literalinclude` of Python files occurs.\r\n\r\n- [x] README.rst\r\n- [x] docs/designdefense.rst\r\n- [x] docs/index.rst\r\n- [x] docs/narr/helloworld.py\r\n- [x] docs/narr/hellotraversal.py (take care to adapt code)\r\n- [x] docs/narr/configuration.rst (\"Declarative Configuration\" section only)\r\n- [x] docs/narr/firstapp.rst\r\n- [x] docs/narr/hellotraversal.rst\r\n- [x] docs/quick_tour/hello_world/app.py\r\n- [x] docs/quick_tour.rst (\"Hello World\" section only)\r\n\r\nNote that I excluded `docs/quick_tutorial/*` because it deliberately starts with imperative configuration, then introduces declarative configuration in [Step 7](http://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/views.html).\n", "before_files": [{"content": "from wsgiref.simple_server import make_server\nfrom pyramid.config import Configurator\nfrom pyramid.response import Response\n\n\ndef hello_world(request):\n    return Response('<h1>Hello World!</h1>')\n\n\nif __name__ == '__main__':\n    with Configurator() as config:\n        config.add_route('hello', '/')\n        config.add_view(hello_world, route_name='hello')\n        app = config.make_wsgi_app()\n    server = make_server('0.0.0.0', 6543, app)\n    server.serve_forever()\n", "path": "docs/quick_tour/hello_world/app.py"}, {"content": "from wsgiref.simple_server import make_server\nfrom pyramid.config import Configurator\nfrom pyramid.response import Response\n\n\ndef hello_world(request):\n    return Response('Hello %(name)s!' % request.matchdict)\n\nif __name__ == '__main__':\n    with Configurator() as config:\n        config.add_route('hello', '/hello/{name}')\n        config.add_view(hello_world, route_name='hello')\n        app = config.make_wsgi_app()\n    server = make_server('0.0.0.0', 8080, app)\n    server.serve_forever()\n", "path": "docs/narr/helloworld.py"}, {"content": "from wsgiref.simple_server import make_server\nfrom pyramid.config import Configurator\nfrom pyramid.response import Response\n\nclass Resource(dict):\n    pass\n\ndef get_root(request):\n    return Resource({'a': Resource({'b': Resource({'c': Resource()})})})\n\ndef hello_world_of_resources(context, request):\n    output = \"Here's a resource and its children: %s\" % context\n    return Response(output)\n\nif __name__ == '__main__':\n    config = Configurator(root_factory=get_root)\n    config.add_view(hello_world_of_resources, context=Resource)\n    app = config.make_wsgi_app()\n    server = make_server('0.0.0.0', 8080, app)\n    server.serve_forever()\n\n\n", "path": "docs/narr/hellotraversal.py"}], "after_files": [{"content": "from wsgiref.simple_server import make_server\nfrom pyramid.config import Configurator\nfrom pyramid.response import Response\n\n\ndef hello_world(request):\n    return Response('Hello World!')\n\n\nif __name__ == '__main__':\n    with Configurator() as config:\n        config.add_route('hello', '/')\n        config.add_view(hello_world, route_name='hello')\n        app = config.make_wsgi_app()\n    server = make_server('0.0.0.0', 6543, app)\n    server.serve_forever()\n", "path": "docs/quick_tour/hello_world/app.py"}, {"content": "from wsgiref.simple_server import make_server\nfrom pyramid.config import Configurator\nfrom pyramid.response import Response\n\n\ndef hello_world(request):\n    return Response('Hello World!')\n\n\nif __name__ == '__main__':\n    with Configurator() as config:\n        config.add_route('hello', '/')\n        config.add_view(hello_world, route_name='hello')\n        app = config.make_wsgi_app()\n    server = make_server('0.0.0.0', 6543, app)\n    server.serve_forever()\n", "path": "docs/narr/helloworld.py"}, {"content": "from wsgiref.simple_server import make_server\nfrom pyramid.config import Configurator\nfrom pyramid.response import Response\n\n\nclass Resource(dict):\n    pass\n\n\ndef get_root(request):\n    return Resource({'a': Resource({'b': Resource({'c': Resource()})})})\n\n\ndef hello_world_of_resources(context, request):\n    output = \"Here's a resource and its children: %s\" % context\n    return Response(output)\n\n\nif __name__ == '__main__':\n    with Configurator() as config:\n        config.set_root_factory(get_root)\n        config.add_view(hello_world_of_resources, context=Resource)\n        app = config.make_wsgi_app()\n    server = make_server('0.0.0.0', 6543, app)\n    server.serve_forever()\n", "path": "docs/narr/hellotraversal.py"}]}