Skip to content

Commit a2ab65b

Browse files
MenukaIshanJon Wayne Parrott
authored andcommitted
Update readme with instructions on how to build the guide locally (#356)
1 parent 96a8b0a commit a2ab65b

1 file changed

Lines changed: 39 additions & 2 deletions

File tree

‎README.rst‎

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,50 @@ Everyone interacting in the Python Packaging User Guide project's codebases,
1717
issue trackers, chat rooms, and mailing lists is expected to follow the
1818
`PyPA Code of Conduct`_.
1919

20+
2021
History
2122
-------
2223

23-
This Guide was forked from the “Hitchhiker's Guide to Packaging” in March 2013,
24-
which was maintained by Tarek Ziadé. Thank you Tarek for all your efforts in
24+
This Guide was forked from the “Hitchhiker's Guide to Packaging” in March 2013,
25+
which was maintained by Tarek Ziadé. Thank you Tarek for all your efforts in
2526
Python packaging.
2627

28+
29+
How to build this guide
30+
-----------------------
31+
32+
In order to build this guide locally, you'll need:
33+
34+
1. `Nox <https://nox.readthedocs.io/en/latest/>`_. You can install or upgrade
35+
nox using ``pip``::
36+
37+
pip install --upgrade nox-automation
38+
39+
2. Python 3.6. Our build scripts are designed to work with Python 3.6 only.
40+
See the `Hitchhiker's Guide to Python installation instructions <http://docs.python-guide.org/en/latest/starting/installation/>`__
41+
to install Python 3.6 on your operating system.
42+
43+
Building the Guide
44+
++++++++++++++++++
45+
46+
To build the guide run below bash command in the source folder::
47+
48+
nox -s build
49+
50+
After the process completed you can find the HTML output in the ``./build/html`
51+
directory. You can open the ``index.html`` file to view the guide in web broswer,
52+
bu it's recommendation to serve the guide using an http server.
53+
54+
Serving the guide using a local HTTP server
55+
+++++++++++++++++++++++++++++++++++++++++++
56+
57+
You can build the guide and serve it via an HTTP server using the following
58+
command::
59+
60+
nox -s preview
61+
62+
The guide will be browsable via http://localhost:8000.
63+
2764
License
2865
-------
2966

0 commit comments

Comments
 (0)