From 7dc263a1e67cb9eb49aa042e76f4cf7e278f2b14 Mon Sep 17 00:00:00 2001
From: TGermain <thomas.germain@ird.fr>
Date: Wed, 8 Feb 2023 11:26:12 +0400
Subject: [PATCH] rtd correction for building

---
 rtd/source/conf.py   | 9 ++++-----
 sen2chain/indices.py | 4 +++-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/rtd/source/conf.py b/rtd/source/conf.py
index a0edc2e..7623d80 100644
--- a/rtd/source/conf.py
+++ b/rtd/source/conf.py
@@ -15,11 +15,6 @@ import os
 import sys
 sys.path.insert(0, os.path.abspath('..'))
 
-# math
-from sphinx_math_dollar import NODE_BLACKLIST
-from docutils.nodes import header,FixedTextElement, literal,math
-from docutils.nodes import  comment, doctest_block, image, literal_block, math_block, paragraph, pending, raw, rubric, substitution_definition, target
-math_dollar_node_blacklist = (literal,math,doctest_block, image, literal_block,  math_block,  pending,  raw,rubric, substitution_definition,target)
 # -- General configuration ---------------------------------------------------
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 
@@ -30,6 +25,10 @@ exclude_patterns = []
 
 autodoc_member_order = 'bysource'
 
+# math
+from sphinx_math_dollar import NODE_BLACKLIST
+from docutils.nodes import header,FixedTextElement, literal,math
+from docutils.nodes import  comment, doctest_block, image, literal_block, math_block, paragraph, pending, raw, rubric, substitution_definition, target
 mathjax_config = {
     'tex2jax': {
         'inlineMath': [ ["\\(","\\)"] ],
diff --git a/sen2chain/indices.py b/sen2chain/indices.py
index 7a96745..530bff9 100644
--- a/sen2chain/indices.py
+++ b/sen2chain/indices.py
@@ -69,7 +69,9 @@ class Indice(metaclass=ABCMeta):
 
 class Ndvi(Indice):
     """
-    $$NDVI = {{NIR-VIR}\over{NIR+VIR}}$$
+
+    .. math::
+        {NDVI = {NIR-VIR}\over{NIR+VIR}}
 
     NIR: band 08 (10m)
     VIR: band 04 (10m)
-- 
GitLab