diff --git a/.travis.yml b/.travis.yml index 28a6a5e50e3c50b91d4345a55179b13785efa478..bdc1d9c787eec86b4bc3e514fee96d5d61c9e0a3 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 5d0e50b454ba0ddd559bf895ac63a1cf3e308318..6ba43369f56c0372a3f778e8494452c246b37ad4 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 0000000000000000000000000000000000000000..865ea5a45bcfb07265b7ac48672c6e524ac3cd75 --- /dev/null +++ b/dict.txt @@ -0,0 +1,2 @@ +Unix +Linux diff --git a/requirements.txt b/requirements.txt index 06980811aa5260912992abb13a18f4248ae88941..dc4f5757cd6a30450ae97c475818e0accfe329a1 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 d79b5758cb510b1d27bf20e74d9c1055d0a11aeb..2fe57bd985f35e0ac481c6817f79ad39ff2ad27d 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 ../..