-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add online docs to collection * prevent archlinux CI errors
- Loading branch information
Showing
16 changed files
with
210 additions
and
18 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
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,29 @@ | ||
version: 2 | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
|
||
build: | ||
os: "ubuntu-20.04" | ||
tools: | ||
python: "3.10" | ||
apt_packages: | ||
- rsync | ||
jobs: | ||
pre_build: | ||
- > | ||
. /home/docs/checkouts/readthedocs.org/user_builds/ansible-collection-caddy/envs/latest/bin/activate | ||
&& ansible-galaxy collection build --force | ||
&& ansible-galaxy collection install *.tar.gz --force | ||
&& cd docs | ||
&& mkdir temp-rst | ||
&& antsibull-docs --config-file antsibull-docs.cfg collection --use-current --dest-dir temp-rst maxhoesel.caddy | ||
- cd docs && rsync -cprv --delete-after temp-rst/collections/ rst/collections/ | ||
|
||
sphinx: | ||
fail_on_warning: true | ||
|
||
formats: | ||
- epub |
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
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,7 @@ | ||
# Copyright (c) Ansible Project | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
/temp-rst | ||
/build | ||
/rst/collections |
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,22 @@ | ||
# Copyright (c) Ansible Project | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
breadcrumbs = true | ||
indexes = true | ||
use_html_blobs = false | ||
|
||
# You can specify ways to convert a collection name (<namespace>.<name>) to an URL here. | ||
# You can replace either of <namespace> or <name> by "*" to match all values in that place, | ||
# or use "*" for the collection name to match all collections. In the URL, you can use | ||
# {namespace} and {name} for the two components of the collection name. If you want to use | ||
# "{" or "}" in the URL, write "{{" or "}}" instead. Basically these are Python format | ||
# strings (https://docs.python.org/3.8/library/string.html#formatstrings). | ||
collection_url = { | ||
* = "https://galaxy.ansible.com/{namespace}/{name}" | ||
} | ||
|
||
# The same wildcard rules and formatting rules as for collection_url apply. | ||
collection_install = { | ||
* = "ansible-galaxy collection install {namespace}.{name}" | ||
} |
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,23 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) Ansible Project | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
set -e | ||
|
||
# Create collection documentation into temporary directory | ||
rm -rf temp-rst | ||
mkdir -p temp-rst | ||
chmod og-w temp-rst # antsibull-docs wants that directory only readable by itself | ||
antsibull-docs \ | ||
--config-file antsibull-docs.cfg \ | ||
collection \ | ||
--use-current \ | ||
--dest-dir temp-rst \ | ||
maxhoesel.caddy | ||
|
||
# Copy collection documentation into source directory | ||
rsync -cprv --delete-after temp-rst/collections/ rst/collections/ | ||
|
||
# Build Sphinx site | ||
cd rst && sphinx-build -M html ./ ../build -c . -W --keep-going |
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,10 @@ | ||
# Copyright (c) Ansible Project | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
ansible-core>=2.13,<2.15 | ||
antsibull-docs >= 1.0.0, < 2.0.0 | ||
ansible-pygments | ||
sphinx | ||
sphinx-ansible-theme >= 0.9.0 | ||
pyyaml |
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,52 @@ | ||
# Copyright (c) Ansible Project | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
# This file only contains a selection of the most common options. For a full list see the | ||
# documentation: | ||
# http://www.sphinx-doc.org/en/master/config | ||
|
||
import yaml | ||
|
||
with open("../../galaxy.yml", encoding="utf-8") as f: | ||
galaxy = yaml.safe_load(f) | ||
version = galaxy["version"] | ||
release = version | ||
|
||
project = 'maxhoesel.caddy' | ||
# pylint: disable=redefined-builtin | ||
copyright = 'Max Hösel and Contributor' | ||
|
||
title = 'maxhoesel.caddy Collection Documentation' | ||
html_short_title = 'maxhoesel.caddy Docs' | ||
|
||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx_antsibull_ext'] | ||
|
||
pygments_style = 'ansible' | ||
|
||
highlight_language = 'YAML+Jinja' | ||
|
||
html_theme = 'sphinx_ansible_theme' | ||
html_show_sphinx = False | ||
|
||
display_version = False | ||
|
||
html_use_smartypants = True | ||
html_use_modindex = False | ||
html_use_index = False | ||
html_copy_source = False | ||
|
||
# See https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#confval-intersphinx_mapping for the syntax | ||
intersphinx_mapping = { | ||
'python': ('https://docs.python.org/2/', (None, '../python2.inv')), | ||
'python3': ('https://docs.python.org/3/', (None, '../python3.inv')), | ||
'jinja2': ('http://jinja.palletsprojects.com/', (None, '../jinja2.inv')), | ||
'ansible_devel': ('https://docs.ansible.com/ansible/devel/', (None, '../ansible_devel.inv')), | ||
# If you want references to resolve to a released Ansible version (say, `5`), | ||
# uncomment and replace X by this version: | ||
# 'ansibleX': ('https://docs.ansible.com/ansible/X/', (None, '../ansibleX.inv')), | ||
} | ||
|
||
default_role = 'any' | ||
|
||
nitpicky = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
.. _docsite_root_index: | ||
|
||
Welcome to the maxhoesel.caddy Ansible Collection Docs! | ||
========================================================= | ||
|
||
See the below indices for a list of all the modules and roles included in this collection. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Components: | ||
:glob: | ||
|
||
collections/index_* |
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
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
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