@@ -148,45 +148,45 @@ jobs:
148148
149149 - template : templates\kill-servers-linux.yml
150150
151- - job : DocumentationWindows
151+ - job : DocumentationLinux
152152 variables :
153- python.version : ' 3.8'
154- DISPLAY : ' :99.0'
153+ python.version : ' 3.7' # due to VTK 8.1.2 requirement for docbuild
155154 PYANSYS_OFF_SCREEN : True
156- DPF_PORT : 32772
155+ DPF_PORT : 50055
156+ TEMP : $(System.DefaultWorkingDirectory)/temp
157+ AWP_ROOT212 : $(System.DefaultWorkingDirectory)/server/v212
157158 GH_DOC_BRANCH : ' gh-pages'
159+
158160 pool :
159- vmImage : ' windows-2019'
161+ vmImage : ' ubuntu-20.04'
162+ steps :
163+ - template : templates\prepare-environment-linux.yml
160164
161- steps :
162- - template : templates\prepare-environment-windows.yml
163-
164165 - script : |
165- pip install -r requirements_docs.txt
166- cd .ci
167- dir
168- set THISDIR=$(System.DefaultWorkingDirectory)
169- set AWP_ROOT212=%THISDIR%\server\v212
170- ECHO %AWP_ROOT212%
171- build_doc.bat
166+ pip install -r requirements_docs.txt
167+ displayName: Install documentation packages for Python
168+
169+ - script : |
170+ sphinx-apidoc -o docs/source/api ansys -f --implicit-namespaces --separate --no-headings
171+ xvfb-run make -C docs html SPHINXOPTS="-w build_errors.txt -N"
172172 displayName: Build Documentation
173-
173+
174174 - task : ArchiveFiles@2
175175 inputs :
176- rootFolderOrFile : ' $(System.DefaultWorkingDirectory)\ docs\ _build'
176+ rootFolderOrFile : ' $(System.DefaultWorkingDirectory)/ docs/ _build'
177177 includeRootFolder : false
178178 archiveType : ' zip'
179- archiveFile : ' $(System.DefaultWorkingDirectory)\ docs\ archive\ doc-ansys-dpf-post.zip'
179+ archiveFile : ' $(System.DefaultWorkingDirectory)/ docs/ archive/ doc-ansys-dpf-post.zip'
180180 replaceExistingArchive : true
181181 displayName : ' DOCUMENTATION: zip artifacts'
182182
183183 - task : PublishBuildArtifacts@1
184184 displayName : ' DOCUMENTATION: publish artifacts'
185185 inputs :
186- PathtoPublish : ' $(System.DefaultWorkingDirectory)\ docs\ archive'
186+ PathtoPublish : ' $(System.DefaultWorkingDirectory)/ docs/ archive'
187187 ArtifactName : doc-ansys-dpf-post
188- enabled : true
189-
188+ enabled : true
189+
190190 - powershell : |
191191 git init
192192 git checkout -b $(GH_DOC_BRANCH)
@@ -196,13 +196,13 @@ jobs:
196196 git add .
197197 git commit -m "Documentation generated by $(Build.DefinitionName)"
198198 displayName: "Init git and add docs"
199- workingDirectory: docs\ _build\ html
199+ workingDirectory: docs/ _build/ html
200200
201201 - script : |
202202 git remote add origin https://$(GH_PAT)@github.com/pyansys/DPF-Post-docs
203203 git push -u origin $(GH_DOC_BRANCH) --force
204204 displayName: "Publish GitHub Pages merge commit"
205- workingDirectory: docs\ _build\ html
205+ workingDirectory: docs/ _build/ html
206206 condition: contains(variables['Build.SourceBranch'], 'refs/tags/')
207-
208- - template : templates\kill-servers-windows .yml
207+
208+ - template : templates\kill-servers-linux .yml
0 commit comments