Skip to content

Propagate changes to web-application-firewall-dedicated-api-ref from PreProd environment - #61

Closed
otcbot[bot] wants to merge 2 commits into
mainfrom
propose-api-ref#136
Closed

otcbot[bot] wants to merge 2 commits into
mainfrom
propose-api-ref#136

Conversation

@otcbot

@otcbot otcbot Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

This is an automatically created Pull Request for changes to web-application-firewall-dedicated-api-ref to promote changes down the pipeline to Production environment.

The original change can be found under https://gitea.eco.tsi-dev.otc-service.com/docs/web-application-firewall-dedicated/pulls/136.

There were patch conflicts, please review original patch file.

@otcbot otcbot Bot added the documentation Improvements or additions to documentation label Oct 25, 2026
@otcbot

otcbot Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

I tried my best, but could not apply the patch as is, therefore I will report you what I could not apply.

BTW, if in the diff you see removed line equal to the added line it may be caused by invisible trailing spaces. This is safe to ignore.

In most cases content of the patch remainder need to be carefully analyzed and necessary changes applied manually.

Following is the patch remainder:

diff a/zuul.yaml b/zuul.yaml	(rejected hunks)
@@ -6,8 +6,8 @@
       - helpcenter-base-jobs
     vars:
       sphinx_pdf_files:
-        - wafd-api-ref.pdf
         - wafd-umn.pdf
+        - wafd-api-ref.pdf
     check:
       jobs:
         - noop
diff a/tox.ini b/tox.ini	(rejected hunks)
@@ -39,10 +39,10 @@ commands =
   rm -rf doc/build/html doc/build/html_temp doc/build/doctrees
   sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html_temp
   sphinx-minify --input-directory doc/build/html_temp/ --output-directory doc/build/html
-  {[testenv:api-ref]commands}
-  {[testenv:json-api-ref]commands}
   {[testenv:umn]commands}
   {[testenv:json-umn]commands}
+  {[testenv:api-ref]commands}
+  {[testenv:json-api-ref]commands}
 
 
 [testenv:pdf-docs]
@@ -61,43 +61,43 @@ commands =
   mkdir -p doc/build/html
   {[testenv:bindeps]commands}
   mkdir -p {toxinidir}/_templates
-  wget -O {toxinidir}/_templates/longtable.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/longtable.tex.jinja
-  wget -O {toxinidir}/_templates/tabular.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabular.tex.jinja
-  wget -O {toxinidir}/_templates/tabulary.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabulary.tex.jinja
-  {[testenv:api-ref-pdf-docs]commands}
+  wget -O {toxinidir}/_templates/longtable.tex.jinja https://raw.githubusercontent.com/opentelekomcloud-infra/docs-templates/refs/heads/main/templates/longtable.tex.jinja
+  wget -O {toxinidir}/_templates/tabular.tex.jinja https://raw.githubusercontent.com/opentelekomcloud-infra/docs-templates/refs/heads/main/templates/tabular.tex.jinja
+  wget -O {toxinidir}/_templates/tabulary.tex.jinja https://raw.githubusercontent.com/opentelekomcloud-infra/docs-templates/refs/heads/main/templates/tabulary.tex.jinja
   {[testenv:umn-pdf-docs]commands}
+  {[testenv:api-ref-pdf-docs]commands}
 
 
 
 # HTML version
-[testenv:api-ref]
+[testenv:umn]
 deps = {[testenv:docs]deps}
 allowlist_externals =
   cp
   mkdir
 commands =
-  sphinx-build -W --keep-going -b html api-ref/source doc/build/html_temp/api-ref
-  sphinx-minify --input-directory doc/build/html_temp/api-ref --output-directory doc/build/html/api-ref
-  mkdir -p api-ref/build/html
-  cp -av doc/build/html/api-ref api-ref/build/html
+  sphinx-build -W --keep-going -b html umn/source doc/build/html_temp/umn
+  sphinx-minify --input-directory doc/build/html_temp/umn --output-directory doc/build/html/umn
+  mkdir -p umn/build/html
+  cp -av doc/build/html/umn umn/build/html
 
 # Json version (for search)
-[testenv:json-api-ref]
+[testenv:json-umn]
 deps = {[testenv:docs]deps}
 allowlist_externals =
   cp
   mkdir
   sh
 commands =
-  sphinx-build -W --keep-going -b json api-ref/source doc/build/json/api-ref
+  sphinx-build -W --keep-going -b json umn/source doc/build/json/umn
   # Drop data useless for the search - wrap it also with sh/xargs due to bugs
   # in tox
   sh -c "find doc/build/json -type d -and '(' -name '_images' -or -name '_static' -or -name '_sources' ')' -print0 | xargs -0 rm -rf"
-  mkdir -p api-ref/build/json
-  cp -av doc/build/json/api-ref api-ref/build/json
+  mkdir -p umn/build/json
+  cp -av doc/build/json/umn umn/build/json
 
 # PDF version
-[testenv:api-ref-pdf-docs]
+[testenv:umn-pdf-docs]
 deps = {[testenv:docs]deps}
 allowlist_externals =
   rm
@@ -106,45 +106,45 @@ allowlist_externals =
   bash
   cp
 commands =
-  rm -rf api-ref/build/pdf
-  cp -r {toxinidir}/_templates api-ref/source/_templates/
-  sphinx-build -W --keep-going -b latex api-ref/source api-ref/build/pdf/
-  bash -c "for f in api-ref/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
-  bash -c "for f in api-ref/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
-  make -C api-ref/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
+  rm -rf umn/build/pdf
+  cp -r {toxinidir}/_templates umn/source/_templates/
+  sphinx-build -W --keep-going -b latex umn/source umn/build/pdf/
+  bash -c "for f in umn/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
+  bash -c "for f in umn/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
+  make -C umn/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
   mkdir -p doc/build/pdf
-  cp api-ref/build/pdf/wafd-api-ref.pdf doc/build/pdf/
-  cp api-ref/build/pdf/wafd-api-ref.pdf doc/build/html/
+  cp umn/build/pdf/wafd-umn.pdf doc/build/pdf/
+  cp umn/build/pdf/wafd-umn.pdf doc/build/html/
 
 # HTML version
-[testenv:umn]
+[testenv:api-ref]
 deps = {[testenv:docs]deps}
 allowlist_externals =
   cp
   mkdir
 commands =
-  sphinx-build -W --keep-going -b html umn/source doc/build/html_temp/umn
-  sphinx-minify --input-directory doc/build/html_temp/umn --output-directory doc/build/html/umn
-  mkdir -p umn/build/html
-  cp -av doc/build/html/umn umn/build/html
+  sphinx-build -W --keep-going -b html api-ref/source doc/build/html_temp/api-ref
+  sphinx-minify --input-directory doc/build/html_temp/api-ref --output-directory doc/build/html/api-ref
+  mkdir -p api-ref/build/html
+  cp -av doc/build/html/api-ref api-ref/build/html
 
 # Json version (for search)
-[testenv:json-umn]
+[testenv:json-api-ref]
 deps = {[testenv:docs]deps}
 allowlist_externals =
   cp
   mkdir
   sh
 commands =
-  sphinx-build -W --keep-going -b json umn/source doc/build/json/umn
+  sphinx-build -W --keep-going -b json api-ref/source doc/build/json/api-ref
   # Drop data useless for the search - wrap it also with sh/xargs due to bugs
   # in tox
   sh -c "find doc/build/json -type d -and '(' -name '_images' -or -name '_static' -or -name '_sources' ')' -print0 | xargs -0 rm -rf"
-  mkdir -p umn/build/json
-  cp -av doc/build/json/umn umn/build/json
+  mkdir -p api-ref/build/json
+  cp -av doc/build/json/api-ref api-ref/build/json
 
 # PDF version
-[testenv:umn-pdf-docs]
+[testenv:api-ref-pdf-docs]
 deps = {[testenv:docs]deps}
 allowlist_externals =
   rm
@@ -153,15 +153,15 @@ allowlist_externals =
   bash
   cp
 commands =
-  rm -rf umn/build/pdf
-  cp -r {toxinidir}/_templates umn/source/_templates/
-  sphinx-build -W --keep-going -b latex umn/source umn/build/pdf/
-  bash -c "for f in umn/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
-  bash -c "for f in umn/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
-  make -C umn/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
+  rm -rf api-ref/build/pdf
+  cp -r {toxinidir}/_templates api-ref/source/_templates/
+  sphinx-build -W --keep-going -b latex api-ref/source api-ref/build/pdf/
+  bash -c "for f in api-ref/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
+  bash -c "for f in api-ref/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
+  make -C api-ref/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
   mkdir -p doc/build/pdf
-  cp umn/build/pdf/wafd-umn.pdf doc/build/pdf/
-  cp umn/build/pdf/wafd-umn.pdf doc/build/html/
+  cp api-ref/build/pdf/wafd-api-ref.pdf doc/build/pdf/
+  cp api-ref/build/pdf/wafd-api-ref.pdf doc/build/html/
 
 
 [testenv:bindeps]
diff a/doc/source/conf.py b/doc/source/conf.py	(rejected hunks)
@@ -27,7 +27,7 @@ extensions = [
 otcdocs_auto_name = False
 otcdocs_auto_version = False
 
-project = 'Dedicated Web Application Firewall'
+project = 'Web Application Firewall'
 otcdocs_repo_name = 'docs/web-application-firewall-dedicated'
 # Those variables are required for edit/bug links
 otcdocs_git_fqdn = 'gitea.eco.tsi-dev.otc-service.com'
@@ -39,7 +39,7 @@ otcdocs_doc_link = ''
 otcdocs_doc_title = ''
 otcdocs_doc_type = ''
 otcdocs_service_category = 'security-services'
-otcdocs_service_title = 'Dedicated Web Application Firewall'
+otcdocs_service_title = 'Web Application Firewall'
 otcdocs_service_type = 'wafd'
 otcdocs_service_environment = 'internal'
 otcdocs_cloud_environment = 'eu_de'
diff a/doc/source/index.rst b/doc/source/index.rst	(rejected hunks)
@@ -10,8 +10,8 @@ Web Application Firewall (WAF) keeps web services stable and secure. It examines
    .. service_card::
       :environment: internal
       :service_type: wafd
-      :umn: This document helps you know about the Web Application Firewall (Dedicated) and guide you on how to use the service.
-      :api-ref: This document describes application programming interfaces (APIs) of the Web Application Firewall (Dedicated) and provides API parameter description and example values.
+      :umn: This document helps you know about the Web Application Firewall and guide you on how to use the service.
+      :api-ref: This document describes application programming interfaces (APIs) of the Web Application Firewall and provides API parameter description and example values.
 
    .. service_card_link::
       :title: Best Practices
diff a/api-ref/source/conf.py b/api-ref/source/conf.py	(rejected hunks)
@@ -26,7 +26,7 @@ extensions = [
 otcdocs_auto_name = False
 otcdocs_auto_version = False
 
-project = 'Dedicated Web Application Firewall'
+project = 'Web Application Firewall'
 otcdocs_repo_name = 'docs/web-application-firewall-dedicated'
 # Those variables are required for edit/bug links
 otcdocs_git_fqdn = 'gitea.eco.tsi-dev.otc-service.com'
@@ -38,7 +38,7 @@ otcdocs_doc_link = '/web-application-firewall-dedicated/api-ref/'
 otcdocs_doc_title = 'API Reference'
 otcdocs_doc_type = 'api-ref'
 otcdocs_service_category = 'security-services'
-otcdocs_service_title = 'Dedicated Web Application Firewall'
+otcdocs_service_title = 'Web Application Firewall'
 otcdocs_service_type = 'wafd'
 otcdocs_service_environment = 'internal'
 otcdocs_cloud_environment = 'eu_de'
diff a/umn/source/conf.py b/umn/source/conf.py	(rejected hunks)
@@ -26,7 +26,7 @@ extensions = [
 otcdocs_auto_name = False
 otcdocs_auto_version = False
 
-project = 'Dedicated Web Application Firewall'
+project = 'Web Application Firewall'
 otcdocs_repo_name = 'docs/web-application-firewall-dedicated'
 # Those variables are required for edit/bug links
 otcdocs_git_fqdn = 'gitea.eco.tsi-dev.otc-service.com'
@@ -38,7 +38,7 @@ otcdocs_doc_link = '/web-application-firewall-dedicated/umn/'
 otcdocs_doc_title = 'User Guide'
 otcdocs_doc_type = 'umn'
 otcdocs_service_category = 'security-services'
-otcdocs_service_title = 'Dedicated Web Application Firewall'
+otcdocs_service_title = 'Web Application Firewall'
 otcdocs_service_type = 'wafd'
 otcdocs_service_environment = 'internal'
 otcdocs_cloud_environment = 'eu_de'

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

📦 PDF Preview-Documentation uploaded to Swift:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants