-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial mkdocs setup * Add RTD config --------- Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Loading branch information
1 parent
7bab2bb
commit 8e31a8f
Showing
10 changed files
with
223 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mkdocs-ansible[lock]>=0.2.0 | ||
pipdeptree>=2.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
lint | ||
pkg | ||
py310-devel | ||
docs | ||
platforms: linux | ||
|
||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
version: 2 | ||
|
||
mkdocs: | ||
fail_on_warning: true | ||
configuration: mkdocs.yml | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
commands: | ||
- pip install --user tox | ||
- python3 -m tox -e docs -- --strict --site-dir=_readthedocs/html/ | ||
python: | ||
install: | ||
- method: pip | ||
path: tox | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
submodules: | ||
include: all | ||
recursive: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Ansible Pytest Documentation | ||
|
||
## About Ansible Pytest | ||
|
||
The `pytest-ansible` plugin is designed to provide seamless integration between | ||
`pytest` and `Ansible`, allowing you to efficiently run and test Ansible-related | ||
tasks and scenarios within your pytest test suite. This plugin enhances the | ||
testing workflow by offering three distinct pieces of functionality: | ||
|
||
1. **Unit Testing for Ansible Collections**: This feature aids in running unit | ||
tests for `Ansible collections` using `pytest`. It allows you to validate the | ||
behavior of your Ansible `modules` and `roles` in isolation, ensuring that | ||
each component functions as expected. | ||
|
||
2. **Molecule Scenario Integration**: The plugin assists in running Molecule | ||
`scenarios` using `pytest`. This integration streamlines the testing of | ||
Ansible roles and playbooks across different environments, making it easier | ||
to identify and fix issues across diverse setups. | ||
|
||
3. **Ansible Integration for Pytest Tests**: With this functionality, you can | ||
seamlessly use `Ansible` from within your `pytest` tests. This opens up | ||
possibilities to interact with Ansible components and perform tasks like | ||
provisioning resources, testing configurations, and more, all while | ||
leveraging the power and flexibility of pytest. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
site_name: Ansible Pytest Documentation | ||
site_url: https://ansible.readthedocs.io/projects/pytest-ansible/ | ||
repo_url: https://github.com/ansible/pytest-ansible | ||
edit_uri: blob/main/docs/ | ||
copyright: Copyright © 2023 Red Hat, Inc. | ||
docs_dir: docs | ||
strict: true | ||
|
||
theme: | ||
name: ansible | ||
features: | ||
- content.code.copy | ||
- content.action.edit | ||
- navigation.expand | ||
- navigation.sections | ||
- navigation.instant | ||
- navigation.indexes | ||
- navigation.tracking | ||
- toc.integrate | ||
|
||
extra: | ||
social: | ||
- icon: fontawesome/brands/python | ||
link: https://pypi.org/project/pytest-ansible/ | ||
name: PyPI | ||
- icon: fontawesome/solid/scroll | ||
link: https://github.com/ansible/pytest-ansible/releases | ||
name: Releases | ||
- icon: simple/mastodon | ||
link: https://fosstodon.org/@ansible | ||
name: Mastodon | ||
- icon: simple/matrix | ||
link: https://matrix.to/#/#devtools:ansible.com | ||
name: Matrix | ||
- icon: fontawesome/solid/comments | ||
link: https://github.com/ansible/pytest-ansible/discussions | ||
name: Discussions | ||
- icon: fontawesome/brands/github-alt | ||
link: https://github.com/ansible/pytest-ansible | ||
name: GitHub | ||
|
||
nav: | ||
- Home: index.md | ||
|
||
plugins: | ||
- autorefs | ||
- markdown-exec | ||
- material/search: | ||
separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])' | ||
- material/social | ||
- material/tags | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
paths: [src] | ||
options: | ||
# Sphinx is for historical reasons, but we could consider switching if needed | ||
# https://mkdocstrings.github.io/griffe/docstrings/ | ||
docstring_style: sphinx | ||
merge_init_into_class: yes | ||
show_submodules: yes | ||
import: | ||
- url: https://docs.ansible.com/ansible/latest/objects.inv | ||
domains: [py, std] | ||
|
||
markdown_extensions: | ||
- markdown_include.include: | ||
base_path: docs | ||
- admonition | ||
- def_list | ||
- footnotes | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.superfences | ||
- pymdownx.magiclink: | ||
repo_url_shortener: true | ||
repo_url_shorthand: true | ||
social_url_shorthand: true | ||
social_url_shortener: true | ||
user: facelessuser | ||
repo: pymdown-extensions | ||
normalize_issue_symbols: true | ||
- pymdownx.tabbed: | ||
alternate_style: true | ||
- toc: | ||
toc_depth: 2 | ||
permalink: true | ||
- pymdownx.superfences: | ||
custom_fences: | ||
- name: mermaid | ||
class: mermaid | ||
format: !!python/name:pymdownx.superfences.fence_code_format | ||
- name: python | ||
class: python | ||
validator: !!python/name:markdown_exec.validator | ||
format: !!python/name:markdown_exec.formatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters