mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 23:16:28 +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/
|
site/
|
||||||
|
deploy/
|
@ -1,9 +1,25 @@
|
|||||||
if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" (
|
if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" (
|
||||||
echo Building docs...
|
echo Building docs...
|
||||||
pip install mkdocs
|
pip install mkdocs
|
||||||
|
|
||||||
cd ./SpotifyAPI.Docs
|
cd ./SpotifyAPI.Docs
|
||||||
mkdocs build
|
mkdocs build --clean
|
||||||
cd ..
|
|
||||||
|
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 (
|
) else (
|
||||||
echo Skipping doc build
|
echo Skipping doc build
|
||||||
)
|
)
|
||||||
|
@ -20,7 +20,7 @@ repo_url: 'https://github.com/JohnnyCrazy/SpotifyAPI-NET'
|
|||||||
site_author: 'JohnnyCrazy'
|
site_author: 'JohnnyCrazy'
|
||||||
site_description: 'API Docs for SpotifyAPI-NET'
|
site_description: 'API Docs for SpotifyAPI-NET'
|
||||||
extra_javascript:
|
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'
|
- 'highlight.js'
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- sane_lists
|
- 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