5 changed files with 48 additions and 52 deletions
@ -1,5 +1,5 @@ |
|||
choco install docfx -y --version 2.48.1 |
|||
docfx --warningsAsErrors docfx.json |
|||
if ($lastexitcode -ne 0){ |
|||
throw ("Error generating document") |
|||
throw ("error generating document") |
|||
} |
|||
|
@ -1,18 +1,21 @@ |
|||
#!/bin/bash |
|||
|
|||
# Download the latest release |
|||
curl -s https://api.github.com/repos/jellyfin/jellyfin-docs/releases/latest | grep "browser_download_url.*docs-.*\.tar\.gz" | cut -d : -f 2,3 | tr -d \" | wget -O /tmp/docs.tar.gz -qi - |
|||
# clone website |
|||
git clone https://github.com/jellyfin/jellyfin.github.io |
|||
pushd jellyfin.github.io |
|||
|
|||
# Clean any old files |
|||
rm -rf docs/ |
|||
# remove old docs |
|||
rm -rf docs |
|||
mkdir -p docs |
|||
popd |
|||
|
|||
mkdir -p docs/ |
|||
pushd docs |
|||
# update docs |
|||
unzip *.zip -d jellyfin.github.io/docs |
|||
|
|||
# Extract the files |
|||
tar -xzf /tmp/docs.tar.gz |
|||
popd |
|||
# commit new changes |
|||
git add docs |
|||
git commit -m 'azure update docs' |
|||
git push origin |
|||
|
|||
git add docs/ |
|||
git commit -m "CI Documentation update" |
|||
git push origin |
|||
# remove repository files |
|||
rm -rf jellyfin.github.io |
@ -1,13 +1,7 @@ |
|||
{ |
|||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. |
|||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp |
|||
|
|||
// List of extensions which should be recommended for users of this workspace. |
|||
"recommendations": [ |
|||
"davidanson.vscode-markdownlint" |
|||
], |
|||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. |
|||
"unwantedRecommendations": [ |
|||
|
|||
] |
|||
} |
|||
|
Loading…
Reference in new issue