From ae5609721b5eaf245f3f0b797ef45459320088c6 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Fri, 29 Oct 2021 12:05:29 +0200 Subject: [PATCH] docs: consume fd.io version list Type: feature This adds a version snippet in the vpp docs, based on a json description fetched from fd.io/vpp_versions.json This relies on https://github.com/FDio/site/pull/108 being merged Change-Id: I6dd22f09927841aef96011ed57af2cbdc5d409f5 Signed-off-by: Nathan Skrzypczak --- docs/_templates/versions.html | 33 +++++++++++++++++++++++++++++++++ docs/conf.py | 8 ++------ 2 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 docs/_templates/versions.html diff --git a/docs/_templates/versions.html b/docs/_templates/versions.html new file mode 100644 index 00000000000..d466bf1b01b --- /dev/null +++ b/docs/_templates/versions.html @@ -0,0 +1,33 @@ +{# This overrides ./sphinx_rtd_theme/versions.html #} +{# from https://github.com/readthedocs/sphinx_rtd_theme.git #} +
+ + VPP versions + {% set version_split = version.split('-') %} + {{ version_split[0] }} + + +
+
+ +
+
+
Other links
+
+ Project Home +
+
+
+
+ diff --git a/docs/conf.py b/docs/conf.py index 8a2aef51bb1..ed4de0e7d72 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -88,15 +88,11 @@ pygments_style = 'default' # import sphinx_theme +templates_path = ['_templates'] + html_theme = "sphinx_rtd_theme" -# html_theme = 'neo_rtd_theme' html_theme_path = ["_themes", ] -# html_theme_path = [sphinx_theme.get_html_theme_path('neo-rtd-theme')] - -# All available themes: -# print(sphinx_theme.THEME_LIST) -# >> ['stanford_theme', 'neo_rtd_theme'] # The name of an image file (relative to this directory) to place at the top # of the sidebar.