use xsltproc to generate documentation on linux

This commit is contained in:
Kai Zeng 2016-01-08 01:11:20 -08:00
Родитель a09368c632
Коммит 23f4688737
3 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -3,6 +3,7 @@ solution: csharp/SparkCLR.sln
sudo: required
dist: trusty
before_install:
- sudo apt-get install xsltproc
- nuget install NUnit.Runners -Version 3.0.0 -OutputDirectory testrunner
# install maven 3.3.3
- wget http://archive.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz

Просмотреть файл

@ -159,6 +159,10 @@
<XslTransformation
XslInputPath="..\documentation\DocFormatter.xsl"
XmlInputPaths="..\documentation\Microsoft.Spark.CSharp.Adapter.Doc.XML"
OutputPaths="..\documentation\SparkCLR_API_Documentation.md" />
OutputPaths="..\documentation\SparkCLR_API_Documentation.md"
Condition="'$(OS)' == 'Windows_NT'" />
<Exec
Command="xsltproc -o ../documentation/SparkCLR_API_Documentation.md ../documentation/DocFormatter.xsl ../documentation/Microsoft.Spark.CSharp.Adapter.Doc.XML"
Condition="'$(OS)' != 'Windows_NT'" />
</Target>
</Project>

Просмотреть файл

@ -6,6 +6,7 @@
* Maven 3.3.3 or above.
* Mono 4.2 stable or above. The download and installation instructions for Mono are available in [http://www.mono-project.com/download/#download-lin](http://www.mono-project.com/download/#download-lin).
* NuGet.
* XSLTPROC
The following environment variables should be set properly: