Compare commits
13 Commits
propose-rf
...
main
Author | SHA1 | Date | |
---|---|---|---|
c9e2e7cbde | |||
5a4e7acb60 | |||
75eb9a46df | |||
9b2ba5c4f8 | |||
401960665e | |||
485f75d4f0 | |||
ce4f9384cd | |||
5a3bd97f78 | |||
884d958429 | |||
4b49e936ac | |||
7a381633a4 | |||
0e4ca7fd50 | |||
5fd77362f9 |
@ -16,6 +16,8 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
from git import Repo
|
||||
from datetime import datetime
|
||||
|
||||
extensions = [
|
||||
'otcdocstheme',
|
||||
@ -104,6 +106,7 @@ html_title = "Resource Formation Service - API Reference"
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
templates_path = ['_templates']
|
||||
|
||||
# Do not include sources into the rendered results
|
||||
html_copy_source = False
|
||||
@ -115,3 +118,22 @@ latex_documents = [
|
||||
u'Resource Formation Service - API Reference',
|
||||
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'
|
||||
}
|
@ -9,3 +9,4 @@ otc-sphinx-directives>=0.1.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
|
||||
setuptools
|
||||
gitpython
|
@ -16,6 +16,8 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
from git import Repo
|
||||
from datetime import datetime
|
||||
|
||||
extensions = [
|
||||
'otcdocstheme',
|
||||
@ -105,9 +107,29 @@ html_title = "Resource Formation Service - Service Based View"
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
templates_path = ['_templates']
|
||||
|
||||
# Do not include sources into the rendered results
|
||||
html_copy_source = False
|
||||
|
||||
# -- Options for PDF output --------------------------------------------------
|
||||
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,9 +1,11 @@
|
||||
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::
|
||||
:class: container-sbv
|
||||
|
||||
.. service_card::
|
||||
:service_type: rfs
|
||||
:environment: internal
|
||||
: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.
|
31
tox.ini
@ -44,23 +44,6 @@ commands =
|
||||
{[testenv: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
|
||||
[testenv:api-ref]
|
||||
@ -100,13 +83,14 @@ allowlist_externals =
|
||||
cp
|
||||
commands =
|
||||
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/
|
||||
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/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
|
||||
bash -c "for f in api-ref/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
||||
make -C api-ref/build/pdf
|
||||
make -C api-ref/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
|
||||
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/html/
|
||||
|
||||
# HTML version
|
||||
[testenv:umn]
|
||||
@ -146,13 +130,14 @@ allowlist_externals =
|
||||
cp
|
||||
commands =
|
||||
rm -rf umn/build/pdf
|
||||
cp -r {toxinidir}/_templates umn/source/_templates/
|
||||
sphinx-build -W --keep-going -b latex umn/source umn/build/pdf/
|
||||
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/*.gif; do convert $f[0] $\{f/%gif/png\}; done || true"
|
||||
bash -c "for f in umn/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
||||
make -C umn/build/pdf
|
||||
make -C umn/build/pdf LATEXMKOPTS="-interaction=nonstopmode"
|
||||
mkdir -p 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]
|
||||
|
BIN
umn/source/_static/images/en-us_image_0000001955571530.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
umn/source/_static/images/en-us_image_0000001955571534.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
umn/source/_static/images/en-us_image_0000001991770641.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
umn/source/_static/images/en-us_image_0000001991770693.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
umn/source/_static/images/en-us_image_0000001991890873.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
umn/source/_static/images/en-us_image_0000002119222466.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
umn/source/_static/images/en-us_image_0000002119380574.png
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120549060.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120705156.png
Normal file
After Width: | Height: | Size: 182 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120707020.png
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120743374.png
Normal file
After Width: | Height: | Size: 200 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120743394.png
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120743398.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120746402.png
Normal file
After Width: | Height: | Size: 299 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120901474.png
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120901486.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
umn/source/_static/images/en-us_image_0000002120901494.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121519232.png
Normal file
After Width: | Height: | Size: 212 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121525200.png
Normal file
After Width: | Height: | Size: 252 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121663600.png
Normal file
After Width: | Height: | Size: 138 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121667372.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121673112.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121681612.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121739696.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121742716.png
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121754732.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121776826.png
Normal file
After Width: | Height: | Size: 226 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121776834.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121900840.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121906076.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121909700.png
Normal file
After Width: | Height: | Size: 226 KiB |
BIN
umn/source/_static/images/en-us_image_0000002121934994.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124611690.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124611694.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124611726.png
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124611734.png
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124611738.png
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124769858.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124769866.png
Normal file
After Width: | Height: | Size: 142 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124769882.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124769894.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124769898.png
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
umn/source/_static/images/en-us_image_0000002124769902.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
umn/source/_static/images/en-us_image_0000002155947169.png
Normal file
After Width: | Height: | Size: 198 KiB |
BIN
umn/source/_static/images/en-us_image_0000002155947473.png
Normal file
After Width: | Height: | Size: 299 KiB |