Compare commits
12 Commits
enable_pdf
...
fix_python
Author | SHA1 | Date | |
---|---|---|---|
e4bcb28024 | |||
f9c18fb99e | |||
1063bffd55 | |||
25a089107c | |||
a866e9829d | |||
0a53ed9072 | |||
f26e1f24ca | |||
1d365ecc8c | |||
1529742878 | |||
381a4e329b | |||
cd0363de2e | |||
ef298eb9a3 |
@ -3,6 +3,7 @@ hc_location: api/antiddos
|
||||
html_location: docs/antiddos/api-ref
|
||||
link: /anti-ddos/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: antiddos
|
||||
title: API Reference
|
||||
|
@ -3,6 +3,7 @@ hc_location: usermanual/antiddos
|
||||
html_location: docs/antiddos/umn
|
||||
link: /anti-ddos/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: antiddos
|
||||
title: User Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: api/aom
|
||||
html_location: docs/aom/api-ref
|
||||
link: /application-operations-management/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: aom
|
||||
title: API Reference
|
||||
|
@ -3,6 +3,7 @@ hc_location: usermanual/aom
|
||||
html_location: docs/aom/umn
|
||||
link: /application-operations-management/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: aom
|
||||
title: User Guide
|
||||
|
@ -4,6 +4,7 @@ hc_location: api/aom2
|
||||
html_location: docs/aom2/api-ref
|
||||
link: /application-operations-management-2/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: aom2
|
||||
title: API Reference
|
||||
|
@ -4,6 +4,7 @@ hc_location: usermanual/aom2
|
||||
html_location: docs/aom2/umn
|
||||
link: /application-operations-management-2/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: aom2
|
||||
title: User Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: api/apig
|
||||
html_location: docs/apig/api-ref
|
||||
link: /api-gateway/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: apig
|
||||
title: API Reference
|
||||
|
@ -4,6 +4,7 @@ hc_location: devg/apig
|
||||
html_location: docs/apig/dev
|
||||
link: /api-gateway/dev-guide/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: dev_guide/source
|
||||
service_type: apig
|
||||
title: Developer Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: usermanual/apig
|
||||
html_location: docs/apig/umn
|
||||
link: /api-gateway/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: apig
|
||||
title: User Guide
|
||||
|
@ -4,6 +4,7 @@ hc_location: api-usage/guidelines
|
||||
html_location: docs/apiu/guidelines
|
||||
link: /api-usage/guidelines/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: doc/guidelines/source
|
||||
service_type: apiu
|
||||
title: API Usage Guidelines
|
||||
|
@ -4,6 +4,7 @@ hc_location: api/apm
|
||||
html_location: docs/apm/api-ref
|
||||
link: /application-performance-management/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: apm
|
||||
title: API Reference
|
||||
|
@ -4,6 +4,7 @@ hc_location: usermanual/apm
|
||||
html_location: docs/apm/umn
|
||||
link: /application-performance-management/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: apm
|
||||
title: User Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: api/as
|
||||
html_location: docs/as/api-ref
|
||||
link: /auto-scaling/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: as
|
||||
title: API Reference
|
||||
|
@ -3,6 +3,7 @@ hc_location: devg/as
|
||||
html_location: docs/as/dev
|
||||
link: /auto-scaling/dev-guide/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: dev_guide/source
|
||||
service_type: as
|
||||
title: Developer Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: usermanual/as
|
||||
html_location: docs/as/umn
|
||||
link: /auto-scaling/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: as
|
||||
title: User Guide
|
||||
|
@ -4,6 +4,7 @@ hc_location: api/asm
|
||||
html_location: docs/asm/api-ref
|
||||
link: /application-service-mesh/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: asm
|
||||
title: API Reference
|
||||
|
@ -4,6 +4,7 @@ environment: internal
|
||||
html_location: docs/asm/best-practice
|
||||
link: /application-service-mesh/best-practice/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: doc/best-practice/source
|
||||
service_type: asm
|
||||
title: Best Practice
|
||||
|
@ -4,6 +4,7 @@ hc_location: usermanual/asm
|
||||
html_location: docs/asm/umn
|
||||
link: /application-service-mesh/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: asm
|
||||
title: User Guide
|
||||
|
@ -2,6 +2,7 @@
|
||||
link: /business-dashboard/umn/
|
||||
rst_location: umn/source
|
||||
pdf_enabled: false
|
||||
pdf_environment: hidden
|
||||
service_type: bd
|
||||
title: User Guide
|
||||
type: umn
|
||||
|
@ -3,6 +3,7 @@ hc_location: api/bms
|
||||
html_location: docs/bms/api-ref
|
||||
link: /bare-metal-server/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: bms
|
||||
title: API Reference
|
||||
|
@ -3,6 +3,7 @@ hc_location: devg/bms
|
||||
html_location: docs/bms/dev
|
||||
link: /bare-metal-server/dev-guide/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: dev_guide/source
|
||||
service_type: bms
|
||||
title: Developer Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: bpicg/bms
|
||||
html_location: docs/bms/image-creation-guide
|
||||
link: /bare-metal-server/image-creation-guide/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: doc/image-creation-guide/source
|
||||
service_type: bms
|
||||
title: Private Image Creation Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: usermanual/bms
|
||||
html_location: docs/bms/umn
|
||||
link: /bare-metal-server/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: bms
|
||||
title: User Guide
|
||||
|
@ -3,6 +3,7 @@ hc_location: api/cbr
|
||||
html_location: docs/cbr/api-ref
|
||||
link: /cloud-backup-recovery/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: cbr
|
||||
title: API Reference
|
||||
|
@ -4,6 +4,7 @@ environment: internal
|
||||
html_location: docs/cbr/best-practice
|
||||
link: /cloud-backup-recovery/best-practice/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: doc/best-practice/source
|
||||
service_type: cbr
|
||||
title: Best Practice
|
||||
|
@ -3,6 +3,7 @@ hc_location: usermanual/cbr
|
||||
html_location: docs/cbr/umn
|
||||
link: /cloud-backup-recovery/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: cbr
|
||||
title: User Guide
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
link: /cloud-create/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: cc
|
||||
title: API Reference
|
||||
|
@ -2,6 +2,7 @@
|
||||
html_location: docs/cc/umn
|
||||
link: /cloud-create/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: cc
|
||||
title: User Guide
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: api2/cce
|
||||
html_location: docs/cce/api-ref
|
||||
link: /cloud-container-engine/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: cce
|
||||
|
@ -3,7 +3,7 @@ hc_location: bestpractice/cce
|
||||
environment: internal
|
||||
html_location: docs/cce/best-practice
|
||||
link: /cloud-container-engine/best-practice/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: doc/best-practice/source
|
||||
service_type: cce
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: usermanual2/cce
|
||||
html_location: docs/cce/umn
|
||||
link: /cloud-container-engine/umn/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: cce
|
||||
|
11
otc_metadata/data/documents/ccn-api-ref.yaml
Normal file
11
otc_metadata/data/documents/ccn-api-ref.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: api/cc
|
||||
html_location: docs/ccn/api-ref
|
||||
link: /cloud-connect/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: ccn
|
||||
title: API Reference
|
||||
type: api-ref
|
11
otc_metadata/data/documents/ccn-umn.yaml
Normal file
11
otc_metadata/data/documents/ccn-umn.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: usermanual/cc
|
||||
html_location: docs/ccn/umn
|
||||
link: /cloud-connect/umn/
|
||||
pdf_enabled: true
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: ccn
|
||||
title: User Guide
|
||||
type: umn
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: api/cfw
|
||||
html_location: docs/cfw/api-ref
|
||||
link: /cloud-firewall/api-ref/
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: usermanual/cfw
|
||||
html_location: docs/cfw/umn
|
||||
link: /cloud-firewall/umn/
|
||||
|
11
otc_metadata/data/documents/das-api-ref.yaml
Normal file
11
otc_metadata/data/documents/das-api-ref.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
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
|
11
otc_metadata/data/documents/das-umn.yaml
Normal file
11
otc_metadata/data/documents/das-umn.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
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
|
@ -2,7 +2,7 @@
|
||||
hc_location: api/evs
|
||||
html_location: docs/evs/api-ref
|
||||
link: /elastic-volume-service/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: evs
|
||||
|
@ -3,7 +3,7 @@ hc_location: bestpractice/evs
|
||||
environment: internal
|
||||
html_location: docs/evs/best-practice
|
||||
link: /elastic-volume-service/best-practice/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: doc/best-practice/source
|
||||
service_type: evs
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: devg/evs
|
||||
html_location: docs/evs/dev
|
||||
link: /elastic-volume-service/dev-guide/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: dev_guide/source
|
||||
service_type: evs
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: usermanual/evs
|
||||
html_location: docs/evs/umn
|
||||
link: /elastic-volume-service/umn/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: evs
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: api/mrs
|
||||
html_location: docs/mrs/api-ref
|
||||
link: /mapreduce-service/api-ref/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: api-ref/source
|
||||
service_type: mrs
|
||||
|
@ -3,7 +3,7 @@ hc_location: bestpractice/mrs
|
||||
environment: internal
|
||||
html_location: docs/mrs/best-practice
|
||||
link: /mapreduce-service/best-practice/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: doc/best-practice/source
|
||||
service_type: mrs
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: cmpntguide-lts/mrs
|
||||
html_location: docs/mrs/component-operation-guide-lts
|
||||
link: /mapreduce-service/operation-guide-lts/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: doc/component-operation-guide-lts/source
|
||||
service_type: mrs
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: cmpntguide/mrs
|
||||
html_location: docs/mrs/component-operation-guide
|
||||
link: /mapreduce-service/operation-guide/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: doc/component-operation-guide/source
|
||||
service_type: mrs
|
||||
|
@ -2,7 +2,7 @@
|
||||
hc_location: usermanual/mrs
|
||||
html_location: docs/mrs/umn
|
||||
link: /mapreduce-service/umn/
|
||||
pdf_enabled: true
|
||||
pdf_enabled: false
|
||||
pdf_environment: internal
|
||||
rst_location: umn/source
|
||||
service_type: mrs
|
||||
|
16
otc_metadata/data/services/ccn.yaml
Normal file
16
otc_metadata/data/services/ccn.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
environment: internal
|
||||
repositories:
|
||||
- environment: internal
|
||||
repo: docs/cloud-connect
|
||||
type: gitea
|
||||
- environment: public
|
||||
repo: opentelekomcloud-docs/cloud-connect
|
||||
type: github
|
||||
service_category: network
|
||||
service_title: Cloud Connect
|
||||
service_type: ccn
|
||||
service_uri: cloud-connect
|
||||
teams:
|
||||
- name: docs-network-rw
|
||||
permission: write
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
environment: internal
|
||||
environment: public
|
||||
repositories:
|
||||
- environment: internal
|
||||
repo: docs/cloud-firewall
|
||||
|
16
otc_metadata/data/services/das.yaml
Normal file
16
otc_metadata/data/services/das.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
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
|
@ -3,8 +3,10 @@ minversion = 3.1
|
||||
envlist = py39,pep8
|
||||
skipsdist = True
|
||||
ignore_basepython_conflict = True
|
||||
basepython = python3.11
|
||||
|
||||
[testenv]
|
||||
basepython = python3.11
|
||||
usedevelop = True
|
||||
install_command = pip install {opts} {packages}
|
||||
deps =
|
||||
@ -44,6 +46,7 @@ commands =
|
||||
{[testenv:json-{{ doc.type }}]commands}
|
||||
{%- endfor %}
|
||||
|
||||
{% if docs|length > 0 %}
|
||||
[testenv:pdf-docs]
|
||||
deps =
|
||||
{[testenv:docs]deps}
|
||||
@ -57,6 +60,7 @@ allowlist_externals =
|
||||
cp
|
||||
commands =
|
||||
mkdir -p doc/build/pdf
|
||||
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
|
||||
@ -67,6 +71,7 @@ commands =
|
||||
{[testenv:{{ doc.type }}-pdf-docs]commands}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for doc in docs -%}
|
||||
{% set loc = doc.rst_location | replace('/source', '') %}
|
||||
@ -107,7 +112,6 @@ commands =
|
||||
cp -av doc/build/json/{{ doc.type }} {{ doc.type }}/build/json
|
||||
{%- endif %}
|
||||
|
||||
{% if doc.pdf_enabled -%}
|
||||
# PDF version
|
||||
[testenv:{{ doc.type }}-pdf-docs]
|
||||
deps = {[testenv:docs]deps}
|
||||
@ -121,12 +125,12 @@ commands =
|
||||
rm -rf {{ loc }}/build/pdf
|
||||
cp -r {toxinidir}/_templates {{ loc }}/source/_templates/
|
||||
sphinx-build -W --keep-going -b latex {{ loc }}/source {{ loc }}/build/pdf/
|
||||
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/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
|
||||
bash -c "for f in {{ loc }}/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
||||
make -C {{ loc }}/build/pdf
|
||||
make -C {{ loc }}/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
|
||||
mkdir -p doc/build/pdf
|
||||
cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/pdf/
|
||||
{% endif %}
|
||||
cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/html/
|
||||
{% endfor %}
|
||||
|
||||
[testenv:bindeps]
|
||||
|
Reference in New Issue
Block a user