From 02f448360643184e9d9625ccc1a38ada261c1d8b Mon Sep 17 00:00:00 2001 From: Ron Stone Date: Fri, 30 Jul 2021 10:57:23 -0400 Subject: [PATCH] Conditionalize titles Some 'book' titles need to be conditionalized for partner use. Signed-off-by: Ron Stone Change-Id: If69c2a9102035c02ff2999eb5687b7867cd581a0 --- doc/source/_includes/title-overrides.rest | 8 ++++++++ doc/source/admintasks/index.rst | 19 ++++++++++++------- doc/source/dist_cloud/index.rst | 17 ++++++++++++++--- doc/source/system_configuration/index.rst | 15 ++++++++++++--- 4 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 doc/source/_includes/title-overrides.rest diff --git a/doc/source/_includes/title-overrides.rest b/doc/source/_includes/title-overrides.rest new file mode 100644 index 000000000..4fbf16ac3 --- /dev/null +++ b/doc/source/_includes/title-overrides.rest @@ -0,0 +1,8 @@ +.. dc-title-begin +.. dc-title-end + +.. admin-title-begin +.. admin-title-end + +.. sysconf-title-begin +.. sysconf-title-end \ No newline at end of file diff --git a/doc/source/admintasks/index.rst b/doc/source/admintasks/index.rst index 94db8ce5a..aefe9638b 100644 --- a/doc/source/admintasks/index.rst +++ b/doc/source/admintasks/index.rst @@ -1,11 +1,16 @@ -.. Admin tasks file, created by - sphinx-quickstart on Thu Sep 3 15:14:59 2020. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. +.. _admin-tasks-title: -=========== -Admin Tasks -=========== +.. only: starlingx + + =========== + Admin Tasks + =========== + +.. only:: partner + + ..include:: /_includes/title-overrides.rest + :start-after: admin-title-begin + :end-before: admin-title-end -------------------- StarlingX Kubernetes diff --git a/doc/source/dist_cloud/index.rst b/doc/source/dist_cloud/index.rst index 15e18bee9..13e856e09 100644 --- a/doc/source/dist_cloud/index.rst +++ b/doc/source/dist_cloud/index.rst @@ -1,6 +1,17 @@ -================= -Distributed Cloud -================= +.. _dist-cloud-index: + +.. only:: starlingx + + ================= + Distributed Cloud + ================= + +.. only:: partner + + ..include:: /_includes/title-overrides.rest + :start-after: dc-title-begin + :end-before: dc-title-end + ------------ Introduction diff --git a/doc/source/system_configuration/index.rst b/doc/source/system_configuration/index.rst index 48f65c4d8..66a845d29 100644 --- a/doc/source/system_configuration/index.rst +++ b/doc/source/system_configuration/index.rst @@ -1,8 +1,17 @@ .. _sysconf_main_index: -==================== -System Configuration -==================== +.. only:: starlingx + + ==================== + System Configuration + ==================== + +.. only:: partner + + ..include:: /_includes/title-overrides.rest + :start-after: sysconf-title-begin + :end-before: sysconf-title-end + -------------------- StarlingX Kubernetes