update content

Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem argoncha <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem argoncha <artem.goncharov@t-systems.com>
This commit is contained in:
Goncharov, Artem argoncha 2022-07-22 16:48:17 +00:00 committed by zuul
parent 1b6b764aad
commit 0dc7a4870b
31 changed files with 403 additions and 220 deletions

27
.gitignore vendored
View File

@ -1 +1,26 @@
doc/build/** _build/
/AUTHORS
/ChangeLog
/dist/
/otcdocstheme.egg-info/
.DS_Store
*.pyc
doc/build
doc/source/BBresult
api-ref/build
.tox
/.venv
*.swp
*.log
*.egg*
# Editors
*~
# Files created by releasenotes build
releasenotes/build
# Files created by the LaTeX/PDF build
/.aux
/.fdb_latexmk
/texput.fls

32
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,32 @@
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 9136088a246768144165fcc3ecc3d31bb686920a # v3.3.0
hooks:
- id: trailing-whitespace
# Replaces or checks mixed line ending
- id: mixed-line-ending
args: ['--fix', 'lf']
exclude: '.*\.(svg)$'
# Forbid files which have a UTF-8 byte-order marker
- id: check-byte-order-marker
# Checks that non-binary executables have a proper shebang
- id: check-executables-have-shebangs
# Check for files that contain merge conflict strings.
- id: check-merge-conflict
# Check for debugger imports and py37+ breakpoint()
# calls in python source
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: local
hooks:
- id: flake8
name: flake8
additional_dependencies:
- hacking>=3.0.1,<3.1.0
language: python
entry: flake8
files: '^.*\.py$'
exclude: '^(doc|releasenotes|tools)/.*$'

View File

@ -7,6 +7,6 @@
# Put them in here will make it clear that those are only needed for # Put them in here will make it clear that those are only needed for
# docs. # docs.
sphinx==4.0.0 sphinx>=4.0.0
otcdocstheme otcdocstheme
reno>=3.1.0 # Apache-2.0 reno>=3.1.0 # Apache-2.0

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
<svg id="Telekom_Logo" data-name="Telekom Logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 840 1000">
<defs>
<style>
.cls-1 {
fill: #e20074;
}
</style>
</defs>
<path class="cls-1" d="M200,660H0V460h200V660z M0,0v340h60v-10c0-160,90-260,260-260h10v720c0,100-40,140-140,140h-30v70h520v-70h-30c-100,0-140-40-140-140V70h10c170,0,260,100,260,260v10h60V0H0z M640,660h200V460H640V660z"/>
</svg>

After

Width:  |  Height:  |  Size: 427 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,5 +1,5 @@
API REST API
=== ========
.. navigator:: .. navigator::
:class: navigator-container :class: navigator-container

7
doc/source/app.rst Normal file
View File

@ -0,0 +1,7 @@
Application
===========
.. service_group::
:class: service-group
:data: services.yaml
:category: application_services

View File

@ -1,5 +1,5 @@
Compute Services Compute
================ =======
.. service_group:: .. service_group::
:class: service-group :class: service-group

View File

@ -20,6 +20,7 @@ extensions = [
# openstackdocstheme options # openstackdocstheme options
otcdocs_repo_name = 'docs/docsportal' otcdocs_repo_name = 'docs/docsportal'
site_name = "Internal HelpCenter"
# The suffix of source filenames. # The suffix of source filenames.
source_suffix = '.rst' source_suffix = '.rst'
@ -58,6 +59,7 @@ html_favicon = '_static/favicon.ico'
html_theme_options = { html_theme_options = {
'show_other_versions': False, 'show_other_versions': False,
'sidebar_mode': 'toctree', 'sidebar_mode': 'toctree',
'site_name': 'Internal HelpCenter',
} }
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
@ -86,5 +88,5 @@ latex_documents = [
# -- Intersphinx # -- Intersphinx
intersphinx_mapping = { intersphinx_mapping = {
# 'otce': ('https://docs.otc-service.com/python-otcextensions', None) 'security': ('https://docs-beta.otc.t-systems.com/security', None)
} }

View File

@ -0,0 +1,7 @@
Data Analysis
=============
.. service_group::
:class: service-group
:data: services.yaml
:category: data_analysis

7
doc/source/database.rst Normal file
View File

@ -0,0 +1,7 @@
Database
========
.. service_group::
:class: service-group
:data: services.yaml
:category: database

View File

@ -9,3 +9,4 @@ Developer
sdk sdk
iac iac
drivers drivers
Blueprints <https://docs-beta.otc.t-systems.com/blueprints>

View File

@ -1,19 +1,22 @@
Drivers and Tools Drivers and Tools
================= =================
.. container:: navigator-container .. container:: row row-cols-1 row-cols-md-3 g-4
.. container_item:: .. container_item::
:title: CLI :title: CLI
:image: _static/images/openstack-logo-vert.png
- openstack-logo-vert: OpenStack Client|https://docs.openstack.org/python-openstackclient/ - OpenStack Client|https://docs.openstack.org/python-openstackclient/
.. container_item:: .. container_item::
:title: Docker :title: Docker
:image: _static/images/docker.svg
- docker: Docker Machine Driver|https://github.com/opentelekomcloud/docker-machine-opentelekomcloud - Docker Machine Driver|https://github.com/opentelekomcloud/docker-machine-opentelekomcloud
.. container_item:: .. container_item::
:title: Rancher :title: Rancher
:image: _static/images/rancher.svg
- rancher: Rancher CCE Driver|https://github.com/opentelekomcloud/kontainer-engine-driver-otc - Rancher CCE Driver|https://github.com/opentelekomcloud/kontainer-engine-driver-otc

View File

@ -1,14 +1,16 @@
Infrastructure As a Code Infrastructure As a Code
======================== ========================
.. container:: navigator-container .. container:: row row-cols-1 row-cols-md-3 g-4
.. container_item:: .. container_item::
:title: Ansible :title: Ansible
:image: _static/images/ansible.svg
- ansible: Ansible Collection|https://docs.otc-service.com/ansible-collection-cloud - Ansible Collection|https://docs.otc-service.com/ansible-collection-cloud
.. container_item:: .. container_item::
:title: Terraform :title: Terraform
:image: _static/images/terraform.svg
- terraform: Open Telekom Cloud Provider|https://registry.terraform.io/providers/opentelekomcloud/opentelekomcloud/latest/docs - Open Telekom Cloud Provider|https://registry.terraform.io/providers/opentelekomcloud/opentelekomcloud/latest/docs

View File

@ -1,6 +1,6 @@
================================ ========================================
Open Telekom Cloud DevOps Portal Open Telekom Cloud Service Documentation
================================ ========================================
.. navigator:: .. navigator::
:class: navigator-container :class: navigator-container
@ -13,4 +13,3 @@ Open Telekom Cloud DevOps Portal
services services
developer developer
links links

View File

@ -4,5 +4,6 @@ Quick Links
.. toctree:: .. toctree::
Console <https://console.otc.t-systems.com> Console <https://console.otc.t-systems.com>
Health Dashboard <https://docs.otc.t-systems.com/sd/index.html> Health Dashboard <https://status.otc-service.com>
Enterprise Dashboard <https://docs.otc.t-systems.com/ed/index.html> Enterprise Dashboard <https://enterprise-dashboard.otc-service.com>
Security advisory <security/index>

7
doc/source/md.rst Normal file
View File

@ -0,0 +1,7 @@
Management and Deployment
=========================
.. service_group::
:class: service-group
:data: services.yaml
:category: md

7
doc/source/network.rst Normal file
View File

@ -0,0 +1,7 @@
Network
=======
.. service_group::
:class: service-group
:data: services.yaml
:category: network

View File

@ -1,20 +1,23 @@
SDK SDK
=== ===
.. container:: navigator-container .. container:: row row-cols-1 row-cols-md-3 g-4
.. container_item:: .. container_item::
:title: Python :title: Python
:image: _static/images/python.svg
- python: OTC Extensions|https://docs.otc-service.com/python-otcextensions - OTC Extensions|https://docs.otc-service.com/python-otcextensions
.. container_item:: .. container_item::
:title: Golang :title: Golang
:image: _static/images/golang.svg
- golang: Golang SDK|https://github.com/opentelekomcloud/gophertelekomcloud/ - Golang SDK|https://github.com/opentelekomcloud/gophertelekomcloud/
.. container_item:: .. container_item::
:title: JavaScript :title: JavaScript
:image: _static/images/javascript.svg
- javascript: JavaScript SDK|https://github.com/opentelekomcloud/oms/ - JavaScript SDK|https://github.com/opentelekomcloud/oms/

7
doc/source/security.rst Normal file
View File

@ -0,0 +1,7 @@
Security
========
.. service_group::
:class: service-group
:data: services.yaml
:category: security

View File

@ -0,0 +1,6 @@
Security Advisory
=================
This content will never be shown on real deployment, since we only need a
redirect to /security, which will be processed by the reverse proxy and serve
corresponding content.

View File

@ -4,3 +4,10 @@ Services
.. toctree:: .. toctree::
compute compute
network
storage
md
security
app
database
data_analysis

File diff suppressed because it is too large Load Diff

7
doc/source/storage.rst Normal file
View File

@ -0,0 +1,7 @@
Storage
=======
.. service_group::
:class: service-group
:data: services.yaml
:category: storage

View File

@ -1,13 +0,0 @@
{% if page_source_suffix %}{# an input file was read #}
<!-- SOURCE_FILE: {% if giturl %}{{giturl}}/{% endif %}{{pagename}}{{page_source_suffix}} -->
{% else %}{# a template was rendered directly #}
<!-- TEMPLATE_NAME: {{pagename}} -->
{% endif %}
<scale-app-shell
id="app-shell"
claim-lang="en"
logo-title="PAGENAME"
logo-href="/"
>

View File

@ -13,27 +13,26 @@
{%- block relbar1 %}{% endblock %} {%- block relbar1 %}{% endblock %}
{%- block content %} {%- block content %}
<div class="container docs-book-wrapper"> <div class="container-xxl my-md-4 docs-book-wrapper">
<div class="row"> {% include 'sidebartoc.html' %}
<div class="col-lg-9 col-md-8 col-sm-8 col-lg-push-3 col-md-push-4 col-sm-push-4"> <div id="content-row" class="row">
<div class="row"> <main id="docs-main" class="docs-main col-12 col-xl-11" role="main">
<div class="col-lg-12"> <div id="docs-content" class="docs-content ps-lg-4">
<div class="docs-body" role="main"> {% block body %}{% endblock %}
{% block body %}{% endblock %}
</div>
</div>
</div>
</div> </div>
{% include 'sidebartoc.html' %} </main>
</div> </div>
</div> </div>
{%- endblock %} {%- endblock %}
{%- block relbar2 %}{% endblock %} {%- block relbar2 %}{% endblock %}
{%- block footer %} {%- block footer %}
{% include 'footer.html' %} {% include 'footer.html' %}
{% include 'script_footer.html' %} {% include 'script_footer.html' %}
{% block script_footer %}{% endblock %} {% block script_footer %}{% endblock %}
{%- endblock %} {%- endblock %}
</div> </div>

View File

@ -1,15 +1,15 @@
<div class="col-lg-3 col-md-4 col-sm-4 col-lg-pull-9 col-md-pull-8 col-sm-pull-8 docs-sidebar"> <aside id="left-sidebar" class="docs-sidebar">
<div class="docs-sidebar-toc"> <div class="docs-sidebar-toc collapse" aria-label="Docs navigation" id="docs-sidebar-nav">
{%- if theme_display_global_toc_section %} {%- if theme_display_global_toc_section %}
<div class="docs-sidebar-section" id="table-of-contents"> <div class="docs-sidebar-section" id="table-of-contents">
<a href="{{ pathto(master_doc) }}" <a href="{{ pathto(master_doc) }}" class="docs-sidebar-section-title"><h4>Open Telekom Cloud Documentation</h4></a>
class="docs-sidebar-section-title"><h4>Open Telekom Cloud Documentation</h4></a> {%- if theme_sidebar_mode == 'toc' %}
{%- if theme_sidebar_mode == 'toc' %} {{ toc }}
{{ toc }} {%- elif theme_sidebar_mode == 'toctree' %}
{%- elif theme_sidebar_mode == 'toctree' %} {{ toctree(maxdepth=2,includehidden=True, collapse=False) }}
{{ toctree(maxdepth=2, includehidden=True, collapse=False) }} {%- endif %}
{%- endif %}
</div>
{%- endif %}
</div> </div>
{%- endif %}
</div> </div>
</aside>

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = docsportal name = docsportal
summary = OpenTelekomCloud Docs portal summary = OpenTelekomCloud Internal Docs portal
author = Artem Goncharov author = Artem Goncharov
author_email = artem.goncharov@gmail.com author_email = artem.goncharov@gmail.com
home_page = https://cloud.otc.com home_page = https://cloud.otc.com
@ -19,4 +19,3 @@ classifier =
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.8
Topic :: Documentation Topic :: Documentation