mkdocs-ansible 0.1.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkdocs-ansible-0.1.dev2/.config/dictionary.txt +48 -0
- mkdocs-ansible-0.1.dev2/.config/requirements-test.txt +0 -0
- mkdocs-ansible-0.1.dev2/.config/requirements.in +13 -0
- mkdocs-ansible-0.1.dev2/.config/requirements.txt +55 -0
- mkdocs-ansible-0.1.dev2/.github/CODEOWNERS +1 -0
- mkdocs-ansible-0.1.dev2/.github/dependabot.yml +19 -0
- mkdocs-ansible-0.1.dev2/.github/release-drafter.yml +3 -0
- mkdocs-ansible-0.1.dev2/.github/workflows/ack.yml +10 -0
- mkdocs-ansible-0.1.dev2/.github/workflows/push.yml +13 -0
- mkdocs-ansible-0.1.dev2/.github/workflows/release.yml +43 -0
- mkdocs-ansible-0.1.dev2/.github/workflows/tox.yml +151 -0
- mkdocs-ansible-0.1.dev2/.gitignore +8 -0
- mkdocs-ansible-0.1.dev2/.pre-commit-config.yaml +152 -0
- mkdocs-ansible-0.1.dev2/.readthedocs.yml +26 -0
- mkdocs-ansible-0.1.dev2/.yamllint +15 -0
- mkdocs-ansible-0.1.dev2/PKG-INFO +38 -0
- mkdocs-ansible-0.1.dev2/cspell.config.yaml +22 -0
- mkdocs-ansible-0.1.dev2/docs/README.md +13 -0
- mkdocs-ansible-0.1.dev2/mkdocs.yml +101 -0
- mkdocs-ansible-0.1.dev2/pyproject.toml +58 -0
- mkdocs-ansible-0.1.dev2/setup.cfg +4 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/.icons/logo.svg +7 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/.overrides/.gitignore +0 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/__init__.py +7 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/_version.py +4 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/assets/images/favicon.ico +0 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/assets/images/logo.png +0 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/assets/images/logo.svg +7 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible/mkdocs_theme.yml +33 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible.egg-info/PKG-INFO +38 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible.egg-info/SOURCES.txt +34 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible.egg-info/dependency_links.txt +1 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible.egg-info/entry_points.txt +2 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible.egg-info/requires.txt +17 -0
- mkdocs-ansible-0.1.dev2/src/mkdocs_ansible.egg-info/top_level.txt +1 -0
- mkdocs-ansible-0.1.dev2/tox.ini +113 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
PYTHONBREAKPOINT
|
|
2
|
+
PYTHONIOENCODING
|
|
3
|
+
PYTHONPYCACHEPREFIX
|
|
4
|
+
REQPASS
|
|
5
|
+
Roboto
|
|
6
|
+
TOXENV
|
|
7
|
+
ansiblelint
|
|
8
|
+
arithmatex
|
|
9
|
+
autofix
|
|
10
|
+
autohide
|
|
11
|
+
autoupdate
|
|
12
|
+
betterem
|
|
13
|
+
cairosvg
|
|
14
|
+
clib
|
|
15
|
+
codecov
|
|
16
|
+
codenotify
|
|
17
|
+
codespell
|
|
18
|
+
commitlint
|
|
19
|
+
devel
|
|
20
|
+
dists
|
|
21
|
+
docstrings
|
|
22
|
+
fontawesome
|
|
23
|
+
htmlproofer
|
|
24
|
+
inlinehilite
|
|
25
|
+
linenums
|
|
26
|
+
magiclink
|
|
27
|
+
minversion
|
|
28
|
+
mkdocs
|
|
29
|
+
mkdocstrings
|
|
30
|
+
mypy
|
|
31
|
+
notest
|
|
32
|
+
outdir
|
|
33
|
+
pipdeptree
|
|
34
|
+
pycontribs
|
|
35
|
+
pylint
|
|
36
|
+
pymdown
|
|
37
|
+
pymdownx
|
|
38
|
+
pypa
|
|
39
|
+
pyproject
|
|
40
|
+
pyupgrade
|
|
41
|
+
ruamel
|
|
42
|
+
setuptools
|
|
43
|
+
smartsymbols
|
|
44
|
+
sourcegraph
|
|
45
|
+
squidfunk
|
|
46
|
+
superfences
|
|
47
|
+
tasklist
|
|
48
|
+
tomli
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
cairosvg>=2.6.0
|
|
2
|
+
markdown-exec>=1.3.0
|
|
3
|
+
mkdocs-gen-files>=0.4.0
|
|
4
|
+
mkdocs-htmlproofer-plugin>=0.10.2
|
|
5
|
+
mkdocs-material-extensions>=1.1.1
|
|
6
|
+
mkdocs-material>=9.0.13
|
|
7
|
+
mkdocs-minify-plugin
|
|
8
|
+
mkdocs>=1.4.2
|
|
9
|
+
mkdocstrings-python>=0.8.3
|
|
10
|
+
mkdocstrings>=0.20.0
|
|
11
|
+
pillow>=9.4.0
|
|
12
|
+
pipdeptree>=2.4.0
|
|
13
|
+
pymdown-extensions>=9.9.2
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.9
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml
|
|
6
|
+
#
|
|
7
|
+
beautifulsoup4==4.11.2
|
|
8
|
+
cairocffi==1.4.0
|
|
9
|
+
cairosvg==2.6.0
|
|
10
|
+
certifi==2022.12.7
|
|
11
|
+
cffi==1.15.1
|
|
12
|
+
charset-normalizer==3.1.0
|
|
13
|
+
click==8.1.3
|
|
14
|
+
colorama==0.4.6
|
|
15
|
+
csscompressor==0.9.5
|
|
16
|
+
cssselect2==0.7.0
|
|
17
|
+
defusedxml==0.7.1
|
|
18
|
+
ghp-import==2.1.0
|
|
19
|
+
griffe==0.25.5
|
|
20
|
+
htmlmin==0.1.12
|
|
21
|
+
idna==3.4
|
|
22
|
+
importlib-metadata==6.0.0
|
|
23
|
+
jinja2==3.1.2
|
|
24
|
+
jsmin==3.0.1
|
|
25
|
+
markdown==3.3.7
|
|
26
|
+
markdown-exec==1.3.0
|
|
27
|
+
markupsafe==2.1.2
|
|
28
|
+
mergedeep==1.3.4
|
|
29
|
+
mkdocs==1.4.2
|
|
30
|
+
mkdocs-autorefs==0.4.1
|
|
31
|
+
mkdocs-gen-files==0.4.0
|
|
32
|
+
mkdocs-htmlproofer-plugin==0.10.3
|
|
33
|
+
mkdocs-material==9.1.1
|
|
34
|
+
mkdocs-material-extensions==1.1.1
|
|
35
|
+
mkdocs-minify-plugin==0.6.2
|
|
36
|
+
mkdocstrings==0.20.0
|
|
37
|
+
mkdocstrings-python==0.8.3
|
|
38
|
+
packaging==23.0
|
|
39
|
+
pillow==9.4.0
|
|
40
|
+
pipdeptree==2.5.2
|
|
41
|
+
pycparser==2.21
|
|
42
|
+
pygments==2.14.0
|
|
43
|
+
pymdown-extensions==9.10
|
|
44
|
+
python-dateutil==2.8.2
|
|
45
|
+
pyyaml==6.0
|
|
46
|
+
pyyaml-env-tag==0.1
|
|
47
|
+
regex==2022.10.31
|
|
48
|
+
requests==2.28.2
|
|
49
|
+
six==1.16.0
|
|
50
|
+
soupsieve==2.4
|
|
51
|
+
tinycss2==1.2.1
|
|
52
|
+
urllib3==1.26.14
|
|
53
|
+
watchdog==2.3.1
|
|
54
|
+
webencodings==0.5.1
|
|
55
|
+
zipp==3.15.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @ansible/devtools
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 2
|
|
3
|
+
updates:
|
|
4
|
+
- package-ecosystem: pip
|
|
5
|
+
directory: /.config/
|
|
6
|
+
schedule:
|
|
7
|
+
day: sunday
|
|
8
|
+
interval: weekly
|
|
9
|
+
labels:
|
|
10
|
+
- dependabot-deps-updates
|
|
11
|
+
- skip-changelog
|
|
12
|
+
versioning-strategy: lockfile-only
|
|
13
|
+
- package-ecosystem: "github-actions"
|
|
14
|
+
directory: "/"
|
|
15
|
+
schedule:
|
|
16
|
+
interval: daily
|
|
17
|
+
labels:
|
|
18
|
+
- "dependencies"
|
|
19
|
+
- "skip-changelog"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
# cspell:ignore mislav
|
|
3
|
+
name: release
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
release:
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
pypi:
|
|
11
|
+
name: Publish to PyPI registry
|
|
12
|
+
environment: release
|
|
13
|
+
runs-on: ubuntu-22.04
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
FORCE_COLOR: 1
|
|
17
|
+
PY_COLORS: 1
|
|
18
|
+
TOXENV: pkg
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Switch to using Python 3.9 by default
|
|
22
|
+
uses: actions/setup-python@v4
|
|
23
|
+
with:
|
|
24
|
+
python-version: 3.9
|
|
25
|
+
|
|
26
|
+
- name: Install tox
|
|
27
|
+
run: python3 -m pip install --user "tox>=4.0.0"
|
|
28
|
+
|
|
29
|
+
- name: Check out src from Git
|
|
30
|
+
uses: actions/checkout@v3
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0 # needed by setuptools-scm
|
|
33
|
+
submodules: true
|
|
34
|
+
|
|
35
|
+
- name: Build dists
|
|
36
|
+
run: python -m tox
|
|
37
|
+
|
|
38
|
+
- name: Publish to pypi.org
|
|
39
|
+
if: >- # "create" workflows run separately from "push" & "pull_request"
|
|
40
|
+
github.event_name == 'release'
|
|
41
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
42
|
+
with:
|
|
43
|
+
password: ${{ secrets.pypi_password }}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tox
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push: # only publishes pushes to the main branch to TestPyPI
|
|
6
|
+
branches: # any integration branch but not tag
|
|
7
|
+
- "main"
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- "main"
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
env:
|
|
17
|
+
FORCE_COLOR: 1
|
|
18
|
+
PY_COLORS: 1
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
pre:
|
|
22
|
+
name: pre
|
|
23
|
+
runs-on: ubuntu-22.04
|
|
24
|
+
outputs:
|
|
25
|
+
matrix: ${{ steps.generate_matrix.outputs.matrix }}
|
|
26
|
+
steps:
|
|
27
|
+
- name: Determine matrix
|
|
28
|
+
id: generate_matrix
|
|
29
|
+
uses: coactions/dynamic-matrix@v1
|
|
30
|
+
with:
|
|
31
|
+
min_python: "3.9"
|
|
32
|
+
max_python: "3.11"
|
|
33
|
+
other_names: |
|
|
34
|
+
lint
|
|
35
|
+
docs
|
|
36
|
+
# platforms: linux,macos
|
|
37
|
+
|
|
38
|
+
build:
|
|
39
|
+
name: ${{ matrix.name }}
|
|
40
|
+
runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
|
|
41
|
+
needs: pre
|
|
42
|
+
defaults:
|
|
43
|
+
run:
|
|
44
|
+
shell: ${{ matrix.shell || 'bash'}}
|
|
45
|
+
strategy:
|
|
46
|
+
fail-fast: false
|
|
47
|
+
matrix: ${{ fromJson(needs.pre.outputs.matrix) }}
|
|
48
|
+
env:
|
|
49
|
+
PYTEST_REQPASS: 0
|
|
50
|
+
steps:
|
|
51
|
+
- uses: actions/checkout@v3
|
|
52
|
+
with:
|
|
53
|
+
fetch-depth: 0 # needed by setuptools-scm
|
|
54
|
+
submodules: true
|
|
55
|
+
|
|
56
|
+
- name: Set pre-commit cache
|
|
57
|
+
uses: actions/cache@v3
|
|
58
|
+
if: ${{ matrix.passed_name == 'lint' }}
|
|
59
|
+
with:
|
|
60
|
+
path: |
|
|
61
|
+
~/.cache/pre-commit
|
|
62
|
+
key: pre-commit-${{ matrix.name || matrix.passed_name }}-${{ hashFiles('.pre-commit-config.yaml') }}
|
|
63
|
+
|
|
64
|
+
- name: Set galaxy cache
|
|
65
|
+
uses: actions/cache@v3
|
|
66
|
+
if: ${{ startsWith(matrix.passed_name, 'py') }}
|
|
67
|
+
with:
|
|
68
|
+
path: |
|
|
69
|
+
examples/playbooks/collections/*.tar.gz
|
|
70
|
+
examples/playbooks/collections/ansible_collections
|
|
71
|
+
key: galaxy-${{ hashFiles('examples/playbooks/collections/requirements.yml') }}
|
|
72
|
+
|
|
73
|
+
- name: Set up Python ${{ matrix.python_version || '3.9' }}
|
|
74
|
+
uses: actions/setup-python@v4
|
|
75
|
+
with:
|
|
76
|
+
cache: pip
|
|
77
|
+
python-version: ${{ matrix.python_version || '3.9' }}
|
|
78
|
+
|
|
79
|
+
- name: Install tox
|
|
80
|
+
run: |
|
|
81
|
+
python3 -m pip install --upgrade pip
|
|
82
|
+
python3 -m pip install --upgrade "tox>=4.0.0"
|
|
83
|
+
|
|
84
|
+
- name: Log installed dists
|
|
85
|
+
run: python3 -m pip freeze --all
|
|
86
|
+
|
|
87
|
+
- name: Initialize tox envs ${{ matrix.passed_name }}
|
|
88
|
+
run: python3 -m tox --notest --skip-missing-interpreters false -vv -e ${{ matrix.passed_name }}
|
|
89
|
+
timeout-minutes: 5 # average is under 1, but macos can be over 3
|
|
90
|
+
|
|
91
|
+
# sequential run improves browsing experience (almost no speed impact)
|
|
92
|
+
- name: tox -e ${{ matrix.passed_name }}
|
|
93
|
+
run: python3 -m tox -e ${{ matrix.passed_name }}
|
|
94
|
+
|
|
95
|
+
- name: Combine coverage data
|
|
96
|
+
if: ${{ startsWith(matrix.passed_name, 'py') }}
|
|
97
|
+
# produce a single .coverage file at repo root
|
|
98
|
+
run: tox -e coverage
|
|
99
|
+
|
|
100
|
+
- name: Upload coverage data
|
|
101
|
+
if: ${{ startsWith(matrix.passed_name, 'py') }}
|
|
102
|
+
uses: codecov/codecov-action@v3
|
|
103
|
+
with:
|
|
104
|
+
name: ${{ matrix.passed_name }}
|
|
105
|
+
fail_ci_if_error: false # see https://github.com/codecov/codecov-action/issues/598
|
|
106
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
107
|
+
verbose: true # optional (default = false)
|
|
108
|
+
|
|
109
|
+
- name: Archive logs
|
|
110
|
+
uses: actions/upload-artifact@v3
|
|
111
|
+
with:
|
|
112
|
+
name: logs.zip
|
|
113
|
+
path: .tox/**/log/
|
|
114
|
+
# https://github.com/actions/upload-artifact/issues/123
|
|
115
|
+
continue-on-error: true
|
|
116
|
+
|
|
117
|
+
- name: Report failure if git reports dirty status
|
|
118
|
+
run: |
|
|
119
|
+
if [[ -n $(git status -s) ]]; then
|
|
120
|
+
# shellcheck disable=SC2016
|
|
121
|
+
echo -n '::error file=git-status::'
|
|
122
|
+
printf '### Failed as git reported modified and/or untracked files\n```\n%s\n```\n' "$(git status -s)" | tee -a "$GITHUB_STEP_SUMMARY"
|
|
123
|
+
exit 99
|
|
124
|
+
fi
|
|
125
|
+
# https://github.com/actions/toolkit/issues/193
|
|
126
|
+
|
|
127
|
+
check: # This job does nothing and is only used for the branch protection
|
|
128
|
+
if: always()
|
|
129
|
+
permissions:
|
|
130
|
+
pull-requests: write # allow codenotify to comment on pull-request
|
|
131
|
+
|
|
132
|
+
needs:
|
|
133
|
+
- build
|
|
134
|
+
|
|
135
|
+
runs-on: ubuntu-latest
|
|
136
|
+
|
|
137
|
+
steps:
|
|
138
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
139
|
+
uses: re-actors/alls-green@release/v1
|
|
140
|
+
with:
|
|
141
|
+
jobs: ${{ toJSON(needs) }}
|
|
142
|
+
|
|
143
|
+
- name: Check out src from Git
|
|
144
|
+
uses: actions/checkout@v3
|
|
145
|
+
|
|
146
|
+
- name: Notify repository owners about lint change affecting them
|
|
147
|
+
uses: sourcegraph/codenotify@v0.6.4
|
|
148
|
+
env:
|
|
149
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
150
|
+
# https://github.com/sourcegraph/codenotify/issues/19
|
|
151
|
+
continue-on-error: true
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
ci:
|
|
3
|
+
# format compatible with commitlint
|
|
4
|
+
autoupdate_commit_msg: "chore: pre-commit autoupdate"
|
|
5
|
+
autoupdate_schedule: monthly
|
|
6
|
+
autofix_commit_msg: |
|
|
7
|
+
chore: auto fixes from pre-commit.com hooks
|
|
8
|
+
|
|
9
|
+
for more information, see https://pre-commit.ci
|
|
10
|
+
skip:
|
|
11
|
+
# https://github.com/pre-commit-ci/issues/issues/55
|
|
12
|
+
- pip-compile
|
|
13
|
+
- schemas
|
|
14
|
+
submodules: true
|
|
15
|
+
exclude: >
|
|
16
|
+
(?x)^(
|
|
17
|
+
src/mkdocs_ansible/_version.py
|
|
18
|
+
)$
|
|
19
|
+
repos:
|
|
20
|
+
- repo: meta
|
|
21
|
+
hooks:
|
|
22
|
+
- id: check-useless-excludes
|
|
23
|
+
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
24
|
+
# keep it before yamllint
|
|
25
|
+
rev: v3.0.0-alpha.6
|
|
26
|
+
hooks:
|
|
27
|
+
- id: prettier
|
|
28
|
+
always_run: true
|
|
29
|
+
additional_dependencies:
|
|
30
|
+
- prettier
|
|
31
|
+
- prettier-plugin-toml
|
|
32
|
+
- prettier-plugin-sort-json
|
|
33
|
+
- repo: https://github.com/streetsidesoftware/cspell-cli
|
|
34
|
+
rev: v6.28.0
|
|
35
|
+
hooks:
|
|
36
|
+
- id: cspell
|
|
37
|
+
# entry: codespell --relative
|
|
38
|
+
args: [--relative, --no-progress, --no-summary]
|
|
39
|
+
name: Spell check with cspell
|
|
40
|
+
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
41
|
+
rev: 0.21.0
|
|
42
|
+
hooks:
|
|
43
|
+
- id: check-github-workflows
|
|
44
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
|
45
|
+
rev: v4.4.0
|
|
46
|
+
hooks:
|
|
47
|
+
- id: end-of-file-fixer
|
|
48
|
+
- id: trailing-whitespace
|
|
49
|
+
- id: mixed-line-ending
|
|
50
|
+
- id: fix-byte-order-marker
|
|
51
|
+
- id: check-executables-have-shebangs
|
|
52
|
+
- id: check-merge-conflict
|
|
53
|
+
- id: debug-statements
|
|
54
|
+
language_version: python3
|
|
55
|
+
- repo: https://github.com/codespell-project/codespell
|
|
56
|
+
rev: v2.2.2
|
|
57
|
+
hooks:
|
|
58
|
+
- id: codespell
|
|
59
|
+
exclude: >
|
|
60
|
+
(?x)^(
|
|
61
|
+
.config/dictionary.txt
|
|
62
|
+
)$
|
|
63
|
+
additional_dependencies:
|
|
64
|
+
- tomli
|
|
65
|
+
- repo: https://github.com/adrienverge/yamllint.git
|
|
66
|
+
rev: v1.29.0
|
|
67
|
+
hooks:
|
|
68
|
+
- id: yamllint
|
|
69
|
+
files: \.(yaml|yml)$
|
|
70
|
+
types: [file, yaml]
|
|
71
|
+
entry: yamllint --strict
|
|
72
|
+
- repo: https://github.com/PyCQA/isort
|
|
73
|
+
rev: 5.12.0
|
|
74
|
+
hooks:
|
|
75
|
+
- id: isort
|
|
76
|
+
args:
|
|
77
|
+
# https://github.com/pre-commit/mirrors-isort/issues/9#issuecomment-624404082
|
|
78
|
+
- --filter-files
|
|
79
|
+
- repo: https://github.com/psf/black
|
|
80
|
+
rev: 23.1.0
|
|
81
|
+
hooks:
|
|
82
|
+
- id: black
|
|
83
|
+
language_version: python3
|
|
84
|
+
- repo: https://github.com/pycqa/flake8.git
|
|
85
|
+
rev: 6.0.0
|
|
86
|
+
hooks:
|
|
87
|
+
- id: flake8
|
|
88
|
+
language_version: python3
|
|
89
|
+
additional_dependencies:
|
|
90
|
+
- flake8-2020>=1.6.0
|
|
91
|
+
# - flake8-black>=0.1.1
|
|
92
|
+
- flake8-docstrings>=1.5.0
|
|
93
|
+
- flake8-print>=5.0
|
|
94
|
+
- flake8-pytest-style>=1.2.2
|
|
95
|
+
- flake8-future-annotations>=0.0.3
|
|
96
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
97
|
+
# keep it after flake8
|
|
98
|
+
rev: v3.3.1
|
|
99
|
+
hooks:
|
|
100
|
+
- id: pyupgrade
|
|
101
|
+
args: ["--py39-plus"]
|
|
102
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
103
|
+
rev: v1.0.1
|
|
104
|
+
hooks:
|
|
105
|
+
- id: mypy
|
|
106
|
+
# empty args needed in order to match mypy cli behavior
|
|
107
|
+
args: [--strict]
|
|
108
|
+
additional_dependencies: []
|
|
109
|
+
- repo: https://github.com/pycqa/pylint
|
|
110
|
+
rev: v2.16.4
|
|
111
|
+
hooks:
|
|
112
|
+
- id: pylint
|
|
113
|
+
args:
|
|
114
|
+
- --output-format=colorized
|
|
115
|
+
additional_dependencies: []
|
|
116
|
+
- repo: https://github.com/jazzband/pip-tools
|
|
117
|
+
rev: 6.12.3
|
|
118
|
+
hooks:
|
|
119
|
+
- id: pip-compile
|
|
120
|
+
name: lock
|
|
121
|
+
alias: lock
|
|
122
|
+
always_run: true
|
|
123
|
+
entry: pip-compile --upgrade --resolver=backtracking -q --no-annotate --output-file=.config/requirements-lock.txt pyproject.toml --strip-extras --unsafe-package ruamel-yaml-clib
|
|
124
|
+
files: ^.config\/requirements.*$
|
|
125
|
+
language: python
|
|
126
|
+
language_version: "3.9" # minimal we support officially
|
|
127
|
+
pass_filenames: false
|
|
128
|
+
stages: [manual]
|
|
129
|
+
additional_dependencies:
|
|
130
|
+
- pip>=22.3.1
|
|
131
|
+
- id: pip-compile
|
|
132
|
+
name: deps
|
|
133
|
+
alias: deps
|
|
134
|
+
always_run: true
|
|
135
|
+
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib
|
|
136
|
+
files: ^.config\/requirements.*$
|
|
137
|
+
language: python
|
|
138
|
+
language_version: "3.9" # minimal we support officially
|
|
139
|
+
pass_filenames: false
|
|
140
|
+
additional_dependencies:
|
|
141
|
+
- pip>=22.3.1
|
|
142
|
+
- id: pip-compile
|
|
143
|
+
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib --upgrade
|
|
144
|
+
language: python
|
|
145
|
+
always_run: true
|
|
146
|
+
pass_filenames: false
|
|
147
|
+
files: ^.config\/requirements.*$
|
|
148
|
+
alias: up
|
|
149
|
+
stages: [manual]
|
|
150
|
+
language_version: "3.9" # minimal we support officially
|
|
151
|
+
additional_dependencies:
|
|
152
|
+
- pip>=22.3.1
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
mkdocs:
|
|
5
|
+
fail_on_warning: true
|
|
6
|
+
configuration: mkdocs.yml
|
|
7
|
+
|
|
8
|
+
build:
|
|
9
|
+
os: ubuntu-22.04
|
|
10
|
+
tools:
|
|
11
|
+
python: "3.11"
|
|
12
|
+
commands:
|
|
13
|
+
- pip install --user tox
|
|
14
|
+
- python3 -m tox -e docs -- --strict --site-dir=_readthedocs/html/
|
|
15
|
+
python:
|
|
16
|
+
system_packages: false
|
|
17
|
+
install:
|
|
18
|
+
- method: pip
|
|
19
|
+
path: tox
|
|
20
|
+
- method: pip
|
|
21
|
+
path: .
|
|
22
|
+
extra_requirements:
|
|
23
|
+
- docs
|
|
24
|
+
submodules:
|
|
25
|
+
include: all
|
|
26
|
+
recursive: true
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
rules:
|
|
3
|
+
comments:
|
|
4
|
+
# prettier compatibility
|
|
5
|
+
min-spaces-from-content: 1
|
|
6
|
+
document-start:
|
|
7
|
+
present: true
|
|
8
|
+
indentation:
|
|
9
|
+
level: error
|
|
10
|
+
indent-sequences: consistent
|
|
11
|
+
octal-values:
|
|
12
|
+
forbid-implicit-octal: true
|
|
13
|
+
forbid-explicit-octal: true
|
|
14
|
+
ignore: |
|
|
15
|
+
.tox
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: mkdocs-ansible
|
|
3
|
+
Version: 0.1.dev2
|
|
4
|
+
Summary: Ansible MkDocs Theme based on mkdocs-material
|
|
5
|
+
Author-email: Ansible by Red Hat <info@ansible.com>
|
|
6
|
+
Maintainer-email: Ansible by Red Hat <info@ansible.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Project-URL: homepage, https://github.com/ansible/mkdocs-ansible
|
|
9
|
+
Project-URL: documentation, https://mkdocs-ansible.readthedocs.io/
|
|
10
|
+
Project-URL: repository, https://github.com/ansible/mkdocs-ansible
|
|
11
|
+
Project-URL: changelog, https://github.com/ansible/mkdocs-ansible/releases
|
|
12
|
+
Keywords: ansible,mkdocs,theme
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: JavaScript
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Topic :: Documentation
|
|
19
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
20
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Provides-Extra: lock
|
|
25
|
+
|
|
26
|
+
# mkdocs-ansible theme
|
|
27
|
+
|
|
28
|
+
This [mkdocs](https://www.mkdocs.org/) theme is based on [mkdocs-material](https://squidfunk.github.io/mkdocs-material/) and aims to provide a consistent
|
|
29
|
+
look and feel for any project related to [Ansible](https://docs.ansible.com/) ecosystem.
|
|
30
|
+
|
|
31
|
+
Some of the projects that use this theme are:
|
|
32
|
+
|
|
33
|
+
- [ansible-compat](https://ansible-compat.readthedocs.io/)
|
|
34
|
+
- [ansible-devtools](https://ansible-devtools.readthedocs.io/)
|
|
35
|
+
- [ansible-language-server](https://ansible-language-server.readthedocs.io/)
|
|
36
|
+
- [ansible-lint](https://ansible-lint.readthedocs.io/)
|
|
37
|
+
- [ansible-navigator](https://ansible-navigator.readthedocs.io/en/latest/)
|
|
38
|
+
- [molecule](https://molecule.readthedocs.io/)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
dictionaryDefinitions:
|
|
3
|
+
- name: words
|
|
4
|
+
path: .config/dictionary.txt
|
|
5
|
+
addWords: true
|
|
6
|
+
dictionaries:
|
|
7
|
+
# Use `cspell-cli trace word` to check where a work is defined
|
|
8
|
+
- en_US
|
|
9
|
+
- bash
|
|
10
|
+
- words
|
|
11
|
+
- python
|
|
12
|
+
ignorePaths:
|
|
13
|
+
- cspell.config.yaml
|
|
14
|
+
# The requirements file
|
|
15
|
+
- .config/requirements.txt
|
|
16
|
+
- docs/requirements.txt
|
|
17
|
+
- docs/requirements.in
|
|
18
|
+
# Test fixtures generated from outside
|
|
19
|
+
- test/**/*.result
|
|
20
|
+
- src/ansiblelint/schemas/*.json
|
|
21
|
+
# Other
|
|
22
|
+
- "*.svg"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# mkdocs-ansible theme
|
|
2
|
+
|
|
3
|
+
This [mkdocs](https://www.mkdocs.org/) theme is based on [mkdocs-material](https://squidfunk.github.io/mkdocs-material/) and aims to provide a consistent
|
|
4
|
+
look and feel for any project related to [Ansible](https://docs.ansible.com/) ecosystem.
|
|
5
|
+
|
|
6
|
+
Some of the projects that use this theme are:
|
|
7
|
+
|
|
8
|
+
- [ansible-compat](https://ansible-compat.readthedocs.io/)
|
|
9
|
+
- [ansible-devtools](https://ansible-devtools.readthedocs.io/)
|
|
10
|
+
- [ansible-language-server](https://ansible-language-server.readthedocs.io/)
|
|
11
|
+
- [ansible-lint](https://ansible-lint.readthedocs.io/)
|
|
12
|
+
- [ansible-navigator](https://ansible-navigator.readthedocs.io/en/latest/)
|
|
13
|
+
- [molecule](https://molecule.readthedocs.io/)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
site_name: Ansible MkDocs Theme
|
|
3
|
+
site_url: https://mkdocs-ansible.readthedocs.io/
|
|
4
|
+
site_author: Ansible
|
|
5
|
+
site_description: >-
|
|
6
|
+
This mkdocs theme is based on mkdocs-material and aims to provide a
|
|
7
|
+
consistent look and feel for any project related to Ansible.
|
|
8
|
+
# Repository
|
|
9
|
+
repo_name: ansible/mkdocs-ansible
|
|
10
|
+
repo_url: https://github.com/ansible/mkdocs-ansible
|
|
11
|
+
edit_uri: blob/main/docs/
|
|
12
|
+
|
|
13
|
+
# Copyright
|
|
14
|
+
copyright: Copyright 2023 Red Hat Inc
|
|
15
|
+
|
|
16
|
+
# Configuration
|
|
17
|
+
theme:
|
|
18
|
+
name: ansible
|
|
19
|
+
# custom_dir: src/mkdocs_ansible/.overrides
|
|
20
|
+
features:
|
|
21
|
+
# - announce.dismiss
|
|
22
|
+
- content.action.edit
|
|
23
|
+
- content.action.view
|
|
24
|
+
- content.code.annotate
|
|
25
|
+
- content.code.copy
|
|
26
|
+
# - content.tabs.link
|
|
27
|
+
- content.tooltips
|
|
28
|
+
# - header.autohide
|
|
29
|
+
# - navigation.expand
|
|
30
|
+
- navigation.footer
|
|
31
|
+
- navigation.indexes
|
|
32
|
+
# - navigation.instant
|
|
33
|
+
# - navigation.prune
|
|
34
|
+
- navigation.sections
|
|
35
|
+
# - navigation.tabs
|
|
36
|
+
# - navigation.tabs.sticky
|
|
37
|
+
- navigation.top
|
|
38
|
+
- navigation.tracking
|
|
39
|
+
- search.highlight
|
|
40
|
+
- search.share
|
|
41
|
+
- search.suggest
|
|
42
|
+
- toc.follow
|
|
43
|
+
# - toc.integrate
|
|
44
|
+
# favicon: assets/favicon.png
|
|
45
|
+
icon:
|
|
46
|
+
logo: logo
|
|
47
|
+
|
|
48
|
+
# Plugins
|
|
49
|
+
plugins:
|
|
50
|
+
- search:
|
|
51
|
+
separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
|
|
52
|
+
- minify:
|
|
53
|
+
minify_html: true
|
|
54
|
+
|
|
55
|
+
# Customization
|
|
56
|
+
extra:
|
|
57
|
+
# analytics:
|
|
58
|
+
# provider: google
|
|
59
|
+
# property: !ENV GOOGLE_ANALYTICS_KEY
|
|
60
|
+
social:
|
|
61
|
+
- icon: fontawesome/brands/github
|
|
62
|
+
link: https://github.com/ansible/mkdocs-ansible
|
|
63
|
+
- icon: fontawesome/brands/python
|
|
64
|
+
link: https://pypi.org/project/mkdocs-ansible/
|
|
65
|
+
|
|
66
|
+
# Extensions
|
|
67
|
+
markdown_extensions:
|
|
68
|
+
- abbr
|
|
69
|
+
- admonition
|
|
70
|
+
- attr_list
|
|
71
|
+
- def_list
|
|
72
|
+
- footnotes
|
|
73
|
+
- md_in_html
|
|
74
|
+
- toc:
|
|
75
|
+
permalink: true
|
|
76
|
+
- pymdownx.arithmatex:
|
|
77
|
+
generic: true
|
|
78
|
+
- pymdownx.betterem:
|
|
79
|
+
smart_enable: all
|
|
80
|
+
- pymdownx.caret
|
|
81
|
+
- pymdownx.details
|
|
82
|
+
- pymdownx.highlight:
|
|
83
|
+
anchor_linenums: true
|
|
84
|
+
- pymdownx.inlinehilite
|
|
85
|
+
- pymdownx.keys
|
|
86
|
+
- pymdownx.magiclink:
|
|
87
|
+
repo_url_shorthand: true
|
|
88
|
+
user: squidfunk
|
|
89
|
+
repo: mkdocs-material
|
|
90
|
+
- pymdownx.mark
|
|
91
|
+
- pymdownx.smartsymbols
|
|
92
|
+
- pymdownx.superfences:
|
|
93
|
+
custom_fences:
|
|
94
|
+
- name: mermaid
|
|
95
|
+
class: mermaid
|
|
96
|
+
format: !!python/name:pymdownx.superfences.fence_code_format
|
|
97
|
+
- pymdownx.tabbed:
|
|
98
|
+
alternate_style: true
|
|
99
|
+
- pymdownx.tasklist:
|
|
100
|
+
custom_checkbox: true
|
|
101
|
+
- pymdownx.tilde
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"setuptools >= 63.0.0", # required by pyproject+setuptools_scm integration
|
|
4
|
+
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
|
|
5
|
+
|
|
6
|
+
]
|
|
7
|
+
build-backend = "setuptools.build_meta"
|
|
8
|
+
|
|
9
|
+
[project]
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
12
|
+
name = "mkdocs-ansible"
|
|
13
|
+
description = "Ansible MkDocs Theme based on mkdocs-material"
|
|
14
|
+
readme = "docs/README.md"
|
|
15
|
+
authors = [{ "name" = "Ansible by Red Hat", "email" = "info@ansible.com" }]
|
|
16
|
+
maintainers = [{ "name" = "Ansible by Red Hat", "email" = "info@ansible.com" }]
|
|
17
|
+
license = { text = "MIT" }
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 5 - Production/Stable",
|
|
20
|
+
"Environment :: Web Environment",
|
|
21
|
+
"License :: OSI Approved :: MIT License",
|
|
22
|
+
"Programming Language :: JavaScript",
|
|
23
|
+
"Programming Language :: Python",
|
|
24
|
+
"Topic :: Documentation",
|
|
25
|
+
"Topic :: Software Development :: Documentation",
|
|
26
|
+
"Topic :: Text Processing :: Markup :: HTML",
|
|
27
|
+
]
|
|
28
|
+
keywords = ["ansible", "mkdocs", "theme"]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
homepage = "https://github.com/ansible/mkdocs-ansible"
|
|
32
|
+
documentation = "https://mkdocs-ansible.readthedocs.io/"
|
|
33
|
+
repository = "https://github.com/ansible/mkdocs-ansible"
|
|
34
|
+
changelog = "https://github.com/ansible/mkdocs-ansible/releases"
|
|
35
|
+
|
|
36
|
+
[project.entry-points."mkdocs.themes"]
|
|
37
|
+
ansible = "mkdocs_ansible"
|
|
38
|
+
|
|
39
|
+
[[tool.mypy.overrides]]
|
|
40
|
+
module = ["mkdocs_ansible._version"]
|
|
41
|
+
|
|
42
|
+
[tool.pylint.MASTER]
|
|
43
|
+
ignore-paths = "^src/.*/(_version|_vendor).*$"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.dynamic]
|
|
46
|
+
optional-dependencies.test = { file = [".config/requirements-test.txt"] }
|
|
47
|
+
optional-dependencies.lock = { file = [".config/requirements-lock.txt"] }
|
|
48
|
+
dependencies = { file = [".config/requirements.in"] }
|
|
49
|
+
|
|
50
|
+
[tool.setuptools]
|
|
51
|
+
include-package-data = true
|
|
52
|
+
|
|
53
|
+
[tool.setuptools.packages.find]
|
|
54
|
+
where = ["src"]
|
|
55
|
+
|
|
56
|
+
[tool.setuptools_scm]
|
|
57
|
+
local_scheme = "no-local-version"
|
|
58
|
+
write_to = "src/mkdocs_ansible/_version.py"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
+
<g id="ansible-aap">
|
|
5
|
+
<path d="M128,0C198.645,0 256,57.355 256,128C256,198.645 198.645,256 128,256C57.355,256 0,198.645 0,128C0,57.355 57.355,0 128,0ZM189.094,178.686L138.002,55.958C136.786,52.714 133.677,50.416 130.163,50.551C126.513,50.416 123.269,52.714 122.053,55.958L66.23,190.446L85.423,190.446L107.455,135.029L173.55,188.418C175.442,190.31 178.011,191.392 180.579,191.527C185.58,191.662 189.77,187.742 189.905,182.606L189.905,182.336C189.77,181.119 189.499,179.903 189.094,178.686ZM130.298,78.125L163.413,159.899L113.402,120.431L130.298,78.125Z" style="fill:white;"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
+
<g id="ansible-aap">
|
|
5
|
+
<path d="M128,0C198.645,0 256,57.355 256,128C256,198.645 198.645,256 128,256C57.355,256 0,198.645 0,128C0,57.355 57.355,0 128,0ZM189.094,178.686L138.002,55.958C136.786,52.714 133.677,50.416 130.163,50.551C126.513,50.416 123.269,52.714 122.053,55.958L66.23,190.446L85.423,190.446L107.455,135.029L173.55,188.418C175.442,190.31 178.011,191.392 180.579,191.527C185.58,191.662 189.77,187.742 189.905,182.606L189.905,182.336C189.77,181.119 189.499,179.903 189.094,178.686ZM130.298,78.125L163.413,159.899L113.402,120.431L130.298,78.125Z" style="fill:white;"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: material
|
|
3
|
+
|
|
4
|
+
language: en
|
|
5
|
+
direction: ltr
|
|
6
|
+
features: []
|
|
7
|
+
palette:
|
|
8
|
+
- scheme: default
|
|
9
|
+
primary: teal
|
|
10
|
+
accent: teal
|
|
11
|
+
toggle:
|
|
12
|
+
icon: material/brightness-7
|
|
13
|
+
name: Switch to dark mode
|
|
14
|
+
- scheme: slate
|
|
15
|
+
primary: teal
|
|
16
|
+
accent: teal
|
|
17
|
+
toggle:
|
|
18
|
+
icon: material/brightness-4
|
|
19
|
+
name: Switch to light mode
|
|
20
|
+
|
|
21
|
+
font:
|
|
22
|
+
# Must be a valid Google Font name from https://fonts.google.com/
|
|
23
|
+
# text: Roboto
|
|
24
|
+
# code: Roboto Mono
|
|
25
|
+
text: Red Hat Display
|
|
26
|
+
code: Red Hat Mono
|
|
27
|
+
# From Material 5.x on, icons are inlined into the HTML and CSS as SVGs. Some
|
|
28
|
+
# icons that are part of the HTML can be configured and replaced
|
|
29
|
+
icon:
|
|
30
|
+
|
|
31
|
+
favicon: assets/images/favicon.ico
|
|
32
|
+
static_templates:
|
|
33
|
+
- 404.html
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: mkdocs-ansible
|
|
3
|
+
Version: 0.1.dev2
|
|
4
|
+
Summary: Ansible MkDocs Theme based on mkdocs-material
|
|
5
|
+
Author-email: Ansible by Red Hat <info@ansible.com>
|
|
6
|
+
Maintainer-email: Ansible by Red Hat <info@ansible.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Project-URL: homepage, https://github.com/ansible/mkdocs-ansible
|
|
9
|
+
Project-URL: documentation, https://mkdocs-ansible.readthedocs.io/
|
|
10
|
+
Project-URL: repository, https://github.com/ansible/mkdocs-ansible
|
|
11
|
+
Project-URL: changelog, https://github.com/ansible/mkdocs-ansible/releases
|
|
12
|
+
Keywords: ansible,mkdocs,theme
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: JavaScript
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Topic :: Documentation
|
|
19
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
20
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Provides-Extra: lock
|
|
25
|
+
|
|
26
|
+
# mkdocs-ansible theme
|
|
27
|
+
|
|
28
|
+
This [mkdocs](https://www.mkdocs.org/) theme is based on [mkdocs-material](https://squidfunk.github.io/mkdocs-material/) and aims to provide a consistent
|
|
29
|
+
look and feel for any project related to [Ansible](https://docs.ansible.com/) ecosystem.
|
|
30
|
+
|
|
31
|
+
Some of the projects that use this theme are:
|
|
32
|
+
|
|
33
|
+
- [ansible-compat](https://ansible-compat.readthedocs.io/)
|
|
34
|
+
- [ansible-devtools](https://ansible-devtools.readthedocs.io/)
|
|
35
|
+
- [ansible-language-server](https://ansible-language-server.readthedocs.io/)
|
|
36
|
+
- [ansible-lint](https://ansible-lint.readthedocs.io/)
|
|
37
|
+
- [ansible-navigator](https://ansible-navigator.readthedocs.io/en/latest/)
|
|
38
|
+
- [molecule](https://molecule.readthedocs.io/)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.pre-commit-config.yaml
|
|
3
|
+
.readthedocs.yml
|
|
4
|
+
.yamllint
|
|
5
|
+
cspell.config.yaml
|
|
6
|
+
mkdocs.yml
|
|
7
|
+
pyproject.toml
|
|
8
|
+
tox.ini
|
|
9
|
+
.config/dictionary.txt
|
|
10
|
+
.config/requirements-test.txt
|
|
11
|
+
.config/requirements.in
|
|
12
|
+
.config/requirements.txt
|
|
13
|
+
.github/CODEOWNERS
|
|
14
|
+
.github/dependabot.yml
|
|
15
|
+
.github/release-drafter.yml
|
|
16
|
+
.github/workflows/ack.yml
|
|
17
|
+
.github/workflows/push.yml
|
|
18
|
+
.github/workflows/release.yml
|
|
19
|
+
.github/workflows/tox.yml
|
|
20
|
+
docs/README.md
|
|
21
|
+
src/mkdocs_ansible/__init__.py
|
|
22
|
+
src/mkdocs_ansible/_version.py
|
|
23
|
+
src/mkdocs_ansible/mkdocs_theme.yml
|
|
24
|
+
src/mkdocs_ansible.egg-info/PKG-INFO
|
|
25
|
+
src/mkdocs_ansible.egg-info/SOURCES.txt
|
|
26
|
+
src/mkdocs_ansible.egg-info/dependency_links.txt
|
|
27
|
+
src/mkdocs_ansible.egg-info/entry_points.txt
|
|
28
|
+
src/mkdocs_ansible.egg-info/requires.txt
|
|
29
|
+
src/mkdocs_ansible.egg-info/top_level.txt
|
|
30
|
+
src/mkdocs_ansible/.icons/logo.svg
|
|
31
|
+
src/mkdocs_ansible/.overrides/.gitignore
|
|
32
|
+
src/mkdocs_ansible/assets/images/favicon.ico
|
|
33
|
+
src/mkdocs_ansible/assets/images/logo.png
|
|
34
|
+
src/mkdocs_ansible/assets/images/logo.svg
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
cairosvg>=2.6.0
|
|
2
|
+
markdown-exec>=1.3.0
|
|
3
|
+
mkdocs-gen-files>=0.4.0
|
|
4
|
+
mkdocs-htmlproofer-plugin>=0.10.2
|
|
5
|
+
mkdocs-material-extensions>=1.1.1
|
|
6
|
+
mkdocs-material>=9.0.13
|
|
7
|
+
mkdocs-minify-plugin
|
|
8
|
+
mkdocs>=1.4.2
|
|
9
|
+
mkdocstrings-python>=0.8.3
|
|
10
|
+
mkdocstrings>=0.20.0
|
|
11
|
+
pillow>=9.4.0
|
|
12
|
+
pipdeptree>=2.4.0
|
|
13
|
+
pymdown-extensions>=9.9.2
|
|
14
|
+
|
|
15
|
+
[lock]
|
|
16
|
+
|
|
17
|
+
[test]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mkdocs_ansible
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# spell-checker:ignore linkcheck basepython changedir envdir envlist envname envsitepackagesdir passenv setenv testenv toxinidir toxworkdir usedevelop doctrees envpython posargs
|
|
2
|
+
[tox]
|
|
3
|
+
minversion = 4.0.0
|
|
4
|
+
envlist =
|
|
5
|
+
lint
|
|
6
|
+
pkg
|
|
7
|
+
docs
|
|
8
|
+
|
|
9
|
+
[testenv]
|
|
10
|
+
passenv =
|
|
11
|
+
CURL_CA_BUNDLE # https proxies, https://github.com/tox-dev/tox/issues/1437
|
|
12
|
+
FORCE_COLOR
|
|
13
|
+
HOME
|
|
14
|
+
NO_COLOR
|
|
15
|
+
PYTEST_* # allows developer to define their own preferences
|
|
16
|
+
PYTEST_REQPASS # needed for CI
|
|
17
|
+
PYTHON* # PYTHONPYCACHEPREFIX, PYTHONIOENCODING, PYTHONBREAKPOINT,...
|
|
18
|
+
PY_COLORS
|
|
19
|
+
RTD_TOKEN
|
|
20
|
+
REQUESTS_CA_BUNDLE # https proxies
|
|
21
|
+
SETUPTOOLS_SCM_DEBUG
|
|
22
|
+
SSL_CERT_FILE # https proxies
|
|
23
|
+
SSH_AUTH_SOCK # may be needed by git when running with progressive
|
|
24
|
+
LANG
|
|
25
|
+
LC_*
|
|
26
|
+
setenv =
|
|
27
|
+
|
|
28
|
+
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
|
|
29
|
+
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
|
|
30
|
+
PIP_CONSTRAINT = {toxinidir}/.config/requirements.txt
|
|
31
|
+
devel,pkg: PIP_CONSTRAINT = /dev/null
|
|
32
|
+
PIP_DISABLE_PIP_VERSION_CHECK = 1
|
|
33
|
+
PRE_COMMIT_COLOR = always
|
|
34
|
+
FORCE_COLOR = 1
|
|
35
|
+
allowlist_externals =
|
|
36
|
+
sh
|
|
37
|
+
|
|
38
|
+
[testenv:lint]
|
|
39
|
+
description = Run all linters
|
|
40
|
+
# pip compile includes python version in output constraints, so we want to
|
|
41
|
+
# be sure that version does not change randomly.
|
|
42
|
+
basepython = python3.9
|
|
43
|
+
deps =
|
|
44
|
+
pre-commit>=2.6.0
|
|
45
|
+
setuptools>=51.1.1
|
|
46
|
+
pytest>=7.2.0 # to updated schemas
|
|
47
|
+
skip_install = true
|
|
48
|
+
commands =
|
|
49
|
+
{envpython} -m pre_commit run --all-files --show-diff-on-failure {posargs:}
|
|
50
|
+
passenv =
|
|
51
|
+
{[testenv]passenv}
|
|
52
|
+
PRE_COMMIT_HOME
|
|
53
|
+
setenv =
|
|
54
|
+
{[testenv]setenv}
|
|
55
|
+
# avoid messing pre-commit with out own constraints
|
|
56
|
+
PIP_CONSTRAINT=
|
|
57
|
+
[testenv:deps]
|
|
58
|
+
description = Bump all test dependencies
|
|
59
|
+
# we reuse the lint environment
|
|
60
|
+
envdir = {toxworkdir}/lint
|
|
61
|
+
skip_install = true
|
|
62
|
+
basepython = python3.9
|
|
63
|
+
deps =
|
|
64
|
+
{[testenv:lint]deps}
|
|
65
|
+
setenv =
|
|
66
|
+
# without his upgrade would likely not do anything
|
|
67
|
+
PIP_CONSTRAINT = /dev/null
|
|
68
|
+
commands =
|
|
69
|
+
pre-commit run --all-files --show-diff-on-failure --hook-stage manual lock
|
|
70
|
+
pre-commit run --all-files --show-diff-on-failure --hook-stage manual up
|
|
71
|
+
# Update pre-commit hooks
|
|
72
|
+
pre-commit autoupdate
|
|
73
|
+
# Update npm deps
|
|
74
|
+
sh -c "cd test/schemas && npm run deps"
|
|
75
|
+
# We fail if files are modified at the end
|
|
76
|
+
git diff --exit-code
|
|
77
|
+
|
|
78
|
+
[testenv:docs]
|
|
79
|
+
description = Builds docs
|
|
80
|
+
extras =
|
|
81
|
+
docs
|
|
82
|
+
setenv =
|
|
83
|
+
# Disable colors until markdown-exec supports it:
|
|
84
|
+
# https://github.com/pawamoy/markdown-exec/issues/11
|
|
85
|
+
NO_COLOR = 1
|
|
86
|
+
TERM = dump
|
|
87
|
+
skip_install = false
|
|
88
|
+
usedevelop = true
|
|
89
|
+
commands =
|
|
90
|
+
mkdocs build {posargs:}
|
|
91
|
+
|
|
92
|
+
[testenv:pkg]
|
|
93
|
+
description =
|
|
94
|
+
Build package, verify metadata, install package and assert behavior when ansible is missing.
|
|
95
|
+
deps =
|
|
96
|
+
build >= 0.9.0
|
|
97
|
+
twine >= 4.0.1
|
|
98
|
+
skip_install = true
|
|
99
|
+
# Ref: https://twitter.com/di_codes/status/1044358639081975813
|
|
100
|
+
commands =
|
|
101
|
+
# build wheel and sdist using PEP-517
|
|
102
|
+
{envpython} -c 'import os.path, shutil, sys; \
|
|
103
|
+
dist_dir = os.path.join("{toxinidir}", "dist"); \
|
|
104
|
+
os.path.isdir(dist_dir) or sys.exit(0); \
|
|
105
|
+
print("Removing \{!s\} contents...".format(dist_dir), file=sys.stderr); \
|
|
106
|
+
shutil.rmtree(dist_dir)'
|
|
107
|
+
{envpython} -m build --outdir {toxinidir}/dist/ {toxinidir}
|
|
108
|
+
# Validate metadata using twine
|
|
109
|
+
twine check --strict {toxinidir}/dist/*
|
|
110
|
+
# Install the wheel
|
|
111
|
+
sh -c 'python3 -m pip install "mkdocs-ansible[lock] @ file://$(echo {toxinidir}/dist/*.whl)"'
|
|
112
|
+
# Uninstall it
|
|
113
|
+
python3 -m pip uninstall -y mkdocs-ansible
|