From da3bb61f1f40bdd11bd65d66ba1b7019df77453d Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Mon, 4 May 2020 20:52:01 -0500 Subject: [PATCH] Add index page for plugins documents Now we have more documents for plugins on stable release, support and their testing policy. Let's prepare a index page for it will be easy for plugins maintainer. Also renaming the stable support policy section to have a clear name. Adding redirect links for moved documents. Change-Id: I17a9a6e0e88605a0ee5047678d6ed168c31396ec --- .gitignore | 2 +- HACKING.rst | 2 +- doc/source/_extra/.htaccess | 3 ++ doc/source/index.rst | 19 ++++++------ doc/source/plugins/index.rst | 40 ++++++++++++++++++++++++++ doc/source/{ => plugins}/plugin.rst | 0 tools/generate-tempest-plugins-list.sh | 4 +-- 7 files changed, 56 insertions(+), 14 deletions(-) create mode 100644 doc/source/plugins/index.rst rename doc/source/{ => plugins}/plugin.rst (100%) diff --git a/.gitignore b/.gitignore index 9767e52dd2..8b6222e3bd 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ build !.coveragerc cover/ doc/source/_static/tempest.conf.sample -doc/source/plugin-registry.rst +doc/source/plugins/plugin-registry.rst # Files created by releasenotes build releasenotes/build diff --git a/HACKING.rst b/HACKING.rst index f8be0ad703..95bcbb5e44 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -59,7 +59,7 @@ projects not included above should go into one of the `relevant plugin projects`_. .. _External Plugin Interface: https://specs.openstack.org/openstack/qa-specs/specs/tempest/implemented/tempest-external-plugin-interface.html -.. _relevant plugin projects: https://docs.openstack.org/tempest/latest/plugin-registry.html#detected-plugins +.. _relevant plugin projects: https://docs.openstack.org/tempest/latest/plugins/plugin-registry.html#detected-plugins Exception Handling ------------------ diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess index 7745594937..1296642c19 100644 --- a/doc/source/_extra/.htaccess +++ b/doc/source/_extra/.htaccess @@ -1 +1,4 @@ redirectmatch 301 ^/developer/tempest/(.*) /tempest/latest/$1 +redirectmatch 301 ^/tempest/latest/plugin.html /tempest/latest/plugins/plugin.html +redirectmatch 301 ^/tempest/latest/plugin-registry.html /tempest/latest/plugins/plugin-registry +redirectmatch 301 ^/tempest/latest/support-policy /tempest/latest/stable-branch-support-policy diff --git a/doc/source/index.rst b/doc/source/index.rst index b590380b7a..f8788887d9 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -87,8 +87,7 @@ Plugins .. toctree:: :maxdepth: 2 - plugin - plugin-registry + plugins/index Tempest & Plugins Compatible Version Policy ------------------------------------------- @@ -98,6 +97,14 @@ Tempest & Plugins Compatible Version Policy tempest_and_plugins_compatible_version_policy +Stable Branch Support Policy +---------------------------- + +.. toctree:: + :maxdepth: 2 + + stable_branch_support_policy + Stable Branch Testing Policy ---------------------------- @@ -114,14 +121,6 @@ Library library -Support Policy --------------- - -.. toctree:: - :maxdepth: 2 - - stable_branch_support_policy - Search ====== diff --git a/doc/source/plugins/index.rst b/doc/source/plugins/index.rst new file mode 100644 index 0000000000..f961ac727f --- /dev/null +++ b/doc/source/plugins/index.rst @@ -0,0 +1,40 @@ +===================== +Tempest Plugins Guide +===================== + +.. toctree:: + :maxdepth: 2 + + plugin + +Stable Branch Support Policy +---------------------------- + +.. toctree:: + :maxdepth: 2 + + ../stable_branch_support_policy + +Stable Branch Testing Policy +---------------------------- + +.. toctree:: + :maxdepth: 2 + + ../stable_branch_testing_policy + +Tempest & Plugins Compatible Version Policy +------------------------------------------- + +.. toctree:: + :maxdepth: 2 + + ../tempest_and_plugins_compatible_version_policy + +Plugins Registry +---------------- + +.. toctree:: + :maxdepth: 2 + + plugin-registry diff --git a/doc/source/plugin.rst b/doc/source/plugins/plugin.rst similarity index 100% rename from doc/source/plugin.rst rename to doc/source/plugins/plugin.rst diff --git a/tools/generate-tempest-plugins-list.sh b/tools/generate-tempest-plugins-list.sh index 961cd09726..33675eddc4 100755 --- a/tools/generate-tempest-plugins-list.sh +++ b/tools/generate-tempest-plugins-list.sh @@ -98,8 +98,8 @@ printf "\n\n" if [[ -r doc/source/data/tempest-plugins-registry.footer ]]; then cat doc/source/data/tempest-plugins-registry.footer fi -) > doc/source/plugin-registry.rst +) > doc/source/plugins/plugin-registry.rst if [[ -n ${1} ]]; then - cp doc/source/plugin-registry.rst ${1}/doc/source/plugin-registry.rst + cp doc/source/plugins/plugin-registry.rst ${1}/doc/source/plugins/plugin-registry.rst fi