update doc template and travis.yml to use /doc/

for versionned documentation
This commit is contained in:
Gabriel Pettier 2018-08-23 15:04:12 +02:00 committed by Gabriel Pettier
parent 89417c81be
commit a59063e1f2
2 changed files with 3 additions and 3 deletions

View File

@ -291,8 +291,8 @@ after_success:
chmod 600 ~/.ssh/id_rsa;
echo -e "Host $SERVER_IP\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config;
echo "[$(echo $DOC_VERSIONS|tr ' ' ', '|sed -s 's/\([^,]\+\)/"\1"/g')]" > versions.json
rsync --force -e "ssh -p 2457" versions.json root@$SERVER_IP:/web/docs/;
rsync --delete --force -r -e "ssh -p 2457" ./doc/build/html/ root@$SERVER_IP:/web/docs/$version;
rsync --force -e "ssh -p 2457" versions.json root@$SERVER_IP:/web/doc/;
rsync --delete --force -r -e "ssh -p 2457" ./doc/build/html/ root@$SERVER_IP:/web/doc/$version;
fi;
done;
fi;

View File

@ -240,7 +240,7 @@
);
});
var url = "/docs/versions.json";
var url = "/doc/versions.json";
$.getJSON(url, function(versions) {
versions.forEach(function(version){