Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Split Ansible docs from core docs (#73616) #73637

Merged
merged 5 commits into from
Mar 3, 2021

Conversation

acozine
Copy link
Contributor

@acozine acozine commented Feb 17, 2021

  • excludes scenario guides from core docs, splits porting guides and roadmaps, symlinks indices to create index.html pages, and adds .gitignore entries for conf.py and the toplevel index.rst files generated by the docs build

  • creates separate build commands for the Ansible package docs and the ansible-core docs, for accuracy in building the package documentation from the correct underlying version of the core code

(cherry picked from commit ccbfdec)

SUMMARY

Allows the docs team to build package docs for Ansible 3.0.0 based on the stable-2.10 branch. The 3.0.0 documentation will reflect core features and functionality of ansible-base-2.10.

Backport of #73616.

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

docs.ansible.com/ansible
docs.ansible.com/ansible-core

* excludes scenario guides from core docs, splits porting guides and roadmaps, symlinks indices to create index.html pages, and adds .gitignore entries for conf.py and the toplevel index.rst files generated by the docs build

This solution builds three types of docs:
* ansible-2.10 and earlier: all the docs.  Handle this via `make webdocs
  ANSIBLE_VERSION=2.10`
* ansible-3 and later: a subset of the docs for the ansible package.
  Handle this via `make webdocs ANSIBLE_VERSION=3` (change the
  ANSIBLE_VERSION to match the version being built for.
* ansible-core: a subset of the docs for the ansible-core package.
  Handle this via `make coredocs`.

* `make webdocs` now always builds all the collection docs
*  Use `make coredocs` to limit it to core plugins only
*  The user specifies the desired version. If no ANSIBLE_VERSION is specified, build plugins for the latest release of ansible

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit ccbfdec)
@acozine acozine added backport This PR does not target the devel branch. docs This issue/PR relates to or includes documentation. labels Feb 17, 2021
@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.10 This issue/PR affects Ansible v2.10 needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. labels Feb 17, 2021
@ansibot
Copy link
Contributor

ansibot commented Feb 17, 2021

The test ansible-test sanity --test docs-build [explain] failed with 1 error:

docs/docsite/rst/porting_guides/core_porting_guides.rst:11:0: toc-tree-missing-document: toctree contains reference to nonexisting document 'porting_guides/porting_guide_core_2.11'

The test ansible-test sanity --test metaclass-boilerplate [explain] failed with 1 error:

docs/docsite/sphinx_conf/2.10_conf.py:0:0: missing: __metaclass__ = type

The test ansible-test sanity --test ignores [explain] failed with 2 errors:

test/sanity/ignore.txt:7:1: File 'docs/docsite/rst/conf.py' does not exist
test/sanity/ignore.txt:8:1: File 'docs/docsite/rst/conf.py' does not exist

The test ansible-test sanity --test future-import-boilerplate [explain] failed with 1 error:

docs/docsite/sphinx_conf/2.10_conf.py:0:0: missing: from __future__ import (absolute_import, division, print_function)

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Feb 17, 2021
@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. and removed ci_verified Changes made in this PR are causing tests to fail. labels Feb 17, 2021
@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. and removed ci_verified Changes made in this PR are causing tests to fail. labels Feb 17, 2021
@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. and removed ci_verified Changes made in this PR are causing tests to fail. labels Feb 17, 2021
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Feb 25, 2021
@ansibot ansibot removed ci_verified Changes made in this PR are causing tests to fail. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Mar 2, 2021
@acozine acozine changed the title WIP: Backport of Split Ansible docs from core docs (#73616) Backport of Split Ansible docs from core docs (#73616) Mar 2, 2021
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. labels Mar 2, 2021
@acozine acozine merged commit c86a498 into ansible:stable-2.10 Mar 3, 2021
@acozine acozine deleted the backport/2.10/73616 branch March 3, 2021 15:42
@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Mar 16, 2021
@ansible ansible locked and limited conversation to collaborators Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 backport This PR does not target the devel branch. core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. has_issue support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants