File: contributing.rst

package info (click to toggle)
sphinx-sitemap 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 368; makefile: 13
file content (73 lines) | stat: -rw-r--r-- 1,769 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Contributing
============

You will need to set up a development environment to make and test your changes
before submitting them.

Local development
-----------------

#. Clone the `sphinx-sitemap repository`_.

#. Create and activate a virtual environment:

   .. code-block:: console

      python3 -m venv .venv
      source .venv/bin/activate

#. Install development dependencies:

   .. code-block:: console

      pip3 install -r dev-requirements.txt

#. Install pre-commit Git hook scripts:

   .. code-block:: console

      pre-commit install

Install a local copy of the extension
-------------------------------------

Add **sphinx-sitemap** as a `third party extension`_.

#. If your project doesn't have an extensions directory, create ``_exts`` and
   point **conf.py** to it:

   .. code-block:: python

      sys.path.append(os.path.abspath('../_exts'))

#. Copy ``sphinx_sitemap`` as a directory in your project's extensions
   directory, and rename it to ``sphinx_sitemap_dev``.

#. Add ``sphinx_sitemap_dev`` to :confval:`extensions`, or if already installed via ``pip``, change ``sphinx_sitemap`` to ``sphinx_sitemap_dev`` in **conf.py**:

   .. code-block:: python

      extensions = ['sphinx_sitemap_dev']

You can now make changes to ``sphinx_sitemap_dev``.

Testing changes
---------------

Run ``tox`` before committing changes.

Current contributors
--------------------

Thanks to all who have contributed!
The people that have improved the code:

.. contributors:: jdillard/sphinx-sitemap
   :avatars:
   :limit: 100
   :exclude: pre-commit-ci[bot],dependabot[bot]
   :order: ASC


.. _sphinx-sitemap repository: https://github.com/jdillard/sphinx-sitemap
.. _third party extension: http://www.sphinx-doc.org/en/master/ext/thirdparty.html