Skip to content

Commit

Permalink
adding copy button
Browse files Browse the repository at this point in the history
Signed-off-by: h4l0gen <ks3913688@gmail.com>
  • Loading branch information
h4l0gen committed May 25, 2024
1 parent 68e6435 commit 717d177
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tox run.

::

$ tox
tox

Below, you will see more details about each step managed by ``tox``, in case
you need debug/run outside ``tox``.
Expand All @@ -44,16 +44,16 @@ the test aggregation script inside the *tests* subdirectory. ``tuf`` and its
dependencies must already be installed.
::

$ cd tests/
$ python3 aggregate_tests.py
cd tests/
python3 aggregate_tests.py


Individual tests can also be executed. Optional ``-v`` flags can be added to
increase log level up to DEBUG (``-vvvv``).
::

$ cd tests/
$ python3 test_updater_ng.py -v
cd tests/
python3 test_updater_ng.py -v


Coverage
Expand All @@ -64,8 +64,8 @@ invoked with the ``coverage`` tool (requires installation of ``coverage``, e.g.
via PyPI).
::

$ cd tests/
$ coverage run aggregate_tests.py && coverage report
cd tests/
coverage run aggregate_tests.py && coverage report


Auto-formatting
Expand All @@ -76,4 +76,4 @@ The linter in CI/CD will check that new TUF code is formatted with
command line:
::

$ tox -e fix
tox -e fix
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"sphinx.ext.napoleon",
"sphinx.ext.autosummary",
"sphinx.ext.autosectionlabel",
"sphinx_copybutton",
]

autosectionlabel_prefix_document = True
Expand Down
1 change: 1 addition & 0 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
# install sphinx and its extensions
sphinx
sphinx-rtd-theme
sphinx-copybutton

0 comments on commit 717d177

Please sign in to comment.