Compare commits
	
		
			4 Commits
		
	
	
		
			rms-remove
			...
			zuul-pdf
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6f1361fdec | |||
| 18dab6c658 | |||
| c0a83341f4 | |||
| f9076808e2 | 
@ -1,5 +1,4 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
environment: internal
 | 
					 | 
				
			||||||
link: /price-calculator/api-ref/
 | 
					link: /price-calculator/api-ref/
 | 
				
			||||||
pdf_name: pc-api-ref
 | 
					pdf_name: pc-api-ref
 | 
				
			||||||
rst_location: api-ref/source
 | 
					rst_location: api-ref/source
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
hc_location: api/rms
 | 
					 | 
				
			||||||
html_location: docs/rms/api-ref
 | 
					 | 
				
			||||||
link: /resource-management-service/api-ref/
 | 
					 | 
				
			||||||
pdf_name: rms-api-ref
 | 
					 | 
				
			||||||
rst_location: api-ref/source
 | 
					 | 
				
			||||||
service_type: rms
 | 
					 | 
				
			||||||
title: API Reference
 | 
					 | 
				
			||||||
type: api-ref
 | 
					 | 
				
			||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
hc_location: usermanual/rms
 | 
					 | 
				
			||||||
html_location: docs/rms/umn
 | 
					 | 
				
			||||||
link: /resource-management-service/umn/
 | 
					 | 
				
			||||||
pdf_name: rms-umn
 | 
					 | 
				
			||||||
rst_location: umn/source
 | 
					 | 
				
			||||||
service_type: rms
 | 
					 | 
				
			||||||
title: User Guide
 | 
					 | 
				
			||||||
type: umn
 | 
					 | 
				
			||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
environment: hidden
 | 
					environment: public
 | 
				
			||||||
repositories:
 | 
					repositories:
 | 
				
			||||||
- environment: internal
 | 
					- environment: internal
 | 
				
			||||||
  repo: docs/price-calculator
 | 
					  repo: docs/price-calculator
 | 
				
			||||||
 | 
				
			|||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
environment: public
 | 
					 | 
				
			||||||
repositories:
 | 
					 | 
				
			||||||
- environment: internal
 | 
					 | 
				
			||||||
  repo: docs/resource-management-service
 | 
					 | 
				
			||||||
  type: gitea
 | 
					 | 
				
			||||||
- environment: public
 | 
					 | 
				
			||||||
  repo: opentelekomcloud-docs/resource-management-service
 | 
					 | 
				
			||||||
  type: github
 | 
					 | 
				
			||||||
service_category: md
 | 
					 | 
				
			||||||
service_title: Resource Management Service
 | 
					 | 
				
			||||||
service_type: rms
 | 
					 | 
				
			||||||
service_uri: resource-management-service
 | 
					 | 
				
			||||||
teams:
 | 
					 | 
				
			||||||
- name: docs-orchestration-rw
 | 
					 | 
				
			||||||
  permission: write
 | 
					 | 
				
			||||||
@ -44,7 +44,7 @@ commands =
 | 
				
			|||||||
  {[testenv:json-{{ doc.type }}]commands}
 | 
					  {[testenv:json-{{ doc.type }}]commands}
 | 
				
			||||||
{%- endfor %}
 | 
					{%- endfor %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:docs-pdf]
 | 
					[testenv:pdf-docs]
 | 
				
			||||||
deps =
 | 
					deps =
 | 
				
			||||||
  {[testenv:docs]deps}
 | 
					  {[testenv:docs]deps}
 | 
				
			||||||
  {[testenv:bindeps]deps}
 | 
					  {[testenv:bindeps]deps}
 | 
				
			||||||
 | 
				
			|||||||
@ -4,6 +4,13 @@
 | 
				
			|||||||
    default-branch: main
 | 
					    default-branch: main
 | 
				
			||||||
    templates:
 | 
					    templates:
 | 
				
			||||||
      - helpcenter-base-jobs
 | 
					      - helpcenter-base-jobs
 | 
				
			||||||
 | 
					    vars:
 | 
				
			||||||
 | 
					      sphinx_pdf_files:
 | 
				
			||||||
 | 
					      {%- for doc in docs %}
 | 
				
			||||||
 | 
					      {%- if doc.pdf_enabled %}
 | 
				
			||||||
 | 
					        - {{ service_type }}-{{ doc.type }}.pdf
 | 
				
			||||||
 | 
					      {%- endif %}
 | 
				
			||||||
 | 
					      {%- endfor %}
 | 
				
			||||||
    check:
 | 
					    check:
 | 
				
			||||||
      jobs:
 | 
					      jobs:
 | 
				
			||||||
        - noop
 | 
					        - noop
 | 
				
			||||||
 | 
				
			|||||||
@ -299,6 +299,12 @@ def process_repositories(args, service):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if args.update_zuul:
 | 
					    if args.update_zuul:
 | 
				
			||||||
        """Update zuul.yaml"""
 | 
					        """Update zuul.yaml"""
 | 
				
			||||||
 | 
					        context = dict(docs=[])
 | 
				
			||||||
 | 
					        for doc in service_docs:
 | 
				
			||||||
 | 
					            if doc["type"] == "dev":
 | 
				
			||||||
 | 
					                doc["type"] = "dev-guide"
 | 
				
			||||||
 | 
					            context["docs"].append(doc)
 | 
				
			||||||
 | 
					        context["service_type"] = service['service_type']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        zuul_yaml_content = zuul_yaml_template.render(**context)
 | 
					        zuul_yaml_content = zuul_yaml_template.render(**context)
 | 
				
			||||||
        zuul_yaml_path = pathlib.Path(copy_to, "zuul.yaml")
 | 
					        zuul_yaml_path = pathlib.Path(copy_to, "zuul.yaml")
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user