X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Fconf.py;h=395925ba9762c66411112ebe9fb39b21419ccf91;hb=486015325b01283f31595abd8fbdbf93530f6a5a;hp=61f42e305986c841145fcc398056b3d10be83a35;hpb=fa45466bd639ff1e01c4af798cd44e346c5614a9;p=kuberef.git diff --git a/docs/conf.py b/docs/conf.py index 61f42e3..395925b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,11 +1,47 @@ -# SPDX-FileCopyrightText: 2021 Anuket contributors -# -# SPDX-License-Identifier: Apache-2.0 +project = 'kuberef' +html_title = "kuberef" +copyright = '2023, Anuket. Licensed under CC BY 4.0' +author = 'Anuket Project of Linux Foundation Networking' -""" for docs -""" +exclude_patterns = [ + '.tox', + 'README.rst' +] +extensions = [ + 'sphinx.ext.intersphinx', + 'sphinx.ext.autosectionlabel' +] +html_theme = "piccolo_theme" +linkcheck_ignore = [ + 'http://127.0.0.1' +] +intersphinx_mapping = { + 'cntt': ('https://cntt.readthedocs.io/en/latest/', None), + 'ref_model': ('https://cntt.readthedocs.io/projects/rm/en/latest/', None), + 'ref_arch_kubernetes': ('https://cntt.readthedocs.io/projects/ra2/en/latest/', None), + 'ref_cert_RC2': ('https://cntt.readthedocs.io/projects/rc2/en/latest/', None), + 'ref_impl_RI2': ('https://cntt.readthedocs.io/projects/ri2/en/latest/', None) +} +autosectionlabel_prefix_document = True +autosectionlabel_maxdepth = 3 +numfig = True +numfig_format = {'figure': 'Figure %s', 'table': 'Table %s', + 'code-block': 'Listing %s', 'section': 'Section %s'} -# pylint: disable=import-error -# flake8: noqa -from docs_conf.conf import * -copyright = '2021, Anuket. Licensed under CC BY 4.0' +html_static_path = ['_static'] +templates_path = ['_templates'] +html_css_files = [ + 'custom.css', +] + +html_show_sourcelink = False +html_theme_options = { + # If False, expand all TOC entries + 'globaltoc_collapse': False, + # If True, show hidden TOC entries + 'globaltoc_includehidden': False, +} + +# Inverse png +html_logo = '_static/anuket-logo.png' +html_favicon = '_static/favicon.ico'