Compare commits
1 Commits
main
...
propose-rf
Author | SHA1 | Date | |
---|---|---|---|
fcb5a999ac |
24
api-ref/source/conf.py
Executable file → Normal file
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from git import Repo
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme',
|
'otcdocstheme',
|
||||||
@ -106,7 +104,6 @@ html_title = "Resource Formation Service - API Reference"
|
|||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
# 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']
|
||||||
templates_path = ['_templates']
|
|
||||||
|
|
||||||
# Do not include sources into the rendered results
|
# Do not include sources into the rendered results
|
||||||
html_copy_source = False
|
html_copy_source = False
|
||||||
@ -115,25 +112,6 @@ html_copy_source = False
|
|||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index',
|
('index',
|
||||||
'rfs-api-ref.tex',
|
'rfs-api-ref.tex',
|
||||||
u'Resource Formation Service - API Reference',
|
u'Resource Formation Service - API Reference',
|
||||||
u'OpenTelekomCloud', 'manual'),
|
u'OpenTelekomCloud', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Get the Git commit values for last updated timestamp on each page
|
|
||||||
repo = Repo(search_parent_directories=True)
|
|
||||||
commit = repo.head.commit
|
|
||||||
current_commit_hash = commit.hexsha
|
|
||||||
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
|
||||||
|
|
||||||
latex_elements = {
|
|
||||||
'papersize': 'a4paper',
|
|
||||||
'pointsize': '12pt',
|
|
||||||
'figure_align': 'H',
|
|
||||||
'preamble': rf'''
|
|
||||||
\newcommand{{\githash}}{{{current_commit_hash}}}
|
|
||||||
\newcommand{{\gitcommittime}}{{{current_commit_time}}}
|
|
||||||
\newcommand{{\doctitle}}{{{otcdocs_doc_title}}}
|
|
||||||
\newcommand{{\servicetitle}}{{{otcdocs_service_title}}}
|
|
||||||
''',
|
|
||||||
'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm'
|
|
||||||
}
|
|
@ -1,3 +1,4 @@
|
|||||||
==========================================================
|
==========================================
|
||||||
Welcome to the documentation of resource-formation-service
|
Resource Formation Service - API Reference
|
||||||
==========================================================
|
==========================================
|
||||||
|
|
||||||
|
@ -8,5 +8,4 @@ reno>=3.1.0 # Apache-2.0
|
|||||||
otc-sphinx-directives>=0.1.0
|
otc-sphinx-directives>=0.1.0
|
||||||
sphinx-minify>=0.0.1 # Apache-2.0
|
sphinx-minify>=0.0.1 # Apache-2.0
|
||||||
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata
|
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata
|
||||||
setuptools
|
setuptools
|
||||||
gitpython
|
|
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from git import Repo
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme',
|
'otcdocstheme',
|
||||||
@ -107,29 +105,9 @@ html_title = "Resource Formation Service - Service Based View"
|
|||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
# 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']
|
||||||
templates_path = ['_templates']
|
|
||||||
|
|
||||||
# Do not include sources into the rendered results
|
# Do not include sources into the rendered results
|
||||||
html_copy_source = False
|
html_copy_source = False
|
||||||
|
|
||||||
# -- Options for PDF output --------------------------------------------------
|
# -- Options for PDF output --------------------------------------------------
|
||||||
latex_documents = []
|
latex_documents = []
|
||||||
|
|
||||||
# Get the Git commit values for last updated timestamp on each page
|
|
||||||
repo = Repo(search_parent_directories=True)
|
|
||||||
commit = repo.head.commit
|
|
||||||
current_commit_hash = commit.hexsha
|
|
||||||
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
|
||||||
|
|
||||||
latex_elements = {
|
|
||||||
'papersize': 'a4paper',
|
|
||||||
'pointsize': '12pt',
|
|
||||||
'figure_align': 'H',
|
|
||||||
'preamble': rf'''
|
|
||||||
\newcommand{{\githash}}{{{current_commit_hash}}}
|
|
||||||
\newcommand{{\gitcommittime}}{{{current_commit_time}}}
|
|
||||||
\newcommand{{\doctitle}}{{{otcdocs_doc_title}}}
|
|
||||||
\newcommand{{\servicetitle}}{{{otcdocs_service_title}}}
|
|
||||||
''',
|
|
||||||
'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm'
|
|
||||||
}
|
|
@ -1,11 +1,9 @@
|
|||||||
Resource Formation Service
|
Resource Formation Service
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
With Resource Formation Service, you can manage system and service resources (all physical or logical entities that can be located and described, such as databases, VPCs, pipelines, and IAM roles). You can automatically deploy specified cloud service resources based on the template which uses the HCL (an open ecosystem) syntax.
|
|
||||||
|
|
||||||
.. directive_wrapper::
|
.. directive_wrapper::
|
||||||
:class: container-sbv
|
:class: container-sbv
|
||||||
|
|
||||||
.. service_card::
|
.. service_card::
|
||||||
:service_type: rfs
|
:service_type: rfs
|
||||||
:umn: This document describes basic concepts, functions, key terms, and FAQs of the Resource Formation Service (RFS) and provides guidances for creating private templates, stacks, execution plans and so on.
|
:environment: internal
|
31
tox.ini
@ -44,6 +44,23 @@ commands =
|
|||||||
{[testenv:umn]commands}
|
{[testenv:umn]commands}
|
||||||
{[testenv:json-umn]commands}
|
{[testenv:json-umn]commands}
|
||||||
|
|
||||||
|
[testenv:docs-pdf]
|
||||||
|
deps =
|
||||||
|
{[testenv:docs]deps}
|
||||||
|
{[testenv:bindeps]deps}
|
||||||
|
allowlist_externals =
|
||||||
|
rm
|
||||||
|
mkdir
|
||||||
|
wget
|
||||||
|
make
|
||||||
|
bash
|
||||||
|
cp
|
||||||
|
commands =
|
||||||
|
mkdir -p doc/build/pdf
|
||||||
|
{[testenv:bindeps]commands}
|
||||||
|
{[testenv:api-ref-pdf-docs]commands}
|
||||||
|
{[testenv:umn-pdf-docs]commands}
|
||||||
|
|
||||||
|
|
||||||
# HTML version
|
# HTML version
|
||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
@ -83,14 +100,13 @@ allowlist_externals =
|
|||||||
cp
|
cp
|
||||||
commands =
|
commands =
|
||||||
rm -rf api-ref/build/pdf
|
rm -rf api-ref/build/pdf
|
||||||
cp -r {toxinidir}/_templates api-ref/source/_templates/
|
|
||||||
sphinx-build -W --keep-going -b latex api-ref/source api-ref/build/pdf/
|
sphinx-build -W --keep-going -b latex api-ref/source api-ref/build/pdf/
|
||||||
bash -c "for f in api-ref/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
|
bash -c "for f in api-ref/build/pdf/*.gif; do convert $f $\{f/%gif/png\}; done || true"
|
||||||
bash -c "for f in api-ref/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
bash -c "for f in api-ref/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
||||||
make -C api-ref/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
|
make -C api-ref/build/pdf
|
||||||
mkdir -p doc/build/pdf
|
mkdir -p doc/build/pdf
|
||||||
cp api-ref/build/pdf/rfs-api-ref.pdf doc/build/pdf/
|
cp api-ref/build/pdf/rfs-api-ref.pdf doc/build/pdf/
|
||||||
cp api-ref/build/pdf/rfs-api-ref.pdf doc/build/html/
|
|
||||||
|
|
||||||
# HTML version
|
# HTML version
|
||||||
[testenv:umn]
|
[testenv:umn]
|
||||||
@ -130,14 +146,13 @@ allowlist_externals =
|
|||||||
cp
|
cp
|
||||||
commands =
|
commands =
|
||||||
rm -rf umn/build/pdf
|
rm -rf umn/build/pdf
|
||||||
cp -r {toxinidir}/_templates umn/source/_templates/
|
|
||||||
sphinx-build -W --keep-going -b latex umn/source umn/build/pdf/
|
sphinx-build -W --keep-going -b latex umn/source umn/build/pdf/
|
||||||
bash -c "for f in umn/build/pdf/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
|
bash -c "for f in umn/build/pdf/*.gif; do convert $f $\{f/%gif/png\}; done || true"
|
||||||
bash -c "for f in umn/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
bash -c "for f in umn/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
||||||
make -C umn/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
|
make -C umn/build/pdf
|
||||||
mkdir -p doc/build/pdf
|
mkdir -p doc/build/pdf
|
||||||
cp umn/build/pdf/rfs-umn.pdf doc/build/pdf/
|
cp umn/build/pdf/rfs-umn.pdf doc/build/pdf/
|
||||||
cp umn/build/pdf/rfs-umn.pdf doc/build/html/
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:bindeps]
|
[testenv:bindeps]
|
||||||
|
Before Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 182 KiB |
Before Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 212 KiB |
Before Width: | Height: | Size: 252 KiB |
Before Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 226 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 226 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 12 KiB |