Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Forró <nforro@redhat.com>
  • Loading branch information
nforro committed Jan 18, 2023
1 parent 7991d20 commit 7fa4af6
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 31 deletions.
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.9"
apt_packages:
- libkrb5-dev
- libcurl4-openssl-dev
- rpm
- cython3

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: doc-requirements-gssapi.txt
- requirements: doc-requirements.txt
12 changes: 0 additions & 12 deletions .readthedocs.yml

This file was deleted.

1 change: 1 addition & 0 deletions doc-requirements-gssapi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/pythongssapi/python-gssapi/archive/refs/tags/v1.8.0.tar.gz
6 changes: 0 additions & 6 deletions docs/api/helpers/macrohelper.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/spec_content.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api/tags.rst

This file was deleted.

3 changes: 2 additions & 1 deletion docs/user_guide/writing_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Example
:param spec_file: SpecFile object representing original SPEC file
:param rebase_spec_file: SpecFile object representing rebased SPEC file
"""
rebase_spec_file.spec_content.section('%package').insert(0, '# processed by {}\n'.format(cls.NAME))
with rebase_spec_file.spec.sections() as sections:
sections.package.insert(0, '# processed by {}\n'.format(cls.NAME))
rebase_spec_file.save()
.. code-block:: python
Expand Down

0 comments on commit 7fa4af6

Please sign in to comment.