Compare commits

...

19 Commits

Author SHA1 Message Date
e06e27d0e0 add PLAS title
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-02-21 08:41:44 +00:00
148e88184e change Cloud Container Service to Engine
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-02-21 07:21:58 +00:00
dd76d849f0 disabling visibility of ddm and cci services
Reviewed-by: vladimirhasko <vladimirhasko@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-15 23:29:42 +00:00
8d34f223e9 adding cci service metadata
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-14 10:06:15 +00:00
2e4ab3ec77 adding metadata for new repository
Reviewed-by: vladimirhasko <vladimirhasko@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-14 00:32:53 +00:00
3fc3610cb5 added new ddm service, obs pfs document, modelarts sdk document metadata
Reviewed-by: Kvrivishvili, Iustina <iustina.kvrivishvili@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-10 10:23:12 +00:00
83b42c8053 adding swift metadata
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-02-01 07:41:04 +00:00
eb996cfbfc Replacing shutil copytree by dirsync
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-30 07:52:19 +00:00
ccd8ac5fcb adding link for dws tool guide
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-23 12:44:02 +00:00
c5b22fe720 fixing natgw old hc location
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-23 11:40:48 +00:00
9c7a933e0c smg fix
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-19 18:55:13 +00:00
d04569f7ca Secure Mail Gateway addon
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-19 13:55:53 +00:00
aa1dccf219 include public images in ims docs
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-19 08:52:02 +00:00
78e982b20c removing DAS service
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-18 17:22:20 +00:00
6c4bcbd6db removing cdn from metadata
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-18 16:00:18 +00:00
e380347dd0 adding mycredential document metadata
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-18 13:46:31 +00:00
b02b97f5c3 added new documentation entry
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2023-01-13 15:06:35 +00:00
07b3c97d7d Update tox template
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-09 08:27:08 +00:00
641ec7ddd2 update gitcontrol repo template
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2023-01-03 09:17:55 +00:00
7 changed files with 150 additions and 48 deletions

File diff suppressed because it is too large Load Diff

View File

@ -104,6 +104,9 @@ html_title = "{{ title }}"
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = ['_static']
# Do not include sources into the rendered results
html_copy_source = False
# -- Options for PDF output -------------------------------------------------- # -- Options for PDF output --------------------------------------------------
latex_documents = [ latex_documents = [
{%- if pdf_name is defined %} {%- if pdf_name is defined %}

View File

@ -21,8 +21,14 @@ deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
commands = {posargs} commands = {posargs}
# This env is invoked in the periodic pipeline and is therefore responsible to
# build all relevant docs at once.
[testenv:docs] [testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt deps = -r{toxinidir}/doc/requirements.txt
allowlist_externals =
mkdir
cp
sh
commands = commands =
{%- for doc in docs %} {%- for doc in docs %}
{[testenv:{{ doc.type }}]commands} {[testenv:{{ doc.type }}]commands}
@ -32,7 +38,11 @@ commands =
[testenv:docs-pdf] [testenv:docs-pdf]
deps = -r{toxinidir}/doc/requirements.txt deps = -r{toxinidir}/doc/requirements.txt
allowlist_externals = allowlist_externals =
rm
mkdir mkdir
make
bash
cp
commands = commands =
mkdir -p doc/build/pdf mkdir -p doc/build/pdf
{%- for doc in docs %} {%- for doc in docs %}
@ -68,11 +78,12 @@ deps = -r{toxinidir}/doc/requirements.txt
allowlist_externals = allowlist_externals =
cp cp
mkdir mkdir
find sh
commands = commands =
sphinx-build -W --keep-going -b json {{ loc }}/source doc/build/json/{{ doc.type }} sphinx-build -W --keep-going -b json {{ loc }}/source doc/build/json/{{ doc.type }}
# Drop data useless for the search # Drop data useless for the search - wrap it also with sh/xargs due to bugs
find doc/build/json -type d -and ( -name '_images' -or -name '_static' -or -name '_sources' ) -exec rm {:} ; # in tox
sh -c "find doc/build/json -type d -and '(' -name '_images' -or -name '_static' -or -name '_sources' ')' -print0 | xargs -0 rm -rf"
{%- if doc.type == 'api-ref' %} {%- if doc.type == 'api-ref' %}
mkdir -p api-ref/build/json mkdir -p api-ref/build/json
cp -av doc/build/json/api-ref api-ref/build/json cp -av doc/build/json/api-ref api-ref/build/json

View File

@ -1,2 +1,5 @@
GitPython GitPython
ruamel ruamel.yaml
requests
jinja2
dirsync

View File

@ -201,7 +201,7 @@ def process_repositories(args, service):
repo_to.git.push(*push_args) repo_to.git.push(*push_args)
if "github" in url_to: if "github" in url_to:
subprocess.run( subprocess.run(
args=["gh", "pr", "create", "-f"], cwd=copy_to, check=True args=["gh", "pr", "create", "-f"], cwd=copy_to, check=False
) )
elif "gitea" in url_to and args.token: elif "gitea" in url_to and args.token:
open_pr( open_pr(

View File

@ -46,7 +46,7 @@ def process_services(args, services):
has_wiki=False, has_wiki=False,
default_delete_branch_after_merge=True, default_delete_branch_after_merge=True,
allow_merge_commit=False, allow_merge_commit=False,
allow_squash_merge=False, allow_squash_merge=True,
allow_rebase_merge=False, allow_rebase_merge=False,
default_merge_style="squash", default_merge_style="squash",
branch_protections=[], branch_protections=[],

View File

@ -18,9 +18,9 @@ import argparse
import logging import logging
import os import os
import pathlib import pathlib
import shutil
import subprocess import subprocess
import warnings import warnings
from dirsync import sync
from git import Repo from git import Repo
from git import SymbolicReference from git import SymbolicReference
@ -111,13 +111,21 @@ def process_repositories(args, service):
new_branch.set_tracking_branch(remote_ref) new_branch.set_tracking_branch(remote_ref)
new_branch.checkout() new_branch.checkout()
shutil.copytree( source_path = pathlib.Path(copy_from, doc["rst_location"])
pathlib.Path(copy_from, doc["rst_location"]), target_path = pathlib.Path(copy_to, doc["rst_location"])
pathlib.Path(copy_to, doc["rst_location"]), sync(
ignore=lambda a, b: ["conf.py"], source_path,
dirs_exist_ok=True, target_path,
'sync',
purge=True,
create=True,
content=True,
ignore=['conf.py']
) )
repo_to.index.add([doc["rst_location"]]) repo_to.index.add([doc["rst_location"]])
for obj in repo_to.index.diff(None).iter_change_type('D'):
repo_to.index.remove([obj.b_path])
if len(repo_to.index.diff("HEAD")) == 0: if len(repo_to.index.diff("HEAD")) == 0:
# Nothing to commit # Nothing to commit
logging.debug("No changes.") logging.debug("No changes.")