New template and options for Service-Based-View
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com> Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
This commit is contained in:
@ -18,7 +18,10 @@ import os
|
||||
import sys
|
||||
|
||||
extensions = [
|
||||
'otcdocstheme'
|
||||
'otcdocstheme',
|
||||
{%- if otc_sbv %}
|
||||
'otc_sphinx_directives'
|
||||
{%- endif %}
|
||||
]
|
||||
|
||||
otcdocs_auto_name = False
|
||||
|
@ -2,3 +2,6 @@ sphinx>=2.0.0,!=2.1.0 # BSD
|
||||
otcdocstheme # Apache-2.0
|
||||
# releasenotes
|
||||
reno>=3.1.0 # Apache-2.0
|
||||
|
||||
otc-sphinx-directives>=0.1.0
|
||||
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata
|
7
otc_metadata/templates/index_sbv.rst.j2
Normal file
7
otc_metadata/templates/index_sbv.rst.j2
Normal file
@ -0,0 +1,7 @@
|
||||
{{ sbv_title }}
|
||||
|
||||
.. directive_wrapper::
|
||||
:class: container-sbv
|
||||
|
||||
.. service_card::
|
||||
:service_type: {{ service_type }}
|
@ -29,7 +29,11 @@ allowlist_externals =
|
||||
mkdir
|
||||
cp
|
||||
sh
|
||||
rm
|
||||
sphinx-build
|
||||
commands =
|
||||
rm -rf doc/build/html doc/build/doctrees
|
||||
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
|
||||
{%- for doc in docs %}
|
||||
{[testenv:{{ doc.type }}]commands}
|
||||
{[testenv:json-{{ doc.type }}]commands}
|
||||
@ -115,3 +119,7 @@ commands =
|
||||
cp {{ loc }}/build/pdf/{{ doc.pdf_name }}.pdf doc/build/pdf/
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
[doc8]
|
||||
ignore = D001
|
||||
extensions = .rst, .yaml
|
Reference in New Issue
Block a user