|
| 1 | +############# |
| 2 | +Documentation |
| 3 | +############# |
| 4 | + |
| 5 | +Developer documentation |
| 6 | +======================= |
| 7 | + |
| 8 | +The developer documentation is hosted at `warehouse.pypa.io`_. It's written in |
| 9 | +`reStructuredText`_ or `Markdown`_ (via `MyST`_) and built using |
| 10 | +`Sphinx`_. |
| 11 | + |
| 12 | +.. _warehouse.pypa.io: https://warehouse.pypa.io |
| 13 | +.. _reStructuredText: https://docutils.sourceforge.io/rst.html |
| 14 | +.. _Markdown: https://www.markdownguide.org/ |
| 15 | +.. _MyST: https://myst-parser.readthedocs.io/en/latest/ |
| 16 | +.. _Sphinx: https://www.sphinx-doc.org/ |
| 17 | + |
| 18 | +.. _dev-docs-layout: |
| 19 | + |
| 20 | +Layout |
| 21 | +------ |
| 22 | + |
| 23 | +The developer documentation is located in the ``docs/dev`` directory. |
| 24 | + |
| 25 | +.. _dev-docs-local-dev: |
| 26 | + |
| 27 | +Local development |
| 28 | +----------------- |
| 29 | + |
| 30 | +To run a single local build of the dev docs, you can use the ``dev-docs`` |
| 31 | +Makefile target: |
| 32 | + |
| 33 | +.. code-block:: console |
| 34 | +
|
| 35 | + make dev-docs |
| 36 | +
|
| 37 | +That will produce a local build under ``docs/dev/_build/``. |
| 38 | + |
| 39 | +To run a local development server, you can use ``docker compose``: |
| 40 | + |
| 41 | +.. code-block:: console |
| 42 | +
|
| 43 | + docker compose up dev-docs |
| 44 | +
|
| 45 | +Once running, you can visit a local build of the pages at `localhost:10002`_. |
| 46 | + |
| 47 | +.. _localhost\:10002: http://localhost:10002 |
| 48 | + |
| 49 | +User documentation |
| 50 | +================== |
| 51 | + |
| 52 | +The user documentation is hosted at `docs.pypi.org`_. It's written in |
| 53 | +`Markdown`_ and built using `MkDocs`_. |
| 54 | + |
| 55 | +.. _docs.pypi.org: https://docs.pypi.org |
| 56 | +.. _MkDocs: https://www.mkdocs.org/ |
| 57 | + |
| 58 | +.. _user-docs-layout: |
| 59 | + |
| 60 | +Layout |
| 61 | +------ |
| 62 | + |
| 63 | +The user documentation is located in the ``docs/user`` directory. |
| 64 | + |
| 65 | +.. _user-docs-local-dev: |
| 66 | + |
| 67 | +Local development |
| 68 | +----------------- |
| 69 | + |
| 70 | +To run a single local build of the user docs, you can use the ``user-docs`` |
| 71 | +Makefile target: |
| 72 | + |
| 73 | +.. code-block:: console |
| 74 | +
|
| 75 | + make user-docs |
| 76 | +
|
| 77 | +That will produce a local build under ``docs/user-site/``. |
| 78 | + |
| 79 | +To run a local development server, you can use ``docker compose``: |
| 80 | + |
| 81 | +.. code-block:: console |
| 82 | +
|
| 83 | + docker compose up user-docs |
| 84 | +
|
| 85 | +Once running, you can visit a local build of the user documentation at `localhost:10000`_. |
| 86 | + |
| 87 | +.. _localhost\:10000: http://localhost:10000 |
| 88 | + |
| 89 | +PyPI blog |
| 90 | +========= |
| 91 | + |
| 92 | +The PyPI blog is hosted at `blog.pypi.org`_. Like the user documentation, |
| 93 | +it's written in `Markdown`_ and built using `MkDocs`_. |
| 94 | + |
| 95 | +.. _blog.pypi.org: https://blog.pypi.org |
| 96 | + |
| 97 | +.. _blog-layout: |
| 98 | + |
| 99 | +Layout |
| 100 | +------ |
| 101 | + |
| 102 | +The blog is located in the ``docs/blog`` directory. |
| 103 | + |
| 104 | +.. _blog-local-dev: |
| 105 | + |
| 106 | +Local development |
| 107 | +----------------- |
| 108 | + |
| 109 | +To run a single local build of the blog, you can use the ``blog`` |
| 110 | +Makefile target: |
| 111 | + |
| 112 | +.. code-block:: console |
| 113 | +
|
| 114 | + make blog |
| 115 | +
|
| 116 | +That will produce a local build under ``docs/blog-site/``. |
| 117 | + |
| 118 | +To run a local development server, you can use ``docker compose``: |
| 119 | + |
| 120 | +.. code-block:: console |
| 121 | +
|
| 122 | + docker compose up blog |
| 123 | +
|
| 124 | +Once running, you can visit a local build of the blog at `localhost:10001`_. |
| 125 | + |
| 126 | +.. _localhost\:10001: http://localhost:10001 |
0 commit comments