mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Updated docs.cmd - Works?
This commit is contained in:
parent
25e126b0f1
commit
f0ecf297d7
1
SpotifyAPI.Docs/.gitignore
vendored
1
SpotifyAPI.Docs/.gitignore
vendored
@ -1 +1,2 @@
|
||||
site/
|
||||
deploy/
|
@ -1,9 +1,25 @@
|
||||
if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" (
|
||||
echo Building docs...
|
||||
pip install mkdocs
|
||||
|
||||
cd ./SpotifyAPI.Docs
|
||||
mkdocs build
|
||||
cd ..
|
||||
mkdocs build --clean
|
||||
|
||||
mkdir deploy
|
||||
cd deploy
|
||||
|
||||
git config --global user.email "johnny@johnnycrazy.de"
|
||||
git config --global user.name "AppVeyor Doc Generation"
|
||||
|
||||
git clone --quiet --branch=gh-pages https://%GH_TOKEN%@github.com/JohnnyCrazy/SpotifyAPI-NET gh-pages
|
||||
cd gh-pages
|
||||
git rm -qrf .
|
||||
xcopy ..\..\site .\ /s /e /y
|
||||
git add -A
|
||||
git commit -m "Built docs | AppVeyor Build %APPVEYOR_BUILD_NUMBER%"
|
||||
git push -fq origin gh-pages
|
||||
|
||||
cd ../..
|
||||
) else (
|
||||
echo Skipping doc build
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ repo_url: 'https://github.com/JohnnyCrazy/SpotifyAPI-NET'
|
||||
site_author: 'JohnnyCrazy'
|
||||
site_description: 'API Docs for SpotifyAPI-NET'
|
||||
extra_javascript:
|
||||
- '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js'
|
||||
- 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js'
|
||||
- 'highlight.js'
|
||||
markdown_extensions:
|
||||
- sane_lists
|
||||
|
@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||
|
||||
echo Starting push to gh-pages...
|
||||
mkdir deploy
|
||||
cd deploy
|
||||
|
||||
git config --global user.email "johnny@johnnycrazy.de"
|
||||
git config --global user.name "Travis-CI"
|
||||
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/JohnnyCrazy/SpotifyAPI-NET gh-pages > /dev/null
|
||||
|
||||
cd gh-pages
|
||||
git rm -rf ./ 2> /dev/null
|
||||
cp -Rf ../../site/* ./
|
||||
git add -f .
|
||||
git commit -m "Built mkdocs | Travis Build $TRAVIS_BUILD_NUMBER"
|
||||
git push -fq origin gh-pages > /dev/null
|
||||
|
||||
echo -e "Done"
|
||||
|
||||
fi
|
Loading…
Reference in New Issue
Block a user