From dd177b756a7c7bf0a8b8d8cec9aff91f90fb8e02 Mon Sep 17 00:00:00 2001 From: Peter Bajurny Date: Mon, 25 Apr 2022 16:06:43 -0500 Subject: [PATCH] Use python directly instead of container (#37) The container isn't as fast or slick since we've added plugins, and the latest version of the container fails bizarrely in Azure DevOps. Using python running directly on the agent works just as well, and is in fact a little faster. This also removes the mermaid plugin. --- mkdocs/umn-mkdocs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkdocs/umn-mkdocs.yml b/mkdocs/umn-mkdocs.yml index 251c755..bb221a3 100644 --- a/mkdocs/umn-mkdocs.yml +++ b/mkdocs/umn-mkdocs.yml @@ -46,8 +46,8 @@ jobs: testResultsFiles: '$(Common.TestResultsDirectory)/Test-$(Build.SourceVersion).xml' failTaskOnFailedTests: ${{ parameters.FailOnTestFailure }} - script: | - echo -e "FROM squidfunk/mkdocs-material:8.2.9 \n RUN pip install mkdocs-awesome-pages-plugin mkdocs-git-revision-date-localized-plugin mkdocs-markdownextradata-plugin mkdocs-mermaid2-plugin" | docker build -t squidfunk/mkdocs-material - - docker run --rm -v ${PWD}:/docs -v $(Build.ArtifactStagingDirectory):/docs/site squidfunk/mkdocs-material build + pip install mkdocs-material mkdocs-awesome-pages-plugin mkdocs-git-revision-date-localized-plugin mkdocs-markdownextradata-plugin + mkdocs build -d $(Build.ArtifactStagingDirectory) displayName: mkdocs-material build - publish: $(Build.ArtifactStagingDirectory) artifact: ${{ coalesce(parameters.ArtifactName, parameters.DocsPath) }}