Compare commits

..

1 Commits

Author SHA1 Message Date
4236619c49 Auto copy PDFs to HTML folder for Zuul to upload
All checks were successful
gl/check check status: success (4236619c49592e08dd0eac126be857a7a644b3b8)
gl/gate gate status: success (4236619c49592e08dd0eac126be857a7a644b3b8)
2025-02-07 10:03:10 +00:00
4 changed files with 2 additions and 42 deletions

View File

@ -1,11 +0,0 @@
---
hc_location: api/das
environment: internal
html_location: docs/das/api-ref
link: /data-admin-service/api-ref/
pdf_enabled: true
pdf_environment: internal
rst_location: api-ref/source
service_type: das
title: API Reference
type: api-ref

View File

@ -1,11 +0,0 @@
---
hc_location: usermanual/das
environment: internal
html_location: docs/das/umn
link: /data-admin-service/umn/
pdf_enabled: true
pdf_environment: internal
rst_location: umn/source
service_type: das
title: User Guide
type: umn

View File

@ -1,16 +0,0 @@
---
environment: internal
repositories:
- environment: internal
repo: docs/data-admin-service
type: gitea
- environment: public
repo: opentelekomcloud-docs/data-admin-service
type: github
service_category: database
service_title: Data Admin Service
service_type: das
service_uri: data-admin-service
teams:
- name: docs-database-rw
permission: write

View File

@ -3,10 +3,8 @@ minversion = 3.1
envlist = py39,pep8 envlist = py39,pep8
skipsdist = True skipsdist = True
ignore_basepython_conflict = True ignore_basepython_conflict = True
basepython = python3.11
[testenv] [testenv]
basepython = python3.11
usedevelop = True usedevelop = True
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
deps = deps =
@ -125,9 +123,9 @@ commands =
rm -rf {{ loc }}/build/pdf rm -rf {{ loc }}/build/pdf
cp -r {toxinidir}/_templates {{ loc }}/source/_templates/ cp -r {toxinidir}/_templates {{ loc }}/source/_templates/
sphinx-build -W --keep-going -b latex {{ loc }}/source {{ loc }}/build/pdf/ sphinx-build -W --keep-going -b latex {{ loc }}/source {{ loc }}/build/pdf/
bash -c "for f in {{ loc }}/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true" bash -c "for f in {{ loc }}/build/pdf/*.gif; do convert $f $\{f/%gif/png\}; done || true"
bash -c "for f in {{ loc }}/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done" bash -c "for f in {{ loc }}/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
make -C {{ loc }}/build/pdf LATEXMKOPTS="-interaction=nonstopmode" make -C {{ loc }}/build/pdf
mkdir -p doc/build/pdf mkdir -p doc/build/pdf
cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/pdf/ cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/pdf/
cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/html/ cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/html/