From 7ec49a23f04814526991992f8e6f44f939864b3d Mon Sep 17 00:00:00 2001 From: Olivier Bonaventure <bonaventure@acm.org> Date: Wed, 17 Jul 2019 15:03:42 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20sphinx-spelling=20de=20fa=C3=A7on?= =?UTF-8?q?=20=C3=A0=20pouvoir=20v=C3=A9rifier=20automatiquement=20l'ortho?= =?UTF-8?q?graphe=20du=20syllabus=20=C3=A0=20chaque=20commit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 3 +++ Theorie/conf.py | 7 ++++++- dict.txt | 2 ++ requirements.txt | 3 ++- travis.sh | 7 ++++--- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 dict.txt diff --git a/.travis.yml b/.travis.yml index 28a6a5e..bdc1d9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +before_install: + - sudo apt-get install hunspell hunspell-fr + - sudo apt-get install cppcheck install: "pip install -q -r requirements.txt" language: python python: diff --git a/Theorie/conf.py b/Theorie/conf.py index 5d0e50b..6ba4336 100644 --- a/Theorie/conf.py +++ b/Theorie/conf.py @@ -25,7 +25,12 @@ import sys, os # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.todo', 'sphinx.ext.ifconfig', 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx' ] +extensions = ['sphinx.ext.todo', 'sphinx.ext.ifconfig', 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx', 'sphinxcontrib.spelling' ] + + +#spelling +spelling_lang='fr' +spelling_word_list_filename='../dict.txt' # ucomment #sys.path.append(os.path.abspath(os.getcwd())) diff --git a/dict.txt b/dict.txt new file mode 100644 index 0000000..865ea5a --- /dev/null +++ b/dict.txt @@ -0,0 +1,2 @@ +Unix +Linux diff --git a/requirements.txt b/requirements.txt index 0698081..dc4f575 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -sphinx==1.8.3 +sphinx==2.0.0 +sphinxcontrib-spelling diff --git a/travis.sh b/travis.sh index d79b575..2fe57bd 100755 --- a/travis.sh +++ b/travis.sh @@ -10,13 +10,14 @@ set -e cd Theorie echo "**** Theorie ****" sphinx-build -nWNT --keep-going -b html . /tmp +sphinx-build -b spelling . /tmp cd ../Outils echo "**** Outils ****" sphinx-build -nWNT --keep-going -b html . /tmp cd ../Exercices echo "**** Exercices ****" #sphinx-build -nWNT --keep-going -b html . /tmp -cd QCM -echo "**** QCM ****" +#cd QCM +#echo "**** QCM ****" #make -cd ../.. \ No newline at end of file +cd ../.. -- GitLab